Re: unable to populate MusicTrack (one solved, one new problem)
Re: unable to populate MusicTrack (one solved, one new problem)
- Subject: Re: unable to populate MusicTrack (one solved, one new problem)
- From: William Stewart <email@hidden>
- Date: Mon, 1 Dec 2003 18:21:33 -0800
With a sequence you can only set a MIDI endpoint as a destination - ie.
as a place for the sequence to send MIDI events.
The sequence won't take midi endpoints as a source and add events to
that track as it receives it (though maybe that might be a good feature
request!) - if you like this idea, write a bug for me :)
(
http://developer.apple.com/bugreporter)
Bill
On 28/11/2003, at 8:42 AM, Will Benton wrote:
On Nov 27, 2003, at 2:16 AM, Will Benton wrote:
Here's a code fragment that I am (incorrectly) assuming should be
populating a MusicTrack with note messages. Unfortunately, it isn't,
as far as I can tell, doing anything. (The note messages are never
added; iterating over the MusicTrack reveals no contents). What am I
doing wrong? (I'm using Panther, if that matters.)
I've (sort of) resolved this, but there's a new problem. There was a
stupid bug in my iterate-over-MusicTrack code that clearly indicated
I'd stayed up too late when I wrote it, so the track actually was
getting events.
Currently, the problem is that I can play the MusicTrack (rather, the
MusicSequence containing it) to an AU, but not to a MIDIEndpoint. I'm
checking the result codes, and everything appears successful:
creating a MIDIClient, creating a MIDIEndpoint, and associating the
sequence with that endpoint. However, using the source in an app like
MIDI Monitor or SynthTest gets me nothing. I can manually send MIDI
events to that MIDI endpoint that work, so there must be something
wrong with the way I'm setting up the MusicSequence, right?
(I tried taking the code from the PlaySequence example, but that
doesn't seem to work at all.)
thanks,
wb
---
Will Benton <email@hidden>
"Wir sind Bettler, das ist wahr"
recently updated (11/1/03) contact info at:
http://www.cs.wisc.edu/~willb/willb.vcf
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.