SynthGraph

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

Type members

Classlikes

trait Builder

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(thunk: => Any): SynthGraph
def use[A](builder: Builder)(body: => A): A

Installs a custom synth graph builder on the current thread, during the invocation of a closure. This method is typically called from other libraries which wish to provide a graph builder other than the default.

Installs a custom synth graph builder on the current thread, during the invocation of a closure. This method is typically called from other libraries which wish to provide a graph builder other than the default.

When the method returns, the previous graph builder has automatically been restored. During the execution of the body, calling SynthGraph.builder will return the given builder argument.

Type Params
A

the result type of the body

Value Params
body

the body which is executed with the builder found through SynthGraph.builder

builder

the builder to install on the current thread

Returns

the result of executing the body

Concrete fields

var warnOutsideContext: Boolean

A boolean setting (defaults to false) which can help track down bugs with graph elements being added outside a SynthGraph context. When this setting is true, a warning message is printed to Console.err with the graph element added and the stack trace, indicating calls such as SinOsc.ar outside a thread local SynthGraph builder.

A boolean setting (defaults to false) which can help track down bugs with graph elements being added outside a SynthGraph context. When this setting is true, a warning message is printed to Console.err with the graph element added and the stack trace, indicating calls such as SinOsc.ar outside a thread local SynthGraph builder.