SynthDef

object SynthDef
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(name: String)(thunk: => Unit)(factory: BuilderFactory): SynthDef

Creates a new SynthDef with a given name and a thunk parameter that creates the expanded UGen graph structure.

Creates a new SynthDef with a given name and a thunk parameter that creates the expanded UGen graph structure.

def loadDirMsg(path: String, completion: Optional[Packet]): SynthDefLoadDir
def loadMsg(path: String, completion: Optional[Packet]): SynthDefLoad
def read(path: String): List[SynthDef]

Reads all synth-definitions contained in a file with standard binary format.

Reads all synth-definitions contained in a file with standard binary format.

def read(is: InputStream): List[SynthDef]

Reads all synth-definitions from an input stream with standard binary format.

Reads all synth-definitions from an input stream with standard binary format.

def write(path: String, defs: Seq[SynthDef], version: Int): Unit

Writes a sequence of synth-definitions to a file specified by its path.

Writes a sequence of synth-definitions to a file specified by its path.

Value Params
defs

sequences of synth-definitions to write

path

path to the file that will be (over)written by this method

version

format version which must be 1 or 2. The default is format 1 which is more compact. Format 2 allows larger synth-defs but is basically an overkill, unless you want to build a definition with more than 65536 UGens.

def write(os: OutputStream, defs: Seq[SynthDef], version: Int): Unit

Writes a sequence of synth-definitions to a file specified by its path.

Writes a sequence of synth-definitions to a file specified by its path.

Concrete fields

var defaultDir: String

The default directory for writing synth defs is the temporary directory given by the system property "java.io.tmpdir"

The default directory for writing synth defs is the temporary directory given by the system property "java.io.tmpdir"

final val extension: "scsyndef"

The SynthDef file name extension (without leading period).

The SynthDef file name extension (without leading period).