mouse scrub waveform buffer

Keenan McCracken's icon

Hi wondering how I can control the scrubbing of a waveform buffer with a dial on a midi controller instead of the mouse. As of now, I have to click on the buffer and scroll through. I'll like to be able to control this by hitting a button the controller to trigger on/off and use a dial or slider to control position.

Keenan McCracken's icon

it's the buffer scrub patch from the lowkeyNW package if that helps

Source Audio's icon

On longer audio files scrubbing with midi 0-127 range would sound as jump switch.
scale dial range to buffer length.
Use on off switch to start/stop scrubbing.

Max Patch
Copy patch and select New From Clipboard in Max.