BBlockerProgram:
Filter:
sc3-plugins/Classes (extension) | Convenience

BBlockerProgram
ExtensionExtension

Convenience class to create and store BetaBlocker programs

Description

Convenience class to create and store assembly programs for the BetaBlocker VChip.

See http://tai-studio.org/portfolio/chip-interpretations.html for details.

Class Methods

.new

creates a new BBlocker program:

Arguments:

program

Mixed array of instructions (Symbols) and Integers (will be interpreted either as instructions or as values for unary instructions like \JMP or \PHSL).

.instructions

all instructions

.descs

all descriptions

.printDescs

print description for each instruction

.find

search for command

Arguments:

identifier

search term

Returns:

array of commands

.descOf

find description for command

Arguments:

key

command

Returns:

description string

Instance Methods

.fillBuffer

fill Buffer with compiled code.

Arguments:

buffer

buffer to be filled.

.program

Returns:

the program

.makeBuffer

create a Buffer and fill it with conpiled code.

Arguments:

server

instance of Server on which the Buffer is created

action

action to be evaluated after successful buffer creation

Returns:

the Buffer

.collection

array with 256 entries containing the codeified program.

Arguments:

force

if true, force re-computation.

.asLocalBuf

Returns:

compiled program as a LocalBuf object

.play

play program.

Arguments:

rate

rate of operation

using

instance of Server or Buffer. If a buffer is given, this is used to load the program into.

leak

if true, encapsulate output by a LeakDC.

vol

attenuation

force

force re-filling of collection with program (plus possible randomness)

Returns:

Synth evaluating and playing the program.

.ar

server playback.

Arguments:

rate

rate of operation

using

instance of Server or Buffer. If a buffer is given, this is used to load the program into.

leak

if true, encapsulate output by a LeakDC.

vol

attenuation

force

force re-filling of collection with program (plus possible randomness)

.fillUpRandom

if true, fill remaining space in collection/Buffer with random numbers between 0 and 255.

.scope

run program and scope it.

Arguments:

rate

rate of operation

using

instance of Server or Buffer. If a buffer is given, this is used to load the program into.

leak

if true, encapsulate output by a LeakDC.

vol

attenuation

force

force re-filling of collection with program (plus possible randomness)

.plot

run program and plot its results.

Arguments:

rate

rate of operation

using

instance of Server or Buffer. If a buffer is given, this is used to load the program into.

leak

if true, encapsulate output by a LeakDC.

duration

time to run in seconds.

force

force re-filling of collection with program (plus possible randomness)

.decompile

decompile content of collection.

Arguments:

force

if true, force re-write of (intermediately used) collection.

Returns:

program

Examples