dguitar.adaptors.song.impl
Class SongTrackImpl
java.lang.Object
dguitar.adaptors.song.impl.SongTrackImpl
- All Implemented Interfaces:
- SongTrack
- public class SongTrackImpl
- extends java.lang.Object
- implements SongTrack
Implementation of SongTrack
- Author:
- crnash
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
int index
virtualTrackCount
int virtualTrackCount
primaryDevice
SongDevice primaryDevice
secondaryDevice
SongDevice secondaryDevice
bendSensitivity
int bendSensitivity
chorus
int chorus
pan
int pan
phaser
int phaser
program
int program
reverb
int reverb
tremolo
int tremolo
volume
int volume
SongTrackImpl
public SongTrackImpl(int index,
int virtualTracks)
getPrimaryDevice
public SongDevice getPrimaryDevice()
- Specified by:
getPrimaryDevice in interface SongTrack
- Returns:
- Returns the primaryDevice.
setPrimaryDevice
public void setPrimaryDevice(SongDevice primaryDevice)
- Specified by:
setPrimaryDevice in interface SongTrack
- Parameters:
primaryDevice - The primaryDevice to set.
getSecondaryDevice
public SongDevice getSecondaryDevice()
- Specified by:
getSecondaryDevice in interface SongTrack
- Returns:
- Returns the secondaryDevice.
setSecondaryDevice
public void setSecondaryDevice(SongDevice secondaryDevice)
- Specified by:
setSecondaryDevice in interface SongTrack
- Parameters:
secondaryDevice - The secondaryDevice to set.
clip
private static int clip(int value,
int max)
getVirtualTrackCount
public int getVirtualTrackCount()
- Specified by:
getVirtualTrackCount in interface SongTrack
- Returns:
- Returns the virtualTracks.
getChorus
public int getChorus()
- Specified by:
getChorus in interface SongTrack
- Returns:
- Returns the chorus.
setChorus
public void setChorus(int chorus)
- Specified by:
setChorus in interface SongTrack
- Parameters:
chorus - The chorus to set.
getPan
public int getPan()
- Specified by:
getPan in interface SongTrack
- Returns:
- Returns the pan.
setPan
public void setPan(int pan)
- Specified by:
setPan in interface SongTrack
- Parameters:
pan - The pan to set.
getPhaser
public int getPhaser()
- Specified by:
getPhaser in interface SongTrack
- Returns:
- Returns the phaser.
setPhaser
public void setPhaser(int phaser)
- Specified by:
setPhaser in interface SongTrack
- Parameters:
phaser - The phaser to set.
getReverb
public int getReverb()
- Specified by:
getReverb in interface SongTrack
- Returns:
- Returns the reverb.
setReverb
public void setReverb(int reverb)
- Specified by:
setReverb in interface SongTrack
- Parameters:
reverb - The reverb to set.
getTremolo
public int getTremolo()
- Specified by:
getTremolo in interface SongTrack
- Returns:
- Returns the tremolo.
setTremolo
public void setTremolo(int tremolo)
- Specified by:
setTremolo in interface SongTrack
- Parameters:
tremolo - The tremolo to set.
getVolume
public int getVolume()
- Specified by:
getVolume in interface SongTrack
- Returns:
- Returns the volume.
setVolume
public void setVolume(int volume)
- Specified by:
setVolume in interface SongTrack
- Parameters:
volume - The volume to set.
getIndex
public int getIndex()
- Specified by:
getIndex in interface SongTrack
- Returns:
- Returns the index.
getBendSensitivity
public int getBendSensitivity()
- Specified by:
getBendSensitivity in interface SongTrack
- Returns:
- Returns the bendSensitivity.
setBendSensitivity
public void setBendSensitivity(int bendSensitivity)
- Specified by:
setBendSensitivity in interface SongTrack
- Parameters:
bendSensitivity - The bendSensitivity to set.
getProgram
public int getProgram()
- Specified by:
getProgram in interface SongTrack
- Returns:
- Returns the program.
setProgram
public void setProgram(int program)
- Specified by:
setProgram in interface SongTrack
- Parameters:
program - The program to set.