Sounds like this old pre Arduino project of mine http://www.thebox.myzen.co.uk/Hardware/The_Sound_Square.html