Page 1 of 1
lfo
Posted: Thu Mar 27, 2025 8:02 am
by 11ivan11
Hi to everyone how to make a lfo? And Other question I have 2 adsr I need input that triggers both adsr. How to make it ?
Re: lfo
Posted: Thu Mar 27, 2025 3:06 pm
by UrbanCyborg
It strikes me that you're trying to write a complete instrument without knowing how to write any of its subparts. Nonetheless, to trigger both adsrs just send the same signal to each.
For the LFO, create a simple ramp wave by starting a counter at zero and, each sample time, increment it by frequencyHz/sampleRate. When it overflows the range, set it back to zero, corrected by the amount it overshot. To get other waveforms, you can do some jiggery pokery to derive them from the ramp wave. Except for the sine wave; for that you'll actually have to calculate a sine wave, or something resembling one. I used a parabolic approximation in Quadrature VLFO. You can find that algorithm easily on the web.
Reid
Re: lfo
Posted: Fri Mar 28, 2025 9:13 am
by utdgrant
11ivan11 wrote: ↑Thu Mar 27, 2025 8:02 am
Hi to everyone how to make a lfo?
Just use the DigitalOscillator class in Voltage Module Designer.
There is even an example of how to create an LFO module in the SDK:

- LFO Demo Module.jpg (60.99 KiB) Viewed 24027 times

- LFO Demo Module in VMD.jpg (180.88 KiB) Viewed 24027 times
Re: lfo
Posted: Mon Mar 31, 2025 7:11 am
by 11ivan11
thanks a lot bro