void SetupHooks() { NoteOnHook = new LibPDNoteOnHook(RaiseNoteOnEvent); Native.Midi.set_noteonhook(NoteOnHook); ProgramChangeHook = new LibPDProgramChangeHook(RaiseProgramChangeEvent); Native.Midi.set_programchangehook(ProgramChangeHook); ControlChangeHook = new LibPDControlChangeHook(RaiseControlChangeEvent); Native.Midi.set_controlchangehook(ControlChangeHook); PitchbendHook = new LibPDPitchbendHook(RaisePitchbendEvent); Native.Midi.set_pitchbendhook(PitchbendHook); AftertouchHook = new LibPDAftertouchHook(RaiseAftertouchEvent); Native.Midi.set_aftertouchhook(AftertouchHook); PolyAftertouchHook = new LibPDPolyAftertouchHook(RaisePolyAftertouchEvent); Native.Midi.set_polyaftertouchhook(PolyAftertouchHook); MidiByteHook = new LibPDMidiByteHook(RaiseMidiByteEvent); Native.Midi.set_midibytehook(MidiByteHook); }
public static extern void set_programchangehook(LibPDProgramChangeHook hook);