-
... a user to create a new device. See GeneralHID for a complete explanation and an example of how to access an HID device. It is advised to use this class instead of the platform specific classes: HIDDeviceService (on MacOSX) and LID (on Linux ...
-
... setFunc - function that is called when the stream is reset. See also: Pfuncn // example ( var a, x; a = Pfunc ({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, { \reset.postln }); x = a.asStream; x.nextN(20).postln; x.reset; ) // sound example ...
-
... de, select all the lines and press <enter>. To help with the selection process, examples with more than one line often are placed in enclosing parentheses. In such cases, select the text by clicking immediately to the right of the top paren ...
-
... ot found, the stream otherwise suspendAll Stop all substreams of the Spawner // example 1: a simple Pspawner ( Pspawner ({ | sp | // parallel in-c'ish pulses will run throughout the example sp.par( Pbind (*[ degree: [0,7], octave: 7, dur: 0 ...
-
... the selector and evaluating the result with the dictionary as an argument. For example: a = IdentityDictionary (know: true ); a.put( \foo , { | x | ( "the argument is:" + x).postln }); a.foo; Accessing Instance Variables proto_(IdentityDic ...
-
... tityDictionary / PriorityQueue, do is faster. *new(size) create a new order. // example g = Order .new; g.put(7, 100); // put a value (100) at index 7 g.clear; // empty *newFromIndices(array, indices) create a new order from given items and ...
-
... efault: 1) length - number of values produced (default: inf) See also: Pgeom // example ( var a; a = Pgeom (1.0, 1.1, inf ); a.asStream.nextN(100).plot; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; ...
-
... ty The easiest way to get sound from SC is to use a Function. Below is a simple example of this. Execute this (after making sure the server is booted), and when you're sick of it, press Cmd - . (that's hold down the command key and press th ...
-
... lt: 1.0) length - number of values produced (default: inf) See also: Pseries // example ( var a; a = Pgeom (1.0, 1.1, inf ); a.asStream.nextN(100).plot; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05, ...
-
... ttern (or compatible pattern input) b - a pattern (or compatible pattern input) examples of binary operators are: +, -, /, *, min, max, hypot ... See also: Pnaryop , Punop , BinaryOpFunction // example ( var a; a = Pbinop ( \hypot , Pseries ...