|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AutoEffect
Interface inplemented by all autoefects. The .XM format defines autoeffects for each instrument and new instances of the effects are created for each time the instrument is played. This means that there ar maximum numberOfTracks autoeffects of a given type active for a given instrument at any one time. All AutoEffect objects are associated with an instrument and each AutoEffect object handles numberOfTracks instances of that spesific autoeffect, one for each track.
Method Summary | |
---|---|
void |
doEffect(TrackState state,
int track)
perform the effect |
void |
keyOff(int track)
signal to the autoeffect that a key-off note/effect was played |
void |
newNote(double note,
int track)
tells the autoeffect that a new note is played. |
void |
reset(int track)
reset the effect in the given track |
void |
setNumberOfTracks(int tracks)
sets the number of track in a module |
Method Detail |
---|
void setNumberOfTracks(int tracks)
tracks
- the number of tracks in a modulevoid newNote(double note, int track)
note
- the new notetrack
- the track where the note is playedvoid doEffect(TrackState state, int track)
state
- the state of the track where the effect is usedtrack
- the number of the track where effect is usedvoid reset(int track)
track
- void keyOff(int track)
track
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |