BBlockerBuf: table of contents
Filter:
Classes (extension) | UGens

BBlockerBuf : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

MultiOut BetaBlocker VChip

Description

BetaBlocker vortual chip implementation. The heap is realised as a Buffer and can possibly be shared with other instances. It triggers the computation of the underlying BetaBlocker engine at a given rate and returns an array consisting of the program counter and all 8 stack elements re-scaled to values between -1 and 1.

(
// bubbles
{
    var pC;    // program counter
    var stack;

    // create program
    var program = BBlockerProgram([\ORG, \INC, \INC, \INC, \DUP, \INC, \JMP, 1]).asLocalBuf;

    # pC ... stack = BBlockerBuf.ar(
        freq: MouseX.kr(1000, 20000, -2),
        bufnum: program,
        startpoint: 0
    );

    Splay.ar(SinOsc.ar(stack.linexp(-1, 1, 100, 1000))) + (MouseY.kr(0, 1) * pC!2);

}.scope
)

Class Methods

BBlockerBuf.ar(freq, bufnum: 0, startpoint: 0)

Arguments:

freq

evaluation frequency

bufnum

Pointer to the buffer where the heap is stored. Can be modulated at control-rate.

startpoint

Initial position of the program counter.

Inherited class methods

Instance Methods

Inherited instance methods