Morphing waveforms with potentiometer

aranis22

Member
So a potentiometer value ranges from 0 to 1023. I want to create an output waveform that is a blend of waveforms as the potentiometer moves.

For example, at 0, we will output a sine wave. At 255, we will output a sine wave. In between these values is a morphing between the two intermediate waveforms.

Basically, this video demonstrates it quite well. Just wondering if anyone has a method to implement this? Sine to Triangle: 0 to 255
  • Triangle to Saw: 255 to 510
  • Saw to Square: 510 to 765
  • Square to Pulse: 765 to 1023
 
I would suggest creating five separate waveform generators: one sine, one triangle, one saw, one square, & one pulse. Feed each of these waveform generators into a mixer (you'll actually need two 4-input mixers to accomodate the 5 inputs, then feed the output of these two mixers into yet a third mixer). Read your potentiometer, then adjust the input gains on the mixer to set the gain for each waveform according to your desired "mix". Note, set & leave the amplitude of each waveform generator at some constant value . . . use the mixer input gains to change the mix.

Hope this helps . . .

Mark J Culross
KD5RXT
 
Back
Top