• 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
Re: Parameter automation from a Cocoa view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameter automation from a Cocoa view


  • Subject: Re: Parameter automation from a Cocoa view
  • From: "Mark's Studio" <email@hidden>
  • Date: Fri, 28 Nov 2003 08:23:08 +0100

Here is what i use for a slider, i know it's not perfect but i work's
for now,
but what about a button do i have to send both mouse down and up or
just one of them but which one?

But i think part of the problem is that the host eventListener is
changing with the carbonview,
so i think sometimes the callback is not working.

if(currentTag != [sender tag]){
(*AUCarbonViewEventListener)(listenerUserData,
listenerComponentInstance,
&parameters[currentTag],kAudioUnitCarbonViewEvent_MouseUpInControl,
NULL);

currentTag = [sender tag];

(*AUCarbonViewEventListener)(listenerUserData,
listenerComponentInstance,
&parameters[currentTag],kAudioUnitCarbonViewEvent_MouseDownInControl,
NULL);
}
AUParameterListenerNotify(NULL,NULL,&parameters[currentTag]);



That's way i asked if the AudioUnit needs to generate automation data,
how that is that done without the carbonview.




On 28/11-2003, at 3:30, Marc Poirier wrote:

> There's also the corresponding
> kAudioUnitCarbonViewEvent_MouseUpInControl
> that you need to use when the parameter gesture ends (mouse release,
> whatever).
>
> Marc
>
>
>
> On Thu, 27 Nov 2003, Mark's Studio wrote:
>
>> I've managed to use my Cocoa view for recording automation in logic.
>> but it's not always working?
>>
>> i use the callback when a parameter is changed. (i got the variables
>> from my AudioUnit's carbonview )
>>
>> (*
>> AudioUnitCarbonViewEventListener)(listenerUserData,listenerComponentIn
>> st
>> ance,&parameter, kAudioUnitCarbonViewEvent_MouseDownInControl, NULL);
>>
>> and it sort of work's, it's recording automation data, but sometime
>> it's not playing it back until i change a control in the logic
>> controlview,
>> but maybe that has something todo with the missing mouseUp.
>>
>> Can anyone explain how this whole parameter thing is supposed to work.
>>
>> If the AudioUnit itself ( without a carbonview) needs to write some
>> automation, i think that would be the same thing. how would that be
>> done?
>>
>> Thanks
>>
>> Peter Mark
>
>
Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Parameter automation from a Cocoa view
      • From: Marc Poirier <email@hidden>
References: 
 >Re: Parameter automation from a Cocoa view (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: Parameter automation from a Cocoa view
  • Next by Date: kAudioDevicePropertyVolumeScalar - newbie
  • Previous by thread: Re: Parameter automation from a Cocoa view
  • Next by thread: Re: Parameter automation from a Cocoa view
  • Index(es):
    • Date
    • Thread