|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.midi.MidiMixer
public class MidiMixer
This Mixer accepts MidiInstrument and sends Midi pan and Midi volume change on their midi channels
Constructor Summary | |
---|---|
MidiMixer()
|
Method Summary | |
---|---|
int |
addInstrument(Instrument ins)
When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index. |
int |
addInstrument(Instrument ins,
double pan,
double amp)
add Instrument with initial pan and amp values. |
double |
getAmp(int faderIndex)
|
int[] |
getFaderIndexes(Instrument ins)
faders index(es) associated with an instrument, or NULL if not found |
boolean |
getFaderMute(int faderIndex)
|
boolean |
getFaderSolo(int faderIndex)
|
java.awt.Component |
getGUIComponent()
|
Instrument |
getInstrument(int faderIndex)
Get instrument associated with fader index (some instruments may have more than one fader, so you cannot assume fader n goes with ins n) |
int |
getNumFaders()
|
double |
getPan(int faderIndex)
|
static void |
main(java.lang.String[] args)
|
void |
muteChange(int faderIndex,
boolean flag)
|
void |
panAmpChange(int faderIndex,
double pan,
double amp)
|
void |
removeInstrument(Instrument ins)
Remove all faders associated with this instrument |
void |
repatch(Instrument ins)
Does nothing |
void |
setFaderMute(int faderIndex,
boolean flag)
|
void |
setFaderSolo(int faderIndex,
boolean flag)
|
void |
soloChange(int faderIndex,
boolean flag)
|
void |
start()
enumerates through faders and sends midi pan and vol changes for each |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidiMixer()
Method Detail |
---|
public int addInstrument(Instrument ins)
Mixer
addInstrument
in interface Mixer
public int addInstrument(Instrument ins, double pan, double amp)
Mixer
addInstrument
in interface Mixer
public void removeInstrument(Instrument ins)
Mixer
removeInstrument
in interface Mixer
public void repatch(Instrument ins)
repatch
in interface Mixer
public void setFaderMute(int faderIndex, boolean flag)
setFaderMute
in interface Mixer
public void setFaderSolo(int faderIndex, boolean flag)
setFaderSolo
in interface Mixer
public boolean getFaderMute(int faderIndex)
getFaderMute
in interface Mixer
public boolean getFaderSolo(int faderIndex)
getFaderSolo
in interface Mixer
public void muteChange(int faderIndex, boolean flag)
muteChange
in interface PanAmpListener
public void soloChange(int faderIndex, boolean flag)
soloChange
in interface PanAmpListener
public Instrument getInstrument(int faderIndex)
Mixer
getInstrument
in interface Mixer
public int[] getFaderIndexes(Instrument ins)
Mixer
getFaderIndexes
in interface Mixer
public int getNumFaders()
getNumFaders
in interface Mixer
public void start()
start
in interface Mixer
public void stop()
stop
in interface Mixer
public void panAmpChange(int faderIndex, double pan, double amp)
panAmpChange
in interface PanAmpListener
public double getPan(int faderIndex)
getPan
in interface Mixer
public double getAmp(int faderIndex)
getAmp
in interface Mixer
public java.awt.Component getGUIComponent()
getGUIComponent
in interface Mixer
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |