Sending MIDI to virtual instruments
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