Re: [genuine] Re: reading Midi from AU
Re: [genuine] Re: reading Midi from AU
- Subject: Re: [genuine] Re: reading Midi from AU
- From: jacques couzteau <email@hidden>
- Date: Thu, 15 Jan 2004 12:49:59 +0100
I found the error myself.
I've moved HandleNoteOn() to the private section of my SampleEffectUnit
Class.
My AU does respond to NoteOn now! I'm really exited.
jc
Am 15.01.2004 um 12:03 schrieb jacques couzteau:
thanks marc.
I want my music effekt to respond to note-on events.
so i set COMP_TYPE to kAudioUnitType_MusicEffect
#define COMP_TYPE kAudioUnitType_MusicEffect
I've made my AU a subclass of AUMIDIEffectBase
and i've aded a method
void SampleEffectUnit::SampleEffectKernel::HandleNoteOn(int inChannel,
UInt8 inNoteNumber,
UInt8 inVelocity, long inFrameOffset)
You'll want to look in the dfxplugin-audiounit.cpp for the interfacing
with the MIDI stuff (we have most of the AU-specific stuff abstracted
there and use our own plugin meta-format for each specific plugin).
But it is really really simple, too. Just look at the virtual
functions
in AUMIDIBase.h. You can override whichever you want to do
(HandleMidiEvent is a catch-all for any MIDI event, and then the
others
are useful for each specific type of MIDI event):
Is it correct that i just need to provide a method HandleNoteOn()
(public?, protected?) in order to respond to a note on event?
i seem to be missing something. Does my MusicEffect inherit everything
it needs?
thank you.
virtual OSStatus HandleMidiEvent
virtual void HandleNoteOn
virtual void HandleNoteOff
virtual void HandleControlChange
virtual void HandlePitchWheel
virtual void HandleChannelPressure
virtual void HandleProgramChange
virtual void HandlePolyPressure
virtual void HandleResetAllControllers
virtual void HandleAllNotesOff
virtual void HandleAllSoundOff
virtual void HandleSysEx
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.