jdkoftinoff / jdksmidi

c++ MIDI library
http://github.com/jdkoftinoff/jdksmidi/wiki
Other
116 stars 34 forks source link

is there a note on/off callback/notifier with note pitch #21

Closed rsp4jack closed 2 years ago

rsp4jack commented 2 years ago

I am writing a MIDI player.

Now it needs to display which notes is on or off (Not consider hold pedal), so I have to use a callback or notifier to tell the program there is a note on/off event and its note pitch.

All in all, I need a callback/notifier to notify the program the note event and its pitch. And I can't find it. MIDISequencerGUIEventNotifier does not notify the note's pitch.

So, where is it?

jdkoftinoff commented 2 years ago

Hi! Sorry it's been a long time. Perhaps look at https://github.com/jdkoftinoff/jdksmidi/blob/master/examples/jdksmidi_test_sequencer.cpp#L134 as an example

rsp4jack commented 2 years ago

Does it works with AdvancedSequencer?

rsp4jack commented 2 years ago

I find a solution: Inherit a MIDIProcessor and call MIDIDriver::SetOutProcessor which driver do you use.