rsc3/doc-schelp/HelpSource/Classes/ControlName.scrbl

63 lines
1.2 KiB
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{ControlName}
Object to store control information of SynthDef (used internally)@section{related}
Classes/SynthDesc, Classes/SynthDef
@section{categories}
UGens>Synth control
@section{description}
For an explicit creation of control names see: link::Classes/NamedControl::, link::Classes/Control::
@section{examples}
@racketblock[
a = SynthDescLib.global; // the global library of SynthDescs
x = a.synthDescs.at(\default); // get the default SynthDesc
x.controls.do { |ctl| [\name, ctl.name, \defaultValue, ctl.defaultValue].postln };"";
::
]
@section{instancemethods}
@section{private}
printOn
@section{method}
name
The name of the control.
@section{returns}
a link::Classes/Symbol::
@section{method}
index
The index of the control.
@section{returns}
an link::Classes/Integer::
@section{method}
rate
The rate of the control.
@section{returns}
a link::Classes/Symbol:: like
@racketblock['audio':: or ]
@racketblock['control'::
]
@section{method}
defaultValue
Default value of this control. Will be an link::Classes/Array:: for multichannel controls.
@section{method}
numChannels
The number of channels.
@section{returns}
an link::Classes/Integer::