You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation contains the following example (2nd one):
// index with an SinOsc ... mouse controls amplitude of SinOsc// use offset so negative values of SinOsc will map into the Env
(
{
var sin = SinOsc.ar(440, 0, MouseX.kr(0, 1));
// use offset so negative values of SinOsc will map into the Envvar env = Env([-1, -0.7, 0.7, 1], [ 0.8666, 0.2666, 0.8668 ], \lin, -1.0);
IEnvGen.ar(env, sin) * 0.1
}.play;
)
The line beginning with var env should most likely read
instead. Offset is not the next parameter in order to Env; releaseNode is the next param but it has no effect here. You will get some DC-biased sound (hopefully unbiased by your output capacitor before it reaches speakers/phones) out of the example as-is (without offset), but it's probably not what's intended given the comment right above it...
The text was updated successfully, but these errors were encountered:
The documentation contains the following example (2nd one):
The line beginning with var env should most likely read
instead. Offset is not the next parameter in order to Env; releaseNode is the next param but it has no effect here. You will get some DC-biased sound (hopefully unbiased by your output capacitor before it reaches speakers/phones) out of the example as-is (without offset), but it's probably not what's intended given the comment right above it...
The text was updated successfully, but these errors were encountered: