Clarifications
Sorry for being unclear. First of all, yes, a scaling factor for amplitude would be necessary, and I have no idea why that didn't occur to me earlier. I think it was mosly because in the simpler code I wrote originally, I used the position function to generate a percentage...