2 * This is
a resonant filter
(with infinite? resonance
),
3 * cutoff
/oscillation frequency of
50Hz
, so that the step value
4 * will equal
1/8 (IOW
, >>3). The step value is usually:
5 * (* 2 (sin
(* pi
(/ 1 frequency
)))) - see resonant-filter.lisp
6 * in my snippets collection.
8 * Actually
, this is
>>4 now
, to make things
a bit smoother.
12 global reset_sine_oscillator
13 reset_sine_oscillator
:
14 MOVE.W
#$100, cosine ; Fairly arbitrary max amplitude.
18 global step_sine_oscillator