• 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
Sending MIDI to virtual instruments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending MIDI to virtual instruments


  • Subject: Sending MIDI to virtual instruments
  • From: Todd Blanchard <email@hidden>
  • Date: Tue, 18 Mar 2008 17:12:35 -0700

As I understand it, AUMIDIController used to take care of buffering and timely feeding of MIDI messages to virtual instruments. This thing is now marked deprecated in favor of MusicPlayer and MusicSequence.

I've been playing with building an arpeggiator and want to fiddle the timestamps on some MIDI events to deliver them later than they occur (and perhaps repetitively as well). Currently, since my app is all about live performance and has zero recording or playback features, I just get the MIDI events from the system, buffer them briefly, and feed them all to the AudioUnit using MusicDeviceMIDIEvent in the device's rendering notification callback. Seems to work fine for 'direct control'.

Apparently, this call completely ignores the timestamp on the event and simply executes the action associated with the event NOW. At least that is what I'm observing from trying to create a 'flam' effect by sending duplicate note events one octave higher and with timestamps set (I think) half a second later.

Is there a facility for scheduling events later (when I say 'later' I mean half a beat later or so) or do I just have to do it myself? I keep seeing references to using MusicPlayer and MusicSequence - but I can't see how this relates to a live situation. All the writing seems to relate to playing back a file of events. I'm getting them in real time.

-Todd Blanchard


_______________________________________________ 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
  • Follow-Ups:
    • Re: Sending MIDI to virtual instruments
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Recording system audio
  • Next by Date: Re: offline effect failing auval on render test
  • Previous by thread: Re: offline effect failing auval on render test
  • Next by thread: Re: Sending MIDI to virtual instruments
  • Index(es):
    • Date
    • Thread