MusicSequence and velocities for note off events
MusicSequence and velocities for note off events
- Subject: MusicSequence and velocities for note off events
- From: Igor Vovk <email@hidden>
- Date: Tue, 14 Feb 2012 20:31:24 +0200
Hello All,
Is it possible to obtain velocities of original note off events from a music sequence?
I use the MusicSequenceFileLoad function for parsing a MIDI file. So, I get a note on and the corresponding note off events as a single MIDINoteMessage object. It contains the releaseVelocity field which I expected should contain velocity of the original note off event. Unfortunately, I always get 0 from this field. Using the same velocity for note on and note off events seems not correct. I clearly can hear that some notes are fading away earlier than should be in this case... I tried to use the maximum 127 velocity for all note off events. Also, I tried to use note on events with 0 velocity instead of note off events. But rendering with the DLS music device produced even more incorrect output in both cases.
I need to have separate note on and note off events to be able to send them to the DLS music device with the MusicDeviceMIDIEvent function. I can't use MusicPlayer since it is still broken on Mac OS X 10.7.3. And I'd like to keep parsing with a single MusicSequenceFileLoad invocation because of simplicity and less amount of code...
Best regards,
Igor
_______________________________________________
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