wave~ resizing and interpolation

Cody's icon

Hey all,

Any tips/tricks on reducing noise/clicks when dynamically changing the starting and ending location of a wave~ object? The default interpolation is on high, I know, and I'm looking into as many ideas as I can think of such as rampsmooth~ etc. (but that just sorta turns the clicks into noise).

Thanks in advance!

Cody's icon

gonna try a different approach. keeping the starting and ending points of the wave~ constant, and at the maximum, then use pong~ to rescale output from a phasor~. Any suggestions on this or the above are still welcome.
:)

Cody's icon

The previous idea is the right approach, except i used trapezoid~ instead of pong~ in my final patch.

pong~ would require some wrapping and folding math with the phasor~ rate to ensure that cycles would complete based on, what I'll call, my "Q."

With trapezoid~ i can just set the hi and lo to be the ramp distance, and direction that I want, while the phasor drives the rate. It can handle rapid changes without unwanted noise/artifacts when controlling the playback of a wave~ just like i wanted.

trapezoiddrivewave.maxpat
Max Patch