I basically need a complex 2D graph that has nice curves and irregular bumps to be loaded as an Array.
This will be then used to animate sound.
I guess the graph could be an image file or a spreadsheet type file, no sure how to do this so please help me Obiwan Kenobi, you're my only hope lol
My next question is can i interpolate between array values with Lerp or some other method?
bump bump bump lol
Develop games in your browser. Powerful, performant & highly capable.
To read the graph, I have no clue.
To interpolate the values of the array, you could draw lines between each point using a lerp to find the coordinate of each of them, you could also try to do a modelisation of course, but this will implies maths that I don t quite remember
Thanks Aprodite, I figured it all out myself, not sure I can explain it easily though, but I successfully used Arrays with smooth Interpolation between values without using Lerp, but now that i think about it I could replace it to Lerp just to simplify the way the extra long math formula looks