• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MIDI CC and MIDI Clock (herve.noury)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 :
struct AudioTimeStamp { 
    Float64 mSampleTime; 
    UInt64 mHostTime; 
    Float64 mRateScalar; 
    UInt64 mWordClockTime; 
    SMPTETime mSMPTETime; 
    UInt32 mFlags; 
    UInt32 mReserved; 
}; 

and

struct SMPTETime { 
    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

  • Prev by Date: Re: SampleUSBAudioPlugin buffer sizes
  • Next by Date: AudioDeviceStop and Finder's preview
  • Previous by thread: MIDI CC and MIDI Clock
  • Next by thread: AudioDeviceStop and Finder's preview
  • Index(es):
    • Date
    • Thread