j,
such a box as you describe above is certainly possible. i or mac could probably design the circuit for you. but it begs the question: why is it not being done already?