Package org.jjazz.midi.api.device
Class MidiChannelDispatcher
java.lang.Object
org.jjazz.midi.api.device.JJazzMidiDevice
org.jjazz.midi.api.device.MidiChannelDispatcher
- All Implemented Interfaces:
- AutoCloseable,- MidiDevice
This MidiDevice dispatches incoming MidiMessages on different transmitters depending on the midi channel of the message.
- 
Nested Class SummaryNested classes/interfaces inherited from interface javax.sound.midi.MidiDeviceMidiDevice.Info
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionMust be overridden by subclasses.Return a transmitter for channel 0.getTransmitter(int channel) Return a transmitter for a specific channel only.getTransmitters(int channel) Methods inherited from class org.jjazz.midi.api.device.JJazzMidiDeviceclose, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceivers, getTransmitters, isOpen, open
- 
Constructor Details- 
MidiChannelDispatcherpublic MidiChannelDispatcher()
 
- 
- 
Method Details- 
getTransmitterReturn a transmitter for channel 0.- Specified by:
- getTransmitterin interface- MidiDevice
- Overrides:
- getTransmitterin class- JJazzMidiDevice
- Returns:
 
- 
getTransmitterReturn a transmitter for a specific channel only.- Parameters:
- channel- The channel associated to this transmitter. 0 <= channel <= 16. Channel 16 is used to transmit MidiMessages not bound to a channel (SysExMessage, MetaMessage...).
- Returns:
 
- 
getTransmitters
- 
getReceiverDescription copied from class:JJazzMidiDeviceMust be overridden by subclasses.- Specified by:
- getReceiverin interface- MidiDevice
- Overrides:
- getReceiverin class- JJazzMidiDevice
 
 
-