Just another LFOrmula

I like beatsynced LFOs for rythmic stuff but with the normal LFO device I have to enter reset PatternFX everywhere and inside of doofers this becomes even more cumbersome. So I made one with the formula device.
I made three presets, one where you control amplitude, phase and center via the sliders and speed and waveform components inside the function call.
the other 2 used in concatenation, one controlling speed and phase, the other amp and center.


meaning every 1/4 of a beat, a wave is started with 5 parts sinewave, 2 parts square, 1 part negative ramp, 0 parts triangle, 0 custom sequence, averaged out.

image

this one will start a wave every 1.5 beats with only custom array enabled. each of the table’s items is granted 2 lines to shine, false = resets on start of pattern.

demo file: 20250712_LFOrmula.xrns (4.1 MB)

Might not be the biggest novelty but I like it a lot. I hope it is useful to someone else, too. I also wish there would be more than 3 input parameters…

2 Likes

Neat!

Note, instead of the long list of if statements to snap the slider to a discrete value, you can define a table at the top level with your values and get an index using floor and the length of the table inside your function. This way you can freely change the items in the list and the slider will always work as expected.

local values = { 1/32, 1/16, 1/8, 1/7, 1/6, 1/5, 1/4, 1/3, 1/2, 1 }

function func(sn,sq,sw,tr,ar,gr,contx)
  -- slider A multiplies the length of the array (#values) minus one,
  -- adding it to one ensure the index is never zero (as indices start from 1)
  local value = values[1 + floor(A * (#values - 1))]
  -- use the value later...

Cool music btw!

2 Likes

oh cool, thank you. That answers a question I just tried to solve. My lua skills aren’t that great so far :slight_smile:

1 Like

breaking news: superduperLFO 2 has just been released. Enhanced formula - now with 20% less code :sparkles: :crazy_face:
20250712_LFOrmula_2.xrns (3.4 MB)
this makes it much easier to set the desired frequencies, love it.

lfo to pitch with value table is fun
20250712_formula_to_pitch.xrns (736.8 KB)

2 Likes