-
Language control methods Some patterns mimic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default): Evaluates a pattern 'condition' that returns true ...
-
Server control methods A handful of filter patterns can isolate signals on a private bus and/or group, and also apply effect synths. A nice feature is that resources allocated at the beginning of the pattern are removed at the end. This is ...
-
A Practical Guide to Patterns H. James Harkins Introduction Patterns are one of the most powerful elements of the SuperCollider language, but in some ways they can be difficult to approach using only the class-oriented help files. These doc ...
-
Filter patterns Just like filter UGens modify an input signal, filter patterns modify the stream of values coming from a pattern. We have already seen some operations that modify a stream of values: math operators (which render as Punop, Pb ...
-
PatternConductor superclass: Object PatternConductor provides a simple interactive control (supporting play, pause, resume, stop) for playing pattern, much like Pattern-play. However, PatternConductor creates its own clock and directly cont ...
-
Inner workings of patterns Patterns as streams As noted, patterns by themselves don't do much. They have to be turned into streams first; then, values are requested from a stream, not from the pattern. For most patterns, the stream is an in ...
-
... roxySpace .push(s); ~a[0] = ... Ndef ( \a , ...) Existing roles: \ set -> event pattern : Set the proxy controls with an event pattern of type \set // example: a = NodeProxy (s); a[0] = { |freq = 440, dt=0.1, rate=2| Ringz .ar( Impulse .ar( ...
-
Pattern control by external device Control of parameters by MIDI or HID To get pattern values from a HID device, use the PhidKey or PhidSlot pattern. For MIDI, the best approach is to save an incoming value into a variable, and then use Pfu ...
-
Parallelizing event patterns There are a couple of different ways to have several patterns playing at the same time. The most obvious is to play them separately. The patterns' events get scheduled independently on their clock(s) and run con ...
-
From words to phrases A single pattern by itself is not so exciting. But patterns can be used together to get more complex results. Patterns within list patterns We saw list patterns ( Pseq , Prand , etc.) that returned numbers from a prese ...