Something missing...
Something missing...
- Subject: Something missing...
- From: Pascal Goguey <email@hidden>
- Date: Sat, 27 Apr 2002 01:15:03 +0900
Hello!
Thanks to those who replied!
I got quite some documentation, and I started something.
I have one question regarding the sample code which is in
/Developer/Examples/CoreAudio/MIDI/SampleTools.
This sample code has a static function which is used to
receive MIDI events from an instrument (MyReadProc).
This function is called everytime a key from the piano,
for instance, is pressed.
Then, it is parsed, the message is printed. This works well,
and I can have output to the terminal.
However, I am wondering about the
command MIDISend(gOutPort, gDest, pktlist);, which is
called immediately after the message has been printed.
What is it intended to do? Play the not that was just played?
In this case:
- The note is played (by the instrument itself);
- The message is received and printed;
- The same note is replayed (request from the Mac to
the piano) a few microseconds later (i.e. even before
I release the piano key). This doesn't make too much
sense... Can anybody explain me what happens or
what is supposed to happen? I have tried to change only
the frequency of that note received by MyReadProc
(note index + 12 in order to play it an octave higher),
but it is not played.
I have also tried to copy the info in the pklist
(which is a MIDIPacketList), and play it right
after the initialization.
It does not play anything.
Am I missing some initialization steps?
My MIDI interface is a Roland UM1 (USB port).
The source code is basically the one mentioned above
(/Developer/Examples/CoreAudio/MIDI/SampleTools).
Any hints?
Thanks,
Pascal
_______________________________________________
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.