public static class Routing.DemuxM extends Object implements Receiver
Receiver
receives a {link MidiMessage} and a time stamp.
A Demux splits a stream of MidiEvents (Message plus TimeStamp) to a list
of drains, according to the matching of a pattern.Modifier and Type | Field and Description |
---|---|
protected boolean |
multi |
protected ArrayList<Pattern<MidiMessage>> |
patterns |
protected ArrayList<Receiver> |
receivers |
Constructor and Description |
---|
DemuxM(boolean multi) |
Modifier and Type | Method and Description |
---|---|
void |
changePredicate(int i,
Pattern<MidiMessage> pattern) |
void |
close() |
void |
send(MidiMessage message,
long timeStamp) |
int |
setReceiver(Pattern<MidiMessage> pattern,
Receiver rec) |
protected ArrayList<Pattern<MidiMessage>> patterns
protected boolean multi
public int setReceiver(Pattern<MidiMessage> pattern, Receiver rec)
public void changePredicate(int i, Pattern<MidiMessage> pattern)
public void send(MidiMessage message, long timeStamp)
public void close()
close
in interface AutoCloseable
close
in interface Receiver