MIDI CC and MIDI Clock (herve.noury)
MIDI CC and MIDI Clock (herve.noury)
- Subject: MIDI CC and MIDI Clock (herve.noury)
- From: "herve.noury" <email@hidden>
- Date: Fri, 30 Dec 2011 11:51:07 +0100
Hello,
I answer to myself about the MIDI CC, but I steel need help concerning how to send the BPM value from a host to the AU, and how to call this value inside the AU.
To send from the host to the AU the MIDI CC, I do now this : - (void) sendModulation: (float) xVal{ MusicDeviceComponent synthUnit; AUGraphNodeInfo (_graph, _synthNode, NULL, &synthUnit);
int ct1 = (int) floorf(xVal); Byte cc1[3]; cc1[0] = 0xB0; cc1[1] = 1; cc1[2] = ct1; MusicDeviceMIDIEvent (synthUnit, cc1[0], cc1[1], cc1[2], 0); } This method works fine now.
I think that I should use this kind of method to send a value of BPM but how to do?
I founded 2 structures about time synchronization : Float64 mSampleTime; UInt64 mHostTime; Float64 mRateScalar; UInt64 mWordClockTime; UInt32 mFlags; UInt32 mReserved; };
and
SInt16 mSubframes; SInt16 mSubframeDivisor; UInt32 mCounter; UInt32 mType; UInt32 mFlags; SInt16 mHours; SInt16 mMinutes; SInt16 mSeconds; SInt16 mFrames; };
How can I use them inside a MonotimbralInstrument AU? Few persons in that list seem to create music synthesizers, but some know the answer certainly. Thanks for your help then. |
_______________________________________________
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