dguitar.adaptors.song.impl
Class SongTrackImpl

java.lang.Object
  extended bydguitar.adaptors.song.impl.SongTrackImpl
All Implemented Interfaces:
SongTrack

public class SongTrackImpl
extends java.lang.Object
implements SongTrack

Implementation of SongTrack

Author:
crnash

Field Summary
(package private)  int bendSensitivity
           
(package private)  int chorus
           
(package private)  int index
           
(package private)  int pan
           
(package private)  int phaser
           
(package private)  SongDevice primaryDevice
           
(package private)  int program
           
(package private)  int reverb
           
(package private)  SongDevice secondaryDevice
           
(package private)  int tremolo
           
(package private)  int virtualTrackCount
           
(package private)  int volume
           
 
Constructor Summary
SongTrackImpl(int index, int virtualTracks)
           
 
Method Summary
private static int clip(int value, int max)
           
 int getBendSensitivity()
           
 int getChorus()
           
 int getIndex()
           
 int getPan()
           
 int getPhaser()
           
 SongDevice getPrimaryDevice()
           
 int getProgram()
           
 int getReverb()
           
 SongDevice getSecondaryDevice()
           
 int getTremolo()
           
 int getVirtualTrackCount()
           
 int getVolume()
           
 void setBendSensitivity(int bendSensitivity)
           
 void setChorus(int chorus)
           
 void setPan(int pan)
           
 void setPhaser(int phaser)
           
 void setPrimaryDevice(SongDevice primaryDevice)
           
 void setProgram(int program)
           
 void setReverb(int reverb)
           
 void setSecondaryDevice(SongDevice secondaryDevice)
           
 void setTremolo(int tremolo)
           
 void setVolume(int volume)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SongTrackImpl

public SongTrackImpl(int index,
                     int virtualTracks)
Method Detail

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.