AudioSpec:
Filter:
crucial-library/Classes (extension) | Spec | Libraries > crucial > Spec

AudioSpec
ExtensionExtension

datatype expressing an 'audio' rate object

Description

An audio spec specifies that the input should be an audio signal, or that an output will be an audio signal. Inputs with an AudioSpec are expecting an audio rate player. eg. filters and effects that take an audio input.

Here is an effect patch that specifies that it takes a stereo input (for the 'input' arg) and produces a stereo output.

Its default control is a PlayerInputProxy which is a placeholder. It will play silently, but it will also allow you to compile the patch's synth def and will create an audio input.

Note: this should be changed as the Specs should not be attached to Player, they should be neutral datatypes. The defaultControl system should just go away. see ControlPrototypes

Class Methods

.new

Arguments:

numChannels

The number of channels your input requires. Default value is 1. This can also be nil which expresses that your Instr will multi-channel expand if given more than one channel. ie. its mono-stereo compatible

.initClass

Instance Methods

.numChannels

.defaultControl

.storeArgs

.rate

.canAccept

Arguments:

thing

.constrain

Arguments:

... args

.color