Package eu.bandm.music.midi
Class Routing.DemuxM
java.lang.Object
eu.bandm.music.midi.Routing.DemuxM
- All Implemented Interfaces:
AutoCloseable
,Receiver
- Enclosing class:
- Routing
A
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.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changePredicate
(int i, Pattern<MidiMessage> pattern) void
close()
void
send
(MidiMessage message, long timeStamp) int
setReceiver
(Pattern<MidiMessage> pattern, Receiver rec)
-
Field Details
-
patterns
-
receivers
-
multi
protected boolean multi
-
-
Constructor Details
-
DemuxM
public DemuxM(boolean multi)
-
-
Method Details