Package org.jjazz.midi.api.device
Class MidiFilter
java.lang.Object
org.jjazz.midi.api.device.JJazzMidiDevice
org.jjazz.midi.api.device.MidiFilter
- All Implemented Interfaces:
AutoCloseable
,MidiDevice
This MidiDevice forwards MidiMessages from in to out, except for messages that are filtered out (discarded).
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.sound.midi.MidiDevice
MidiDevice.Info
-
Field Summary
Modifier and TypeFieldDescriptionConfigure what is logged. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMust be overridden by subclasses.void
setFilterConfig
(EnumSet<MidiFilter.Config> newConfig) Methods inherited from class org.jjazz.midi.api.device.JJazzMidiDevice
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceivers, getTransmitter, getTransmitters, isOpen, open
-
Field Details
-
configLog
Configure what is logged.
-
-
Constructor Details
-
MidiFilter
By default does not filter nor log anything.- Parameters:
s
- String
-
-
Method Details
-
getReceiver
Description copied from class:JJazzMidiDevice
Must be overridden by subclasses.- Specified by:
getReceiver
in interfaceMidiDevice
- Overrides:
getReceiver
in classJJazzMidiDevice
-
getFilterConfig
-
setFilterConfig
-