ExtendedNoteOnEvent MusicDeviceNoteParams
ExtendedNoteOnEvent MusicDeviceNoteParams
- Subject: ExtendedNoteOnEvent MusicDeviceNoteParams
- From: "Dave O'Neill" <email@hidden>
- Date: Wed, 09 Jul 2014 08:58:17 -0700
I'm trying to add a MIDINoteMessage paired with a parameter event to a MusicTrack via the ExtendedNoteOnEvent's extendedParams member, but the parameter change is not taking place at playback. Here is the implementation:
NoteParamsControlValue control;
control.mID = kAUSamplerParam_CoarseTuning;
control.mValue = 12;
MusicDeviceNoteParams *params = malloc(sizeof(MusicDeviceNoteParams) + sizeof(NoteParamsControlValue));
params->argCount = 3;
params->mPitch = 36;
params->mVelocity = 127;
params->mControls[0] = control;
ExtendedNoteOnEvent noteOnEvent;
noteOnEvent.duration = 4;
noteOnEvent.groupID = 0;
noteOnEvent.instrumentID = 0;
noteOnEvent.extendedParams = *params;
MusicTrackNewExtendedNoteEvent(myMusicTrack, 2, ¬eOnEvent);
The midi note is played,but control value is not changing parameter.
What am I doing wrong?
Thanks,
Dave
_______________________________________________
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