• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [genuine] Re: reading Midi from AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:03:00 +0100

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.

  • Follow-Ups:
    • Re: [genuine] Re: reading Midi from AU
      • From: jacques couzteau <email@hidden>
References: 
 >Re: [genuine] Re: reading Midi from AU (From: Marc Poirier <email@hidden>)

  • Prev by Date: Panther Changes
  • Next by Date: Re: [genuine] Re: reading Midi from AU
  • Previous by thread: Re: [genuine] Re: reading Midi from AU
  • Next by thread: Re: [genuine] Re: reading Midi from AU
  • Index(es):
    • Date
    • Thread