dquenne / midi-psg-fm-synth

Chip-based MIDI-controlled synthesizer
2 stars 0 forks source link

Sine LFO waveform #17

Open dquenne opened 1 year ago

dquenne commented 1 year ago

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)