-
... a real and imaginary signal in place . ( var size = 512, real, imag, cosTable, complex; real = Signal .newClear(size); // some harmonics real.sineFill2([[8], [13, 0.5], [21, 0.25], [55, 0.125, 0.5pi]]); // add a little noise real.overDub( ...
-
... + abs(y) - ((sqrt(2) - 1) * min(abs(x), abs(y))) hypotApx is used to implement Complex method magnitudeApx. This should not be used for simulating a doppler shift because it is discontinuous. Use hypot. See also hypot , atan2 .
-
... e, ( PhidSlot( 0, 3, a, inf )*12 ).round(1), \dur, 0.25 ).play; p.stop; // more complex example, showing multichannel expansion and sequences of slots: p = Pbind( \degree, ( PhidSlot( Pseq([[0,1],2,5],inf), 3, a, inf )*12 ).round(1), \dur, ...
-
... ggers (defaults to 0.5) polar - a flag. If 0.0, the buffer will be prepared for complex data, if > 0.0, polar data is set up. ( s.boot.doWhenBooted{ b = Buffer .alloc(s, 512); }; ) // Reminder: This isn't the intended typical usage! It's OK ...
-
... ree, ( PhidKey( \lx, a, inf )*12 ).round(1), \dur, 0.25 ).play; p.stop; // more complex example, showing multichannel expansion and sequences of slots: p = Pbind( \degree, ( PhidKey( Pseq([[\lx,\ly],\rx,\ry],inf), a, inf )*12 ).round(1), \d ...
-
... ate values to a multiple of quantum. Conversion asPoint returns the receiver. asComplex returns a complex number with x as the real part and y as the imaginary part. asString return a string representing the receiver. asShortString return a ...
-
... fNameOfSecondEffectInChain , (argument list for the second effect) ).play; More complex arrangements are possible through nesting, and parallelizing Pfx or Pfxb patterns using Ppar and its cousins. This example uses Pfxb to isolate a pair o ...
-
... on. It only applies to a single method, list, or dictionary call, not to a more complex nested expression. for example: f = _ + 2; f is now a function of one argument. f.value(7); it is equivalent to having written: f = { |x| x + 2 }; (exce ...
-
... the advantages of object oriented programming while doing so. Encapsulating the complexities and bookeeping greatly reduces the chance of bugs in your own code. Figure 3. Sclang as a high-level client. Language wrapping allows the user to a ...
-
... , loop: 1); chain = FFT (b, sig); onsets = Onsets .kr(chain, MouseX .kr(0,1), \rcomplex ); // You'll hear percussive "ticks" whenever an onset is detected pips = WhiteNoise .ar( EnvGen .kr( Env .perc(0.001, 0.1, 0.2), onsets)); Out .ar(0, P ...