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

InstrSynthDef : SynthDef : Object
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

InstrSynthDef.new

InstrSynthDef.build(instr, args, outClass: 'Out')

Arguments:

instr
args
outClass

InstrSynthDef.makeDefName(instr, args, outClass: 'Out')

Arguments:

instr
args
outClass

InstrSynthDef.hashEncode(object)

Arguments:

object

InstrSynthDef.cacheAt(defName, server)

Arguments:

defName
server

InstrSynthDef.cachePut(def, server)

Arguments:

def
server

InstrSynthDef.loadDefFileToBundle(def, bundle, server)

Arguments:

def
bundle
server

InstrSynthDef.watchServer(server)

Arguments:

server

InstrSynthDef.clearCache(server)

Arguments:

server

InstrSynthDef.loadCacheFromDir(server, dir)

Arguments:

server
dir

InstrSynthDef.cacheRemoveAt(defName, server)

Arguments:

defName
server

InstrSynthDef.freeDef(defName, server)

Arguments:

defName
server

InstrSynthDef.freeAll(server)

Arguments:

server

InstrSynthDef.buildSynthDef

Inherited class methods

Instance Methods

.longName

.instrName

.tempTempoKr

.tempTempoKr = value

.rate

.numChannels

.build(instr, args, outClass: 'Out')

Arguments:

instr
args
outClass

.buildUgenGraph(argInstr, args, outClass)

Arguments:

argInstr
args
outClass

.addInstrOnlyArg(name, value)

Arguments:

name
value

.addSecretIr(object, initialValue, selector)

Arguments:

object
initialValue
selector

.addSecretKr(object, initialValue, selector)

Arguments:

object
initialValue
selector

.playerIn(object)

Arguments:

object

.secretObjects

.secretDefArgs

.buildControlsWithObjects(instr, objects)

Arguments:

instr
objects

.checkInputs

.finishBuild

.instr

.buildErrorString

.tempoKr(object, selector)

Arguments:

object
selector

.onTrig(trig, func, value: 0.0)

Arguments:

trig
func
value

Inherited instance methods

How it works