-
... et( \freq, (height-o.loc[1]/height).linexp(0, 1, 200, 2000), \beat, (10-o.mass).linlin(1, 10, 0.5, 5), \lp, (10-o.mass).linexp(1, 10, 200, 2000), \pan, o.loc[0]/width*2-1, \amp, (width-o.loc.distance(w.mouse)/width).pow(8)*(o.mass).linlin(1 ...
-
... et( \freq, (height-o.loc[1]/height).linexp(0, 1, 200, 2000), \beat, (10-o.mass).linlin(1, 10, 0.5, 5), \lp, (10-o.mass).linexp(1, 10, 200, 2000), \pan, o.loc[0]/width*2-1, \amp, (width-o.loc.distance(w.mouse)/width).pow(8)*(o.mass).linlin(1 ...
-
... ar sig, rms; sig = SoundIn.ar( (in-1).max(0) ); rms = RMS.ar(sig).min(1).max(0).linlin(0, 1, -1, 1); (rms * mul).exprange(20.0, 20000.0) + add}); Ndef('block1').xset('freq', Ndef('mod1')); == radpostcont == (none)
-
... ls: 1, bufnum: ~buf1, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; SynthDef("2", {arg rate = 1, ...
-
... [ "low shelf", "peak 1", "peak 2", "peak 3", "high shelf" ], { |i| Color.hsv( i.linlin(0,5,0,1), 0.75, 0.5).alpha_( 0.25 ); }!5 ) .font_( eq[ \font ] ) .resize_( 7 ); eq[ \tvw ].focusActions = { |i| { eq[ \selected ] = i; eq[ \uvw ].refresh ...
-
... slider = Slider(v, Rect(0,0,200,20)).action_{ |slider| var value = slider.value.linlin(0, 1, setting.values[0], setting.values[1]).round(setting.parameter); text.string_(value); setting.value_(value); }; text = StaticText(v, Rect(0,0,50,20) ...
-
Visual demonstration of aliasing/foldover (modified from James Harkins) by jnarveson (jnarveson) Code
... .moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1, height, 0)); Pen.lineTo(pt).stroke .fillRect(Rect.aboutPoint(pt, 3, 3)); }; Pen.color_(sinColor) .moveTo(Point(0, height/2)); (1 ...
-
... (rotate).asArray; value = Select.kr( which, point ++ point.neg ); value = value.linlin( *fromRange ++ [-1,1, \none ] ); value = Select.kr( clipMode, [ value.softclip2(1, clipSoftness ), value.softfold2(1, clipSoftness ), value.wrap2(1), val ...
-
... //////////////////////////////////////////////////// gain_ {|g| gain = g; g = g.linlin(-5, 5, -1, 1); // gain no es otra cosa que un factor de multiplicación por 1 y -1 en sus valores extremos. synth.set(\gain, g); } offset_ {|o| offset = o ...
-
... * Line.kr(0,1,0.1); output = \convrev; (output*mix.max(0).min(1)) + (input*mix.linlin(0,1,1,0)); }); == radpostcont == (none)