cycle
A periodic waveform oscillator.
new cycle([options])
Options
Name | Type | Default | Description |
---|---|---|---|
buffername | symbol | RNBODefaultSinus | The buffername attribute followed by the name of a valid buffer will fill the cycle~ wavetable with the values from that buffer instead of the default wavetable. |
index | enum | freq | Sets whether the cycle~ index is set using a frequency in hz or phase. |
interp | enum | linear | Sets the interpolation mode for the internal buffer used by cycle~. |
Methods
next(frequency, phase_offset): [out1, out2]
Arguments
Name | Type | Default | Description |
---|---|---|---|
frequency | number | ||
phase_offset | number |
Returns
Name | Type | Description |
---|---|---|
out1 | number | Oscillator audio output. |
out2 | number | The oscillator phase output shows the current phase as it cycles through the internal buffer. |
reset(): out1
Returns
Name | Type | Description |
---|---|---|
out1 |