For a few years now I have been developing a bash script that is a calibrated text mode AudioScope.
A guy on here, 'kryten2', if he still on here, helped solve auto recording as a capture for OSX 10.7.5.
The original function in my script that works fine is here:-
#...