formula device will just transform or generate slider control with lua code.
The "LFO beatsynced" preset is an lfo by itself - it will generate a sine lfo based on song position in very simple way by itself. Only while song is playing. I think it is rather a quick demo of how the variables are used, not thought to be a complete lfo. You can code pretty complex stuff using this device.
My formula you get when copy/paste stuff in spoiler in above post to track is different. It will just translate the values, so you can select exact LPC values in a LFO by pattern commands. It should have as formula "1/(A*255*Multiplier)". You hook this device into a lfo speed, not some other fomula. Then you set the first slider "PatternFX" to values from pattern data.
It will wrap the values such that a pattern command like "1101" onto the "pattern FX" slider will set the LFO speed slider to 1.000 lines per cycle, using "1105" will set it to 5.000 LPC, "1110" to 16 LPC. So you can control speed exactly in number of lines by the hex value of the pattern comand, from 1 to 255 lines. I thought that was what you wanted. You can edit the "local Multiplier = 1.0" to for example "local Multiplier = 0.5" and then you double the resolution, so "1105" is 0.5*5 = 2.500 LPC. You can use any number or expression... for example "1/3" will give 1/3rd line resolution, though the first three values will of course result in speed 1LPC because the LFO cannot go faster. I think I should also add an offset function.
Or it could also get a table, such that any value like "1101" "1102" "1103" etc would set the LFO to a LPC value you define yoursef...but then you need to edit the code to input your LPC values. But you need not code, you just need to know how to define numbers in text.
You of course also need to reset the LFO to get it in sync, the formula will only change the speed.
Edited by OopsIFly, 05 February 2018 - 02:47.