Re: [Audacity-devel] Re: Choice control for Nyquist plugins
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@au...> - 2006-03-25 08:23:22
|
Cool! Arun, I've been thinking it would be great to use the same little comment strings we use in Nyquist as a general way to build effect dialog GUIs. Not all effects, of course - but quite a few of them could be handled that way. It would dramatically reduce the amount of code in effects classes. What do you think? I'm not sure if it would be best to stick with strings, or possibly just build up a nice object-oriented infrastructure that can handle adding a standard audio effect control (text box + slider, or checkbox, or choice) with a single line of code. - Dominic On Mar 24, 2006, at 11:39 PM, Arun Kishore wrote: > Hi again > > Just realised that a coma would be a better option for separator than > a colon. So, now the control line should read like this: > > ;control waveform "Waveform" choice "Sine,Tri,Sawtooth,Square" 0 > > Updated patch and plugin are attached. > > Best regards > Arun Kishore > > On 3/25/06, Arun Kishore <aru...@gm...> wrote: >> Hi David, all >> >> I have implemented a new "choice" control for Nyquist plugins to >> support the feature you had requested. >> >> ;control waveform "Waveform" choice "Sine:Tri:Sawtooth:Square" 0 >> >> This line in the plugin will now show a choice control on the Nyquist >> dialog with choices Sine, Tri, Sawtooth and Square. The last >> parameter >> specifies the default, which in this case is Sine. >> >> I have attached the patch and a new version of tremolo plugin >> modified >> to support this feature. Do not trust my Nyquist code, it's most >> probably wrong :) >> >> I have no idea how it will work with a screen reader and I am not >> able >> to provide a Windows binary( on Linux now ). I hope someone else can >> help. >> >> Best regards >> Arun Kishore >> >> NB: I've also slightly modified the OnText event processing to update >> only the modified text control. >> >> >> >> <tremolo.ny> >> <nyquist_v3.patch> |