Waveform Drawing/History

Oct 8, 2012 at 10:19pm

Waveform Drawing/History

Hey!

I’m trying to control the amplitude of samples in a waveform with a potentiometer. Essentially I want to have it on or off depending on where the potentiometer is. With one pass from 0-127 from the potentiometer, I can add 1 to the waveform, and from 127-0 I can subtract 1 so the waveform is empty. The problem is I can’t figure out how to record the history of data coming from the potentiometer, and relay that to ether add or subtract to the waveform. I attached an example of my problem.

Thanks for any help!

– Pasted Max Patch, click to expand. –
#64680
Oct 9, 2012 at 1:26am

This is what I’ve come up with so far. Its just about what I want it to do, but its slightly buggy. Any clean up suggestions would be real helpful!

– Pasted Max Patch, click to expand. –
#233327

You must be logged in to reply to this topic.