micromod
Class Modulator
java.lang.Object
micromod.Modulator
- public class Modulator
- extends java.lang.Object
The Modulator is intended to "modulate" the pitch/volume of a Channel
over time. It can be configured to perform arpeggios, vibratos, tremolos, portamentos etc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FX_ARPEGGIO
public static final int FX_ARPEGGIO
- See Also:
- Constant Field Values
FX_SLIDEUP
public static final int FX_SLIDEUP
- See Also:
- Constant Field Values
FX_SLIDEDOWN
public static final int FX_SLIDEDOWN
- See Also:
- Constant Field Values
FX_TONEPORTA
public static final int FX_TONEPORTA
- See Also:
- Constant Field Values
FX_VIBRATO
public static final int FX_VIBRATO
- See Also:
- Constant Field Values
FX_TONEPORTAVOLSLIDE
public static final int FX_TONEPORTAVOLSLIDE
- See Also:
- Constant Field Values
FX_VIBRATOVOLSLIDE
public static final int FX_VIBRATOVOLSLIDE
- See Also:
- Constant Field Values
FX_TREMOLO
public static final int FX_TREMOLO
- See Also:
- Constant Field Values
FX_PANNING
public static final int FX_PANNING
- See Also:
- Constant Field Values
FX_SETSAMPLEOFFSET
public static final int FX_SETSAMPLEOFFSET
- See Also:
- Constant Field Values
FX_VOLSLIDE
public static final int FX_VOLSLIDE
- See Also:
- Constant Field Values
FX_SETVOLUME
public static final int FX_SETVOLUME
- See Also:
- Constant Field Values
FX_LOWPASS
public static final int FX_LOWPASS
- See Also:
- Constant Field Values
FX_FINESLIDEUP
public static final int FX_FINESLIDEUP
- See Also:
- Constant Field Values
FX_FINESLIDEDOWN
public static final int FX_FINESLIDEDOWN
- See Also:
- Constant Field Values
FX_SETGLISSANDO
public static final int FX_SETGLISSANDO
- See Also:
- Constant Field Values
FX_SETVIBRATOWAVE
public static final int FX_SETVIBRATOWAVE
- See Also:
- Constant Field Values
FX_SETFINETUNE
public static final int FX_SETFINETUNE
- See Also:
- Constant Field Values
FX_SETTREMOLOWAVE
public static final int FX_SETTREMOLOWAVE
- See Also:
- Constant Field Values
FX_EXTPAN
public static final int FX_EXTPAN
- See Also:
- Constant Field Values
FX_RETRIG
public static final int FX_RETRIG
- See Also:
- Constant Field Values
FX_FINEVOLUP
public static final int FX_FINEVOLUP
- See Also:
- Constant Field Values
FX_FINEVOLDOWN
public static final int FX_FINEVOLDOWN
- See Also:
- Constant Field Values
FX_NOTECUT
public static final int FX_NOTECUT
- See Also:
- Constant Field Values
FX_NOTEDELAY
public static final int FX_NOTEDELAY
- See Also:
- Constant Field Values
FX_INVERTLOOP
public static final int FX_INVERTLOOP
- See Also:
- Constant Field Values
channel
protected Channel channel
supportsPanning
protected boolean supportsPanning
vibratoLFO
protected ProTrackerLFO vibratoLFO
tremoloLFO
protected ProTrackerLFO tremoloLFO
currentFXCommand
protected int currentFXCommand
currentFXValue
protected int currentFXValue
fxSubValue1
protected int fxSubValue1
fxSubValue2
protected int fxSubValue2
currentFXPeriod
protected int currentFXPeriod
currentFXCounter
protected int currentFXCounter
tonePortaDestination
protected int tonePortaDestination
tonePortaSpeed
protected int tonePortaSpeed
sampleOffset
protected int sampleOffset
vibSpeed
protected int vibSpeed
vibDepth
protected int vibDepth
tremSpeed
protected int tremSpeed
tremDepth
protected int tremDepth
arpeggio
protected int[] arpeggio
sinTable
protected static int[] sinTable
periodTable
protected static int[] periodTable
Modulator
public Modulator(Channel chan,
boolean supportsPanning)
- Parameters:
chan
- the channel to be associated with this ModulatorsupportsPanning
- If false, will ignore extended panning commands.
Old Protracker modules do not have panning, but may still issue the
panning commands.
reset
public void reset()
- Reset the modulator to "power on" defaults.
initialiseFX
public void initialiseFX(int fxPeriod,
Instrument fxInstrument,
int fxCommand,
int fxValue)
- Initialise both this object and the channel associated with it with the data from a row
in a ProTracker-style sequence.
updateFX
public void updateFX()
- Update the pitch/volume for a CIA tick of the tracker.
getFXSubValues
protected void getFXSubValues()
initialiseArpeggio
protected void initialiseArpeggio()
updateArpeggio
protected void updateArpeggio()
updateTonePorta
protected void updateTonePorta()
updateVolSlide
protected void updateVolSlide()
initialiseVibrato
protected void initialiseVibrato(boolean newNote)
updateVibrato
protected void updateVibrato(boolean trig)
setVibratoWave
protected void setVibratoWave(int waveform)
initialiseTremolo
protected void initialiseTremolo(boolean newNote)
updateTremolo
protected void updateTremolo(boolean trig)
setTremoloWave
protected void setTremoloWave(int waveform)
updateNoteCut
protected void updateNoteCut()
updateNoteDelay
protected void updateNoteDelay()
adjustFineTune
protected void adjustFineTune()