Thanks a lot for posting this.
Question if I’m using it correctly: the main thing to add randomness is to use the “num_points” value?
It’s taking the shape of the initially saved LFO and adds random points to it, right? Or are there any other values to adjust?
Example: first screenshot “num_points” set to 6, second “num_points” set to 26
What it’s doing is altering the num_points value, but is also editing the point’s values as well. It repeats for the number you put into the ‘points’ value and creates an set x and random y value; (ex: 10 in the points value means you need 20 x&y point values and 10 power values).
I could mess with the powers value, but I don’t think it’s necessary
Nice, i think what would be even better is a forum or category for people to share their vitallfo files(in categories). That way,over time, you can build a massive amount of lfo shapes, like many of us did in serum. Because just randomizing it, is giving you the “same” results after some time. I know, sounds stupid since its random and “new” everytime. But go ahead and go 30 points and hit random 50 times and compare it and you see what i mean. At some point you wont get useful results anymore. But the code is still useful!
I don’t want to spoil your joy but this has already been here and I have modified the source code many more times, but the random LFO is usable from a maximum of 3%, the rest is waste. use a random generator instead. that’s just my opinion.
that of all random generated LFOs, only 3 percent are usable.
for me it was only a test in which I found out that it leads nowhere.
I do not discourage anyone from doing so.
as I wrote last time, if, for example, Matt decides to publish some details on how the LFO is specified (especially “powers” section maths), more can be done about it.
To minimize typing in the Python file, you could substitute this line for the points variable, to prompt the user to enter the number of points:
points = int(input('How many curve points do you want (2-101)? '))
Also, if you install the pyperclip library (pip install pyperclip) and import pyperclip at the beginning of the script, you can add this at the end of the script, which will automatically copy the result to the Windows clipboard so you do not have to do it manually:
I also have added this at the very end, just to explain what to do (assuming the pyperclip addition), because I will only use this occasionally and might forget:
print(‘Result is copied to Windows clipboard (or manually copy the result above, including the brackets). In Vital, right-click on the LFO and choose paste.’)
You can randomize the smoothing, on or off, with the mods below. You can really put it anywhere above the last block. I put it after the powers block.