From 0a3eb6a4b78a472ce2abfff35affe57bad49e6f4 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Thu, 10 Nov 2022 20:01:46 -0500 Subject: [PATCH] AquaMix for Clarett+ 8Pre --- scripts/audio/aquamix.sh | 54 +++++++++++++++++++++++++++++++++----- scripts/audio/audio-lib.sh | 2 +- 2 files changed, 49 insertions(+), 7 deletions(-) mode change 100644 => 100755 scripts/audio/aquamix.sh diff --git a/scripts/audio/aquamix.sh b/scripts/audio/aquamix.sh old mode 100644 new mode 100755 index 8627db8..524ddc8 --- a/scripts/audio/aquamix.sh +++ b/scripts/audio/aquamix.sh @@ -5,7 +5,7 @@ # Import library source $(dirname ${BASH_SOURCE[0]})/audio-lib.sh -INTERFACE_NAME='Scarlett 18i20' +INTERFACE_NAME='Clarett+ 8Pre' INTERFACE_NUM=$(getCardNumber $INTERFACE_NAME) checkCard "$INTERFACE_NAME" "$INTERFACE_NUM" @@ -54,6 +54,44 @@ function setStereoTwo() { setStereo $INTERFACE_NUM 7 $1 $2 $3 } +# Sets the volume levels of the third stereo instrument. +# +# $1 monitor volume +# $2 first headphone volume +# $3 second headphone volume +function setStereoThree() { + setStereo $INTERFACE_NUM 9 $1 $2 $3 +} + +# Sets the volume levels of the fourth stereo instrument. +# +# $1 monitor volume +# $2 first headphone volume +# $3 second headphone volume +function setStereoFour() { + setStereo $INTERFACE_NUM 11 $1 $2 $3 +} + +# Sets the volume levels of the fifth stereo instrument. +# +# $1 monitor volume +# $2 first headphone volume +# $3 second headphone volume +function setStereoFive() { + setStereo $INTERFACE_NUM 13 $1 $2 $3 +} + +# Sets the volume levels of the sixth stereo instrument. +# +# $1 monitor volume +# $2 first headphone volume +# $3 second headphone volume +function setStereoSix() { + setStereo $INTERFACE_NUM 15 $1 $2 $3 +} + + + # Sets the volume levels of the studio microphone. # # $1 monitor volume @@ -78,11 +116,15 @@ function setComputerAudio() { # $2 first headphone volume # $3 second headphone volume function setInstruments() { - setMonoOne $1 $2 $3 - setMonoTwo $1 $2 $3 - setMonoThree $1 $2 $3 - setStereoOne $1 $2 $3 - setStereoTwo $1 $2 $3 + setMonoOne $1 $2 $3 + setMonoTwo $1 $2 $3 + setMonoThree $1 $2 $3 + setStereoOne $1 $2 $3 + setStereoTwo $1 $2 $3 + setStereoThree $1 $2 $3 + setStereoFour $1 $2 $3 + setStereoFive $1 $2 $3 + setStereoSix $1 $2 $3 } function DAWMode() { diff --git a/scripts/audio/audio-lib.sh b/scripts/audio/audio-lib.sh index acdbee5..eb915ae 100644 --- a/scripts/audio/audio-lib.sh +++ b/scripts/audio/audio-lib.sh @@ -46,7 +46,7 @@ function printControls() { # $2 matrix number # $3 mix channel function setMix() { - amixer -c $1 set "Matrix $(formatMatrixNum $2) Mix $3" $4 + amixer -c $1 set "Mix $3 Input $(formatMatrixNum $2)" $4 }