Re: [Audacity-nyquist] Inputting exact values into Audacity Nyquist effects
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Steve <ste...@gm...> - 2009-10-20 19:43:19
|
:Oops: Seems like I made an incorrect assumption in my last post. In Audacity 1.3.9 and earlier it appears that if the ;control type is set to "real", it will always produce a float, but in Audacity 1.3.10, (without the patch), inputs _can_ return integers. (There would be problems is a float was produced when the input type was set to integer, but I don't see any problem this way round). Steve On Mon, 2009-10-19 at 23:42 -0600, Al Dimond wrote: > On Monday 19 October 2009 11:04:41 Steve wrote: > > Nyquist plug-ins have a bad habit of inputting a different value to > > the value shown in the plug-in interface. For example, if we want > > to set the duration of the first note in a sequence, we can use a > > control input like this: > > > > ;control noteduration "Length of first tone" real "seconds" 0.5 > > 0.01 10 > > > > One might reasonably assume that the default length for the first > > note is 0.5 seconds, but it actually sets a default of 0.49951 > > seconds. > > > > ... > > > > > Does anyone know a better workaround - or better still, how to fix > > the problem? > > > > It looks like any time any slider is focused all the values get > rounded to the nearest slider "tick". Slider ticks, for floating point > controls, come every 1/1000th of the range. Meanwhile the display > values are rounded to the nearest thousandth, hundredth, tenth, or > unit depending on the range. If the range is 0-30, for example, > display values are rounded to the nearest .1 and ticks are every .03. > > Steve, you're comfortable applying patches and building from source, > right? I'm attaching a patch that might fix the problem, although I > don't know enough about Nyquist to know whether I did it right or not. > The basic idea is that it sends what was written to the text box > instead of the floating-point value. It doesn't work if you enter > something that doesn't look like a floating point number into the text > box, which should be fixed, but I just want to make sure I'm doing it > right in the first place. If you can't build I'll try to figure out how > to test Nyquist stuff tomorrow. > > - Al > > > (This issues is currently listed as P3 and has also been raised > > here > > http://n2.nabble.com/Re-Slider-Bug-Investigations-was-Pluck-in-Aud > > acity-td238683.html) > > > > Steve D > > |