lfo

Post Reply
11ivan11
Posts: 23
Joined: Mon Apr 26, 2021 10:55 am

lfo

Post 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 ?
UrbanCyborg
Posts: 640
Joined: Mon Nov 15, 2021 9:23 pm

Re: lfo

Post 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
Cyberwerks Heavy Industries -- viewforum.php?f=76
User avatar
utdgrant
Posts: 679
Joined: Wed Apr 07, 2021 8:58 am
Location: Scotland
Contact:

Re: lfo

Post 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
LFO Demo Module.jpg (60.99 KiB) Viewed 14992 times
LFO Demo Module in VMD.jpg
LFO Demo Module in VMD.jpg (180.88 KiB) Viewed 14992 times
______________________
Dome Music Technologies
11ivan11
Posts: 23
Joined: Mon Apr 26, 2021 10:55 am

Re: lfo

Post by 11ivan11 »

thanks a lot bro
Post Reply

Return to “Module Designer”