-
NotificationCenter One common OOP pattern is Model-View-Controller where one object (the controller) is a dependant of the model. Every time the model changes it notifies all of its dependants. In this case the model has a dictionary of dep ...
-
... * IFFT (chain).dup); }.play(s); ) x.free; See pvcollect pvcalc pvcalc2 for more interesting examples.
-
Process superclass: Object A Process is the runtime environment for the virtual machine and interpreter. It has a subclass named Main which is where you should override the methods of Process. There are two methods of interest. One is named ...
-
... // Let's turn the bins on and off at different rates, I'm *sure* that'll sound interesting mags = mags * { LFPulse .kr(2 ** IRand (-3, 5)).range(0, 1)}.dup(100); // Let's ignore phase for now phases = 0.dup(100); chain = FFTTrigger (b, 0.5 ...
-
... postbuffer p.front; // put some text in the buffer: p.insert( "this is a really interesting text to read in the buffer" ); p.front; // make a newline: p.newline; // make a button: p.button( [ "on", "off", "in between" ], { |v| v.postln; } ) ...
-
random generator seed Every Thread in sclang has a (pseudo-) random number generator that is responsible for all randomization within this thread. Each random number generator has its own seed (starting point) from which the series of value ...
-
... // Let's turn the bins on and off at different rates, I'm *sure* that'll sound interesting mags = mags * { LFPulse .kr(2 ** IRand (-3, 5)).range(0, 1)}.dup(100); // Let's ignore phase for now phases = 0.dup(100); // We need to create an FF ...
-
Spec input datatype specification Inherits from: Object Specs specify what kind of input is required or permissible, and what the range of those parameters are . This is an abstract class – the most common subclass is: ControlSpec ControlSp ...
-
ServerOptions encapsulates commandline and other options for a Server Inherits from: Object ServerOptions encapsulates various options for a server app within an object. This makes it convenient to launch multiple servers with the same opti ...
-
Main superclass: Process Main is the concrete instance of Process (the runtime environment for the virtual machine and interpreter). Main overrides some methods of Process. There are two methods of interest. One is named startup and is call ...