• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDI CC and MIDI Clock


  • Subject: MIDI CC and MIDI Clock
  • From: "herve.noury" <email@hidden>
  • Date: Wed, 28 Dec 2011 10:19:54 +0100

Hello!

I sub classed the "HandleControlChange" method of the MonotimbralInstrument base like this to connect the MIDI CC to the AU :
case kMidiController_ModWheel :
            for (int i = 0; i<kNumNotes; i++)mTestNotes[i].modMIDIVal = (float) inValue/127.0;
break;
case kMidiController_Volume:
            for (int i = 0; i<kNumNotes; i++)mTestNotes[i].volumeMIDIVal = (float) inValue/127.0;
break;

            

I think that it is the right method. But how can I write a MIDI CC in a Cocoa Application? I founded this :

AudioUnit synthUnit;
AUGraphGetNodeInfo (_graph, _synthNode, NULL, NULL, NULL, &synthUnit);
OSStatus resultA;
resultA = MusicDeviceMIDIEvent(synthUnit, 
                               kMidiMessage_ControlChange , 
                               kMidiController_ModWheel, val, //for modulation here
                               0);

But it does not work (result = nil).     What must I write in the application to send a MIDI CC? (I want to use MIDI and not only AUParameters)


I wanted also to integrate in the render method the value of the MIDI Clock (the BMP). Do you know how to import this value in a Monotimbral Instrument? I did not find the correct method for instance.

Thanks in advance...

Hervé Noury
 _______________________________________________
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: Re: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY
  • Previous by thread: Re: Can I control the pan of the AUSampler?
  • Next by thread: MIDI CC and MIDI Clock (herve.noury)
  • Index(es):
    • Date
    • Thread