public class MidiMessageToSignal extends Object implements Realtime
Modifier and Type | Class and Description |
---|---|
class |
MidiMessageToSignal.Slot |
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
MidiMessageToSignal(MidiMessageSource source,
int slotCount) |
Modifier and Type | Method and Description |
---|---|
@Opt IntSignalSource |
get(int i) |
IntSignalSource |
output(int slot) |
void |
run()
Every received message will affect only the first matching slot.
|
MidiMessageToSignal |
setOutput(int slot,
Motif<Integer,MidiMessage> motif,
@Opt Integer initial) |
MidiMessageToSignal |
setOutput(int slot,
Pattern<MidiMessage> pattern,
Variable<Integer> var) |
MidiMessageToSignal |
setOutput(int slot,
Pattern<MidiMessage> pattern,
Variable<Integer> var,
@Opt Integer initial)
The pattern must contain the variable to extract the integer value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, times
public MidiMessageToSignal(MidiMessageSource source, int slotCount)
public IntSignalSource output(int slot)
ArrayIndexOutOfBoundsException
- !?public MidiMessageToSignal setOutput(int slot, Motif<Integer,MidiMessage> motif, @Opt @Opt Integer initial)
public MidiMessageToSignal setOutput(int slot, Pattern<MidiMessage> pattern, Variable<Integer> var, @Opt @Opt Integer initial)
ArrayIndexOutOfBoundsException
public MidiMessageToSignal setOutput(int slot, Pattern<MidiMessage> pattern, Variable<Integer> var)
@Opt public @Opt IntSignalSource get(int i)