home.social

#amixer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #amixer, aggregated by home.social.

  1. #No, I love linux audio

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

    #adjust 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
    #amixer -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
    #amixer -c Ultra set "AIn$i - Out$j" 100% > /dev/null
    done
    done

    for i in $(seq 4); do
    amixer -c Ultra set "Effect Return $i" 0% > /dev/null
    done

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

  2. CW: Jack audio

    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

    #adjust 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
    #amixer -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
    #amixer -c Ultra set "AIn$i - Out$j" 100% > /dev/null
    done
    done

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

    #start jack
    pulseaudio -k
    jackd -d alsa -d hw:Ultra -r 48000 -p 2048 &
    else
    #start 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