Installs a custom synth graph builder on the current thread, during the invocation of a closure.
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.
the result type of the body
the builder to install on the current thread
the body which is executed with the builder found through SynthGraph.builder
the result of executing the body
A boolean setting (defaults to false
) which can help track down
bugs with graph elements being added outside a SynthGraph
context.
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.