|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vwp.sound.mod.modplay.player.autoeffect.XmAutoEffects
public class XmAutoEffects
Tiis class is necessery because the envelopes of an .XM module doesn't operate entirely independently. The only real work done by this class is to, in the constructor, test if the volume envelope is active and, if so, activate the fadeout effect. All other calls are passed on to the individual effects. This should really be reimplemented as a test in Fadeout instead....
Constructor Summary | |
---|---|
XmAutoEffects(VolumeEnvelope volEnv,
PanningEnvelope panEnv,
AutoVibrato autoVib,
Fadeout fadeout)
|
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 |
void |
setPosition(int pos,
int track)
set the position of an envelope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmAutoEffects(VolumeEnvelope volEnv, PanningEnvelope panEnv, AutoVibrato autoVib, Fadeout fadeout)
Method Detail |
---|
public void setNumberOfTracks(int tracks)
AutoEffect
setNumberOfTracks
in interface AutoEffect
tracks
- the number of tracks in a modulepublic void doEffect(TrackState state, int track)
AutoEffect
doEffect
in interface AutoEffect
state
- the state of the track where the effect is usedtrack
- the number of the track where effect is usedpublic void keyOff(int track)
AutoEffect
keyOff
in interface AutoEffect
public void newNote(double note, int track)
AutoEffect
newNote
in interface AutoEffect
note
- the new notetrack
- the track where the note is playedpublic void reset(int track)
AutoEffect
reset
in interface AutoEffect
public void setPosition(int pos, int track)
Envelope
setPosition
in interface Envelope
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |