How to script in OpenFunScripter - video tutorial

Is there a way to add a sine wave to a set of points?

Lets say i have this set of points in the image:


And i want to automatically create waves like this one where I can change the frequency and amplitude:

Also, I’m interested in what kind of automations can be done with OFS, can I code functions to create patterns easily? If there is a more in-depth tutorial on the subject let me know.