3
Parzi
5y

i'm so desperate to get a demo effect working i've asked a math teacher a question which feels trivial but i can't crack

how the FUCK do you stretch sine waves???

Comments
  • 3
    You mean decreasing the frequency?
  • 1
  • 3
    @Parzi what's the problem then? (As in, more context)

    Are you supposed to build a circuit for doing this or something?
  • 1
    @RememberMe no it's literally just "how the fuck do you do it"
  • 5
    You multiply it?

    sin(angle) * stretch_amount

    Think about what happens to x. It get further away, proportionately.
  • 2
    You can strech in x direction by multiplying with x before feeding into the sin function and stretch in y direction by multiplying the result of the sin function. So yeah have fun.
  • 3
    @AlgoRythm that stretches it in the y direction, yes.

    To stretch it in the x direction, if you have y = sin(x)

    do y = sin(x/a)

    Where a > 1
  • 3
    @Quirinus and if you do it in both directions, it's the same wave but bigger!

    🌊🌊🌊
Add Comment