Likely use a lookup table for sine values for performance reasons. Rough idea: from wavelength and mills() calculate the degrees, then have a method that uses a look-up table to convert degrees to sine values as a signed int (e.g. -32768..32767), then convert that into the scaled LFO values (lfo_scale * sin_val / 32768)
Likely use a lookup table for sine values for performance reasons. Rough idea: from wavelength and mills() calculate the degrees, then have a method that uses a look-up table to convert degrees to sine values as a signed int (e.g.
-32768..32767
), then convert that into the scaled LFO values (lfo_scale * sin_val / 32768
)