-
LinearSpline { // : AbstractFunction var <>points,<>isClosed; *new { |points,isClosed=false| ^super.newCopyArgs(points.collect(_.asArray),isClosed) } storeArgs { ^[points,isClosed] } simplifyStoreArgs { |args| ^args } value { arg u; var arg ...
-
... ufwr ( DIdev ( Dbrown (0, 20, 0.3).round, 5, -7, 7), b, Dseries (0, 1, n), 0)); Line .ar(dur: n / r + 0.1, doneAction: 2); 0 }.play; ) // move data to language b.loadToFloatArray(action: { |x| a = x.asInteger; "array filled \n" .postln; }) ...
-
... (topBin * 0.05).asInteger; var step; // number of items = topBin * 0.1 // total line should slide over -1 / (topBin * 0.1) // = -10 / topBin topBin = topBin.asInteger; step = max(-1, -10.0 / topBin); // x < -1 is wrong, will amplify partial ...
-
AbstractSplineGui : ObjectGui { var uv,pen,<>alpha=1.0; var <>color,<>crossHairsColor,<>textColor; var <>pointSize=3,<>font,<>showGrid=true; gui { arg parent,bounds,userView; if(userView.notNil,{ parent = userView.parent; bounds = bounds ?? ...
-
... \pan , 0.5, // pan to the right \dur , Prand ( [1/4, 1/8, 1/8], inf ), // this line will be simpler eventually. \samp , Pfunc ({ |ev| ev.putAll( VGSamp .eventFor(ev)); \vgsamp }) ) ).play; ) // Panning / output modes: ( Pdef ( \pekingA , P ...
-
... _("Latency") .knobColor_( Color.black.alpha_(0.25) ); window.view.decorator.nextLine; masterServer.uView( window ); if( this.isMaster ) { /* SmoothButton( window, Rect( 0, 0, 116, 16 ) ) .states_( [["sync"]] ) .font_( font ) .action_( { Syn ...
-
... , \freq.kr(100) + SinOsc.ar(4*\freq.kr, Rand(), \depth.kr(0)), \decay.kr(1)); //Line.kr(1, 0, \decay.kr * 10, doneAction:2); src = src * EnvGen.kr(Env.adsr(0.01, 1, \release.kr(0.1)), gate: \gate.kr(1), doneAction:2) * 400; Out.ar(0, src.ta ...
-
... s c = WsStaticText.new(a, Rect(0.5, 0.5, 0.2, 0.2)); c.string_("My text with newline \nhere but also html <br> newline and and and and and and it also wraps long lines") c.font_(Font.new(\Courier).size_(16)) c.background_(Color.yellow); //c ...
-
... agging b.mode_( \drag ); // try moving the slider before and after running this line b.mode_( \jump ); // back to default value The value of the slider is an array containing the lo and hi values. They are sorted internally, so normally the ...
-
... , { inval = nextval.yield; }); }, { inval = nextval.yield; }); }; // end of the line; restore the original stream // and return 1 valid value so that the main pattern doesn't die // after substitution, this routine will not get called again ...