Re: MusicPlayer.h or NANoteAllocator?
Re: MusicPlayer.h or NANoteAllocator?
- Subject: Re: MusicPlayer.h or NANoteAllocator?
- From: Doug Wyatt <email@hidden>
- Date: Tue, 22 Oct 2002 09:40:02 -0700
On Sunday, Oct 20, 2002, at 12:33 US/Pacific, Craig Bakalian wrote:
Hi,
Let's say I have a Midi hardware device hooked up to my mac that
doesn't have a midi input, or it does not generate midi timbres, and
it only sends midi data. If my app is using
MIDIPortRef = NULL;
MIDIInputPortCreate(client, CFSTR("Input"), readProc, NULL, &inport);
and I have a readProc set up to receive packet lists of midi data...
I gather that I can't send data directly to a MusicPlayer object,
like...
MusicPlayer player; // does this need to be set to NULL?
NewMusicPlayer(&player);
I am making this next part up in my own little technology world
NoteOn(player, noteNumber, noteVelocity, ChannelNumber);
Why can't the MusicPlayer pop a note out from a real time hit from a
readProc?
Is it possible for me to pop a note out of the
QuickTimeMusicArchitecture's NANoteAllocator from the CoreMIDI's
readProc? Not that I want to do this but... it may be my only > solution.
The MusicPlayer will only play sequences (like MIDI files) ... but you
can set it up to address nodes in an AUGraph, which can include a DLS
MusicDevice, which you can also route MIDI events to using the
functions in AudioUnit/MusicDevice.h -- either directly using the
MusicDevice API's, or indirectly through the functions in
AudioToolbox/AUMIDIController.h.
Doug
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.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.