Instruction:
Filter:
Classes (extension) | UGens > Generators

Instruction : UGen : AbstractFunction : Object
ExtensionExtension

instruction synthesis (breakpoint set interpreter)
Source: SLUGens.sc

//SLUGens released under the GNU GPL as extensions for SuperCollider 3, by Nick Collins, http://composerprogrammer.com/index.html 

Description

Converts a buffer of virtual machine instructions into synthesis. Based on breakpoint manipulation with linear interpolation.

Class Methods

Instruction.ar(bufnum: 0, mul: 1.0, add: 0.0)

Arguments:

bufnum

Number of buffer holding instructions on the server in the form of successive COMMAND/PARAM PAIRS

The limited command set:

0 interpolate from last to new breakpoint over PARAM *5000 samples (ie down to about 10 Hz, sampling rate dependent)

1 new random breakpoint from PARAM.rand2

2 new breakpoint by perturbing last breakpoint amp by PARAM

3 new breakpoint by interpolating from last breakpoint amp to its inversion

4 new beakpoint by interpolating (t=PARAM) last two breakpoints (zero amp breakpoint by instruction (3,1) then (4,0.5))

5 new breakpoint by damping last breakpoint amp (multiply by damping), damping= PARAM

6 new breakpoint at amplitude +PARAM

8 do next command if probability PARAM

9 goto instruction PARAM within the buffer

In most cases, sensible values for PARAM are from 0.0 to 1.0! But instruction 9 will need much larger address values.

Inherited class methods

Instance Methods

Inherited instance methods

Examples