Re: MusicSequenceSetMIDIEndpoint Question
Re: MusicSequenceSetMIDIEndpoint Question
- Subject: Re: MusicSequenceSetMIDIEndpoint Question
- From: William Stewart <email@hidden>
- Date: Tue, 17 Feb 2004 18:17:33 -0800
Certainly... give the sequence a virtual endpoint (rather than one to
the device) - or the IAC driver's first endpoint.
Bill
On 17/02/2004, at 2:44 PM, Robert Grant wrote:
A general comment: it would be very helpful to allow a "Custom
Endpoint" to be specified so that our own code could be delivered the
notes from the sequencer. This would enable us to drive things like
ReWire synths, or provide more flexible routing options etc..
Is there any way this can be spoofed perhaps?
Robert.
On Feb 17, 2004, at 5:22 PM, Doug Wyatt wrote:
On Feb 17, 2004, at 4:48, Peter Zegelin wrote:
I'm using the MusicPlayer API to play midi files and have a question
about changing the audio destination. Note that I am not using any
AUGraph functions - just the default. I have an external device that
I can detect with MIDIGetNumberOfDestinations and
MIDIGetDestination. When my player first starts up the midi sequence
plays through the built in synthesizer and I can change to the
external device using MusicSequenceSetMIDIEndpoint however I can't
see a way to change the destination back to the internal
synthesizer. So could someone kindly tell me:
How do you change the destination back to the internal sythesizer?
try MusicTrackSetDestNode and MusicTrackSetDestMIDIEndpoint
I have found that to change the destination to the external device
while the sequence is playing, I have to Stop the MusicPlayer, set
the endpoint with MusicSequenceSetMIDIEndpoint, call
MusicPlayerPreroll and then start the Player again. Is this the
correct way to do it?
not entirely sure ...
On a related note is there any particular reason why the internal
synthesizer isn't counted in MIDIGetNumberOfDestinations? I get 1
(for the external device) but I would have thought it would be 2
(external and internal).
If a MusicDevice created a CoreMIDI virtual destination for itself it
would show up there, but it doesn't -- it's more typical and
efficient for a host to create its own MIDI control path to the
synth.
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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.
_______________________________________________
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.