Make midi controller regulate system volume. With the following code a midi controller can be used for controlling the audio volume of a linux system:
aseqdump -p 20 | sed -nur 's/^.*controller 14, value (.*)/\1/p' | \ while read l; do amixer -q set Master $l; done
Given that the midi controller's client nr is: 20 (this can be determined by
aconnect -i) and the 'nr' of the treble is 14 (see
aseqdump output for details)
Is there a way to do this more directly, e.g. in order to circumvent the parsing?