Posted By:
Simon_Dixon
Posted On:
Wednesday, October 17, 2001 04:51 AM
I'd like to synchronise a display with the playing of a MIDI sequence, without having to parse the MIDI file myself. The API provides a MetaEventListener, but I need something like a "NoteOnEventListener". I can't override noteOn() in com.sun.media.sound.MixerMidiChannel, because it has no public constructor, and anyway Synthesizer has a getChannels() but no setChannels() method so I can't replace the MidiChannels with my own objects. I also tried various combinations of {set|get}{Receiver|Transmitter} but I couldn't get that to work. (The default Sequencer claims to have -1 Receivers and just as many Transmitters.)
More>>
I'd like to synchronise a display with the playing of a
MIDI sequence, without having to parse the MIDI
file myself.
The API provides a MetaEventListener,
but I need something like a "NoteOnEventListener".
I can't override noteOn() in
com.sun.media.sound.MixerMidiChannel,
because it has no public constructor, and anyway
Synthesizer has a getChannels() but no
setChannels() method so I can't replace the
MidiChannels with my own objects.
I also tried various combinations of
{set|get}{Receiver|Transmitter} but I couldn't get
that to work. (The default Sequencer claims to have
-1 Receivers and just as many Transmitters.)
Any ideas?
<<Less