• 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: music sequences and midisend
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: music sequences and midisend


  • Subject: Re: music sequences and midisend
  • From: "Tod E. Kurt" <email@hidden>
  • Date: Tue, 29 Jun 2004 01:41:08 -0700

On Jun 28, 2004, at 9:33 PM, Luca Bimbi wrote:
[...]
My problem now is: I want get the content of the midi sequence created and send it via the MIDI out port.
How I can get the content of the MusicSequence and put it in a packet to send it via MIDISend? [...]

Do you really want to use 'MIDISend()' or are you content to have the MIDI data scheduled and sent for you? If the latter, look at '/Developer/Examples/CoreAudio/Services/PlaySequence/main.cpp' and look for the code block that acts on the 'shouldUseMIDIEndpoint' boolean. There you'll see that instead of creating an AUGraph for the MusicSequence, the sequence is told to use a MIDIEndpoint via 'MusicSequenceSetMIDIEndpoint()'. I looked at PlaySequence many times before noticing that.

If you want to get the events out by hand to send to MIDISend(), use the MusicEventIterator functions of the AudioToolbox. I've not used them, but you could search the list archive for some example code. I'd recommend using the MusicPlayer to schedule and send MIDI events. I'm done with MIDISend() for now, except to implement MIDI echo.

And good luck entertaining your friends with the champagne. ;)

-=tod

--
Tod E. Kurt
email@hidden
http://todbot.com/
_______________________________________________
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.


  • Prev by Date: Re: Core Audio SDK 1.3.1 sample code - requirements?
  • Next by Date: Re: Core Audio SDK 1.3.1
  • Previous by thread: music sequences and midisend
  • Next by thread: multi-channel out to Digi002
  • Index(es):
    • Date
    • Thread