-
... g stream ends. see also: Pmul , Paddp ( var a, b; a = Pmulp (\freq, Pseq([2, 3, pi],inf), Pbind ( \freq , Pseq([100, 200, 300]))); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, ...
-
... .writeAsPlist(" testWritePlist.plist" ); // cannot convert these objects [ Ref (pi), Pbind .new].writeAsPlist( "testWritePlist.plist" ); Dictionary [ \a -> "a" , "b" -> \b , 3 -> 3.0 ].writeAsPlist( "testWritePlist.plist" ); IdentityDiction ...
-
... source = y.sin * 0.2; // set its source now. y.source = { Saw .ar([300, 301], 4*pi) }; // the source can be of various type, one of them would be a number: y.source = 0.0; // post the source y.source; // end them, free their bus number y.cl ...
-
... CNumberBox (w, Rect (0, 0, 56, height+2)); n.font = Font (name, 13); n.object = pi; f.nextLine; }); w.front; ) ( var w,f,i=0; w = SCWindow ( "Fonts" , Rect (128, 64, 820, 760)); b = SCScrollView (w, w.view.bounds); b.decorator = f = FlowLay ...
-
... in turn and re-running the synth: [mags * {1.5.rand}.dup(mags.size), phases + {pi.rand}.dup(phases.size)]; // Arbitrary filter, arbitrary phase shift //[mags.reverse, phases.reverse]; // Upside-down! //[mags.differentiate, phases.different ...
-
... resentation of an argument. To print a % character use \\% . postf("this % a %. pi = %, list = %\n", "is", "test", pi.round(1e-4), (1..4)) this is a test. pi = 3.1416, list = [ 1, 2, 3, 4 ] format Returns a formatted string with arguments. ...
-
... alid very basic verification to tell if all arguments of the shader are set. compile compile the SCImageKernel object (and cache it). Note: when rendered the first time, the kernel object is always compiled first. If you plan to change the ...
-
... ex, \bufnum , f.bufnum] , \addToTail // make sure it goes after what you are scoping ); // making noise onto the buffer d= SynthDef ( "noise" , { arg bus; var z; z = LFSaw .ar( SinOsc .kr(0.1).range(300,1000),[0,1]*pi) * 0.1; Out .ar(bus, z ...
-
... t radians are, don't worry, just understand that it's a value between 0 and 2 * pi. (You can look at a trigonometry text if you really want more detail.) So if we made a SinOsc with a phase of (pi * 0.5), or one quarter of the way through i ...
-
... ber) Complex exponentiation with base e . exp( Complex (2, 9)) exp( Complex (0, pi)) == -1 // Euler's formula: true squared Complex self multiplication. squared( Complex (2, 1)) cubed Complex double self multiplication. squared( Complex (2, ...