
DSP TIMER
---------

Multi-function DSP bool timer to avoid usage of audio lines when possibly not needed.
Features are identical to those of the GUI Timer.

The module has a bool trigger input and a bool signal output.
The two time intervals used T1 and T2 (in milliseconds or samples depending on the Units pin setting, not exposed) can be specified with the respective pins.
A suitable operation mode can be selected with the Mode pin (not exposed):

ON DELAY - output is activated after a T1 delay since trigger activation; if trigger is released before T1 has expired, no output will be produced; output is deactivated immediately on trigger release

OFF DELAY - trigger activates the output immediately; the output will be deactivated after a T1 delay since trigger release. If trigger is activated again before such interval, the timer will be reset until the next trigger release

ON PULSE - a single pulse of duration T2 will be output after a delay T1 since trigger activation; any further change in trigger state is ignored until T2 has expired.
Note: T2 will be clipped to one sample length if it results or is set to zero samples, since a zero samples long pulse does not make sense.

OFF PULSE - a single pulse of duration T2 will be output after a delay T1 since the last trigger release; any further change in trigger state is ignored until T2 has expired
Note: T2 will be clipped to one sample length if it results or is set to zero samples, since a zero samples long pulse does not make sense.

BISTABLE - output is toggled everytime the trigger is activated (T1 and T2 not used)

PULSE TRAIN - while trigger is active, an asymmetrical pulse train (T1 = On duration, T2 = Off duration) is generated; on trigger release the output is deactivated immediately.
Note: T1 and T2 will be clipped to one sample length if they result or are set to zero samples, since a zero samples long pulse does not make sense.


Note: given the overhead involved with setting and transmitting DSP control pins at audio rate vs. Audio pins, it is advisable not to use the Timer module as an oscillator, i.e PULSE TRAIN mode with a very high frequency. Please use an Audio oscillator for that.