AskUbuntu · @askubuntu
91 followers · 2165 posts · Server ubuntu.social
Geekland · @geekland
599 followers · 11918 posts · Server mastodon.social
Geekland · @geekland
606 followers · 11975 posts · Server mastodon.social
Charles 𝄢 H · @celesteh
286 followers · 1884 posts · Server post.lurk.org

When I'm doing fancy audio, I normally use a M-audio ultra. And I've just got a eurorack module that can output at audio or CV rate. It's got 8 analogue outs and some lightpipe connections.

My script to use those together looks like:

#!/bin/bash

# is the ultra attached
if aplay -l | grep -qi ultra
then
echo ultra

amplitude
i=0
j=0
for i in $(seq 8); do
for j in $(seq 8); do
if [ "$i" != "$j" ]; then
amixer -c Ultra set "DIn$i - Out$j" 0% > /dev/null
-c Ultra set "DIn$i - Out$j" 100% > /dev/null
else
amixer -c Ultra set "DIn$i - Out$j" 100% > /dev/null
fi
amixer -c Ultra set "AIn$i - Out$j" 0% > /dev/null
-c Ultra set "AIn$i - Out$j" 100% > /dev/null
done
done

i in $(seq 4); do
# amixer -c Ultra set "Effects return $i" 0% > /dev/null

jack
pulseaudio -k
jackd -d alsa -d hw:Ultra -r 48000 -p 2048 &
else
jack with default hardware
jackd -d alsa -d hw:PCH -r 48000 &
fi

sleep 2

# jack control
qjackctl &

# check for ES 8 module
if aplay -l | grep -qi ES8
then
echo ES8
sleep 5
pulseuadio -k
alsa_out -d hw:ES8 -j ES8 &
fi

#start #done #for #amixer #adjust

Last updated 4 years ago