• 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: Subject: MusicDevice/HandleNoteOne/Render
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: MusicDevice/HandleNoteOne/Render


  • Subject: Re: Subject: MusicDevice/HandleNoteOne/Render
  • From: Cynthia Bruyns <email@hidden>
  • Date: Tue, 28 Jun 2005 10:25:01 -0700


Just inherit from MusicDeviceBase and redefine HandleMidiEvent, it will be just like processEvents when events are VstMidiEvent except that data has been already split in AU.

Indeed inherit from MusicDeviceBase. Also new in Tiger, is the ability to automatically map MIDI signals with parameters. Even duplicate signals can be mapped to the same parameter. 

If you turn on this feature in your AU using the build flag: -DCA_AUTO_MIDI_MAP=1 , then your HandleMIDIEvent function will look like the following:

OSStatus YourAU::HandleMidiEvent(        UInt8     inStatus,
                                                                            UInt8     inChannel,
                                                                            UInt8     inData1,
                                                                            UInt8     inData2,
                                                                            long    inStartFrame)
{
    return AUMIDIBase::HandleMidiEvent(inStatus, inChannel, inData1, inData2, inStartFrame);
}

Then AUMIDIBases' HandleMidiEvent function will automatically make the parameter change calls, notifications etc. (Via its CAAUMIDIMapManager).

-Cynthia




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Next by Date: Re: Question about kAudioDevicePropertyStreamFormatMatch in a user space driver
  • Previous by thread: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Next by thread: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Index(es):
    • Date
    • Thread