What I'm thinking about is building a small circuit that can detect audio and light an LED if there's something playing. Like one of those volume bars, but with only a single segment.
This would be for the Ocelot's audio output: if I rebuild the circuit on a bigger board, I can add in new elements that will show when each of the four channels is outputting audio, so you get nice blinky lights while the music is playing.

The Ocelot's output looks like that on the left. Four 0V-3.3V square wave sources in the audio range that are summed together and then read off a pot to produce a value that's sent to the amp board.
I'm thinking I can read a value from each channel at their respective point X, hopefully without distorting their audio signals, and perform my detection.
* Since I don't want distortion the impedance looking into X should be >> the impedance looking down into the audio mixing section, so I want whatever I put at point X to be at least 1M.
What I think I need is to:
* Rectify/half-rectify the signal.
* Smooth it.
* Amplify it if I need to.
* Use that on the base of an NPN transistor to put it into saturation to allow the LED to light.
So here's my plan (on the right):
* I've got a capacitive coupling to start with producing a value at point 1. I need this in case the audio signal is left high after a note. This looks like a high-pass filter to me, so I want it to pass anything greater than say 100Hz.
* 2 is an emitter follower which will stop any further influence on the audio stuff while I do detection. I'll end up with a half-wave low-output-impedance 1V choppy signal at point 2.
* Then I need a low pass filter to smooth out this choppy signal. I want to get rid of anything less than 60Hz - the note on-off is controlled by code in the frame loop, so a nice neat on-off per frame would be good here.
* I need to present some kind of load to this output filter or it'll just immediately discharge right out the final transistor, I think? That's what the resistor between 3 and 4 does.
* So -if- there's an input signal that's > 100Hz, it'll be captured, rectified, isolated, smoothed, turned into a nice 'is a note playing' signal which I can then throw into the final transistor to put it into saturation and power the led.
Does that make sense? :/
The input impedance of this thing would be impedance looking into the first transistor parallel to the resistor preceding it. And the impedance of the after-transistor stage would be the network of resistors and capacitor, treating the final transistor as a direct ground.
I've mucked this up in a circuit simulator and it kind of works but I don't know if I'm thinking about this the right way.




