Tone Generator With Pitch Control

This week, I expanded on the basic tone generator circuit we covered earlier.  With some extra code, I was able to use a potentiometer as a pitch bend dial.

As seen below, the voltage that passes through the potentiometer directly affects the pitch that is played.  The higher the voltage, the higher the pitch and vice versa.

Once I worked that out, I added a delay function to give the tone some rhythm.  If you raise the delay, the tones will play at a slower tempo.  Conversely lowering the delay will cause the tones to play faster.


Comments are closed.