|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Mixerpublic void removeInstrument(Instrument ins)
Mixer
removeInstrument in interface Mixerpublic 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 Mixerpublic boolean getFaderMute(int faderIndex)
getFaderMute in interface Mixerpublic 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 PanAmpListenerpublic Instrument getInstrument(int faderIndex)
Mixer
getInstrument in interface Mixerpublic int[] getFaderIndexes(Instrument ins)
Mixer
getFaderIndexes in interface Mixerpublic int getNumFaders()
getNumFaders in interface Mixerpublic void start()
start in interface Mixerpublic void stop()
stop in interface Mixer
public void panAmpChange(int faderIndex,
double pan,
double amp)
panAmpChange in interface PanAmpListenerpublic double getPan(int faderIndex)
getPan in interface Mixerpublic double getAmp(int faderIndex)
getAmp in interface Mixerpublic java.awt.Component getGUIComponent()
getGUIComponent in interface Mixerpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||