title: 'Mono' FFT Visualization of a Stereo Analog Audio Source
body: <p>I have created a really basic FFT visualizer using a Teensy microcontroller, a display panel, and a pair of headphone jacks. I used kosme's FFT library for Arduino: <a href="https://github.com/kosme/arduinoFFT" rel="nofollow noreferrer">https://github.com/kosme/arduinoFFT</a></p>
  
  <p>Analog audio flows into the headphone input and to a junction where the microcontroller samples it. That junction is also connected to an audio out jack so that audio can be passed to some speakers.</p>
  
  <p>This is all fine and good, but currently I'm only sampling the left audio channel. Any time music is stereo separated, the visualization cannot account for any sound on the right channel. I want to rectify this but I'm not sure whether I should start with hardware or software.</p>
  
  <p>Is there a circuit I should build to mix the left and right audio channels? I figure I could do something like so:
  <a href="https://i.stack.imgur.com/JirSX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JirSX.png" alt="example schematic"></a></p>
  
  <p>But I'm pretty sure that my schematic is misguided. I included bias voltage to try and DC couple the audio signal so that it will properly ride over the diodes. Making sure that the output matches the input is important to me though.</p>
  
  <p>Or maybe should this best be approached in software? Should I instead just be sampling both channels separately and then doing some math to combine them?</p>