InstrSynthDef:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > Instr

InstrSynthDef
ExtensionExtension

Extends SynthDef enabling the extra capabilities of Instr with Patch

Description

A standard SynthDef creates a synth on the server that has control inputs for each function argument on the synth def function.

An InstrSynthDef will build a different synth def depending on what objects were passed into it. Some of the inputs (and some of the synth def function's arguments) will not result in control inputs on the synth at all.

To use Patch, you don't need to know or understand the following, but if you are trying to write arcane input or player objects, then this will be of interest.

Class Methods

.new

.build

Arguments:

instr
args
outClass

.makeDefName

Arguments:

instr
args
outClass

.hashEncode

Arguments:

object

.cacheAt

Arguments:

defName
server

.cachePut

Arguments:

def
server

.loadDefFileToBundle

Arguments:

def
bundle
server

.watchServer

Arguments:

server

.clearCache

Arguments:

server

.loadCacheFromDir

Arguments:

server
dir

.cacheRemoveAt

Arguments:

defName
server

.freeDef

Arguments:

defName
server

.freeAll

Arguments:

server

.buildSynthDef

Instance Methods

.longName

.instrName

.tempTempoKr

.rate

.numChannels

.build

Arguments:

instr
args
outClass

.buildUgenGraph

Arguments:

argInstr
args
outClass

.addInstrOnlyArg

Arguments:

name
value

.addSecretIr

Arguments:

object
initialValue
selector

.addSecretKr

Arguments:

object
initialValue
selector

.playerIn

Arguments:

object

.secretObjects

.secretDefArgs

.buildControlsWithObjects

Arguments:

instr
objects

.checkInputs

.finishBuild

.instr

.buildErrorString

.tempoKr

Arguments:

object
selector

.onTrig

Arguments:

trig
func
value

How it works