Spec:
Filter:
Classes | Control | Spec

Spec : Object

input datatype specification
Source: Spec.sc

Description

Specs specify what kind of input is required or permissible, and what the range of those parameters are. This is an abstract class - the most common subclass is: ControlSpec.

ControlSpec is used by GUI sliders and knobs to specify the range and curve of the controls. Input datatypes are of interest to functions, to gui interface objects (sliders etc.) and can also be used for introspection.

The class Spec itself holds a global IdentityDictionary of common specifications. The name that the spec was stored as can then be used as a shorthand to refer to specs:

Some common mappings are initialized in ControlSpec.initClass. You may add or overwrite mappings as you wish. The crucial library (available as a quark, see Quarks) defines a number of additional subclasses. See the file quarks/cruciallib/Instr/MoreSpecs.sc

Class Methods

Spec.add(name, args)

Add a spec to the global spec dictionary. The item will be converted to a spec using .asSpec.

Inherited class methods

Undocumented class methods

Spec.findKeyForSpec(spec)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

Spec.guess(key, value)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/JITLibExtensions/classes/scide_scqt/GUI/SystemOverwrites/extMakeEnvirGui.sc

Spec.specs

Spec.specs = value

Spec.suggestString(key, value)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/JITLib/GUI/extSoftSet.sc

Instance Methods

Inherited instance methods

Undocumented instance methods

==(that)

.asSpec

.background

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

.canAccept

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Players/instrSupport.sc

.color

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

.defaultControl

.findKey

.gridClass

.hash

.mapToSpec(v, spec)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

.rate

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

Examples