Methods
(static) accum()
Increment a stored value between a provided range
- Source:
(static) phasor()
A phasor accumulates phase, as determined by its frequency, and wraps between 0 and 1. This creates a sawtooth wave, but with a dc offset of 1 (no negative numbers)
- Source:
(inner) clamp(signal, minopt, maxopt)
Clamp constricts an signal to a particular range. If signal exceeds the maximum, the maximum is returned. If signal is less than the minimum, the minimum is returned.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
signal |
Signal | Number | |||
min |
Signal | Number |
<optional> |
-1 | |
max |
Signal | Number |
<optional> |
1 |
- Source: