- Companion
- class
Type members
Classlikes
Value members
Concrete methods
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
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.