What is wrong with my MIDI Portamento code
What is wrong with my MIDI Portamento code
- Subject: What is wrong with my MIDI Portamento code
- From: Patrick Simmons <email@hidden>
- Date: Sun, 30 Sep 2012 07:09:05 -0500
Hi
I am working on a MIDI program for iOS (5.0+) and cannot get portamento to work
Here is the code:
// start C
MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOn, 60, 127, 0);
// portamento on
MusicDeviceMIDIEvent(instrument, 0xb0, 0x41, 0x127, 0);
// portamento speed
MusicDeviceMIDIEvent(instrument, 0xb0, 0x05, 0x40, 0);
// portamento on (from C)
MusicDeviceMIDIEvent(instrument, 0xb0, 0x54, 60, 0);
// to D
MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOn, 62, 127, 0);
// stop C
MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOff, 60, 0, 5);
It is supposed to play a portamento from C to D but just plays C then D.
Thanks for your help
-Pat
_______________________________________________
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