• 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: AU & custom gui, Automation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU & custom gui, Automation problem


  • Subject: Re: AU & custom gui, Automation problem
  • From: Ben Dyer <email@hidden>
  • Date: Mon, 24 Mar 2003 21:20:44 +0000

Hi Bill,

beginEdit() and endEdit() are VST functions called before and after a
control has been moved in a custom editor
derived from Steinberg's "AEffEditor".

In my case, I'm using a custom GUI (drawing straight into a carbon
window) and the Emagic VSTAU wrapper.
The product I'm working on is designed to be as cross-platform as
possible (there's a PC VST version) - with the help of our own graphics
library.

I appreciate it's probably not the 'pure' way AU's were designed to
work but the cross-platform approach really has paid dividends for
the development of this product.

If I'm doing something dangerous or devious then I'm open to
suggestions !! :-)

Cheers,
Ben.



On Monday, Mar 24, 2003, at 19:31 Europe/London, Bill Stewart wrote:

> I've a question about this...
>
> Who is likely to call beginEdit and endEdit?
>
> Bill
>
> On Friday, March 21, 2003, at 11:48 PM, Ben Dyer wrote:
>
>> Hi Nicolas,
>>
>> I use a custom GUI with the help of Emagic's VSTAU wrapper. I
>> implemented the following code in the
>> setParameterAutomated(), beginEdit() and endEdit() VST functions.
>> Seems
>> to work OK....
>>
>> void CVST2AUPlugin::setParameterAutomated(long lIdx, float rVal)
>> {
>> // Set parameter and call host for automation
>>
>> setParameter (lIdx, rVal);
>>
>> float value = GetParameterTranslated (lIdx);
>>
>> AudioUnitParameter sPar={m_AudioUnit, AudioUnitParameterID (lIdx),
>> kAudioUnitScope_Global, 0};
>>
>> AUParameterSet (NULL, NULL, &sPar, value, 0);
>>
>> }
>>
>>
>> bool CVST2AUPlugin::beginEdit (long parID)
>> {
>> AudioUnitParameter sPar={m_AudioUnit, AudioUnitParameterID
>> (parID),
>> kAudioUnitScope_Global, 0};
>>
>> if (m_AudioUnitView)
>> m_AudioUnitView->TellListener ((AUVParameter&)(sPar),
>> kAudioUnitCarbonViewEvent_MouseDownInControl, NULL);
>>
>> return true;
>> }
>> /
>> /---------------------------------------------------------------------
>> --
>> ------
>>
>> bool CVST2AUPlugin::endEdit (long parID)
>> {
>> AudioUnitParameter sPar={m_AudioUnit, AudioUnitParameterID (parID),
>> kAudioUnitScope_Global, 0};
>>
>> if (m_AudioUnitView)
>> m_AudioUnitView->TellListener ((AUVParameter&)(sPar),
>> kAudioUnitCarbonViewEvent_MouseUpInControl, NULL);
>>
>> return true;
>> }
_______________________________________________
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: AU & custom gui, Automation problem
      • From: Bill Stewart <email@hidden>
References: 
 >Re: AU & custom gui, Automation problem (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: AU & custom gui, Automation problem
  • Next by Date: Re: AU & custom gui, Automation problem
  • Previous by thread: Re: AU & custom gui, Automation problem
  • Next by thread: Re: AU & custom gui, Automation problem
  • Index(es):
    • Date
    • Thread