tick | Tells the class object to generate a new value that will be returned when the output function is called. |
action | Creates the actual new data that will be returned when the output function is called. |
output | Returns the current output value as created by the action function. |
clear | Initilaizes the state of the signal object (if necessary -- as in setting all elements in a delayline to zero). Actual behavior is defined in the derived class. |
No new derived classes can be directly derived from the Signal class. Instead there are two virtual classes intended for this purpose. The classes to inherit from are the Generator and Filter classes.
There is no significant difference between the Generator and Filter classes. The Generator class was created solely for didactic purposes. Generator-derived classes are intended to create signals out of the blue, while Filter-derived classes are intended to take in one or more inputs, then output modified signal(s). Also, parameter values can be treated as signals in Filter classes, while in Generator classes, all parameters must be sent to the object as function calls. For example, to start outputing a soundfile signal, the SoundFileIn must be called with the function setFile. Filter classes could act like Generator classes if no upstream connections are made in instances of the Filter-derived class.