|
CSL
5.2
|
CVariable is the the abstract external variable (plug or port) class. This is the abstract class for static and dynamic variables; it's a sample stream. Clients of Variable (oscillators, dsp units, etc) first ask whether its values are fixed over the length of the buffer or not. If the value is fixed, the client calls next_sample() to get the next sample and use it the DSP loop. If the value is not fixed, the client calls next_buffer() to get the next buffer of values. More...
#include <Variable.h>
Inheritance diagram for csl::CVariable:Public Member Functions | |
| CVariable () | |
| Constructors. | |
| CVariable (float tvalue) | |
| float | value () |
| Accessors. | |
| void | setValue (float x) |
| void | setValue (int x) |
| void | setValue (double x) |
Protected Attributes | |
| float | mValue |
| the value I represent | |
CVariable is the the abstract external variable (plug or port) class. This is the abstract class for static and dynamic variables; it's a sample stream. Clients of Variable (oscillators, dsp units, etc) first ask whether its values are fixed over the length of the buffer or not. If the value is fixed, the client calls next_sample() to get the next sample and use it the DSP loop. If the value is not fixed, the client calls next_buffer() to get the next buffer of values.
Definition at line 29 of file Variable.h.
|
inline |
Constructors.
Definition at line 35 of file Variable.h.
|
inline |
Definition at line 36 of file Variable.h.
|
inline |
Accessors.
Reimplemented in csl::StaticVariable.
Definition at line 38 of file Variable.h.
References mValue.
Referenced by csl::StaticVariable::value().
|
inline |
Reimplemented in csl::DynamicVariable, and csl::StaticVariable.
Definition at line 39 of file Variable.h.
References mValue.
|
inline |
Reimplemented in csl::DynamicVariable, and csl::StaticVariable.
Definition at line 40 of file Variable.h.
References mValue.
|
inline |
Reimplemented in csl::DynamicVariable, and csl::StaticVariable.
Definition at line 41 of file Variable.h.
References mValue.
|
protected |
the value I represent
Definition at line 32 of file Variable.h.
Referenced by setValue(), and value().