Something that's always annoyed me and that I've never quite figured out is the scaling of exponential/square root curves into a line/line~/vline~ object. Eg. say I have a variable minimum value and range value. The range value goes into the right inlet of a [* ]. The minimum value goes into the right inlet of a [+ ]. The [* ] goes into the left inlet of the [+ ]. To use [pow] or [sqrt] properly, I need to have the [line] move between 0 and 1 and send the result into the [pow]. If I want to scale the 0-1 range up to another range (say, 100-1740), I can't do the scaling before the [line] or the resulting curve will be different (and fall outside of that range). And if I scale after the [line], the resulting values end up skipping due to having been scaled up from a lower resolution.

A hack around this is to have a second [line] after the scaling is done to smooth it out, but if eg. the first [line] has an envelope of around 2000, you need something like a 20ms envelope to smooth out the gaps in the values, which makes the the sound a bit laggy.

]]>Something that's always annoyed me and that I've never quite figured out is the scaling of exponential/square root curves into a line/line~/vline~ object. Eg. say I have a variable minimum value and range value. The range value goes into the right inlet of a [* ]. The minimum value goes into the right inlet of a [+ ]. The [* ] goes into the left inlet of the [+ ]. To use [pow] or [sqrt] properly, I need to have the [line] move between 0 and 1 and send the result into the [pow]. If I want to scale the 0-1 range up to another range (say, 100-1740), I can't do the scaling before the [line] or the resulting curve will be different (and fall outside of that range). And if I scale after the [line], the resulting values end up skipping due to having been scaled up from a lower resolution.

A hack around this is to have a second [line] after the scaling is done to smooth it out, but if eg. the first [line] has an envelope of around 2000, you need something like a 20ms envelope to smooth out the gaps in the values, which makes the the sound a bit laggy.

]]>