Re: Changing the transfer speed to a USB to MIDI interface
Re: Changing the transfer speed to a USB to MIDI interface
- Subject: Re: Changing the transfer speed to a USB to MIDI interface
- From: Doug Wyatt <email@hidden>
- Date: Mon, 13 Feb 2006 15:39:25 -0800
On Feb 13, 2006, at 2:30, Anders Gärder wrote:
Hello,
I am working on designing a USB to MIDI interface that uses
the built in usbmidi drivers in OSX and XP.
The interface can negotiate a higher than MIDI speed when connected
to a
compatible hardware synthesizer, up to 10 times the speed.
We are writing our own transfer utility, C6, to transfer bulk data
(samples and SysEx).
I am trying to use the following functions to set the speed of the
driver
gDest = MIDIGetDestination(target);
MIDIObjectSetIntegerProperty(gDest,kMIDIPropertyMaxSysExSpeed,speed);
There are two pieces of code in CoreMIDI that look at this property:
MIDISendSysex.
MIDIFlushOutput
The driver does not look at the property; throttling is better done
at a higher level.
It works but I only seem to be able to set this property once.
What happens if you try to set it a second time?
Can I change it dynamically?
Yes.
Or do I have to set it to the highest value I plan to use and then
use a timer to portion out the SysEx data?
If you use MIDISendSysex, it will use a timer based on the current
value of the property. If you use MIDISend, then you're responsible
for not sending data too quickly.
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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