KennyL to turn it into txt i would just chuck the formula into a spreadsheet and do something like round(42*sin(cell * 1/40.5)) + cell where the cell you multiply is just a column from 0 to 255.
If you want to change both bumps individually, the easiest way is to create a second curve and change the amplitude (the first multiplier) and then use one curve for the first half
eg. y = 42 sin(1.42x) + x for 0 - 127 and y = 63 sin(1.42x) + x for 128 - 255.
however the middle of the curve will not be smooth.
If you want it to be smooth from start to finish, I’d recommend looking into a bezier curve generator. But it’ll be harder to export values from them.
Someone made a working cubic bezier curve on Desmos, but as you can see there is a lot of math going on.
Maybe someone else will have a better solution as this is where my knowledge of curves is running out.