14 #include "newran/newran.h"
38 float value() {
return(mValue); };
41 void setValue(
double x) { mValue = (float) x; };
145 class RandomVariable :
public CVariable,
public UnitGenerator {
148 const static bool copySeedFromDisk =
false;
157 RandomVariable(Distribution d,
float mean,
float variance,
float v1,
float v2);
160 void nextBuffer(Buffer & outputBuffer,
unsigned outBufNum)
throw (CException);
163 #endif // USE_RANDOMS
The DynamicVariable class is a changing variable that can perform an operation (e.g., scaling) on another unit generator.
DynamicVariable(int val, UnitGenerator &vox)
DynamicVariable(float val, UnitGenerator &vox)
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Effect – mix-in for classes that have unit generators as inputs (like filters).
VOperator mMode
the operation I perform '+', '*', etc.
void nextBuffer(Buffer &outputBuffer, unsigned outBufNum)
versions of nextBuffer
bool isFixed()
this what being a static variable means!
DynamicVariable(UnitGenerator &vox, float val, VOperator m)
CVariable is the the abstract external variable (plug or port) class. This is the abstract class for ...
void nextBuffer(Buffer &outputBuffer, unsigned outBufNum)
my main operations
DynamicVariable(float val, UnitGenerator &vox, VOperator m)
StaticVariable – he static external variable (plug) class. This is a kind of variable that holds ont...
void setValue(float x)
set/get the value (not allowed in the abstract, useful for static values)
DynamicVariable(UnitGenerator &vox, int val)
float mValue
the value I represent
DynamicVariable(UnitGenerator &vox, int val, VOperator m)
StaticVariable(float x)
Constructors.
DynamicVariable(UnitGenerator &vox, float val)
Constructors.
void setValue(float x)
set/get the value (not allowed in the abstract, useful for static values)
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
DynamicVariable(UnitGenerator &vox, double val)
Base class of CSL exceptions (written upper-case). Has a string message.
DynamicVariable(int val, UnitGenerator &vox, VOperator m)