Play a softsynth (yoshimi) with low latency over a 2nd interface
Posted: Wed Dec 30, 2020 9:07 pm
You have to run jackd with a big buffer size causing big latencies because your DAW project is CPU hungry?
And then you want to record MIDI or audio but your synth plugin in the DAW suffers from the same big latency - making it unplayable?
If you have a 2nd audio interface then you can start a 2nd jackd with a low buffer size an start a synth plugin, e.g. Yoshimi as I described some time ago for Guitarix. Here is my sample script that first checks if one of my Scarlets is plugged in and then uses it for jackd:
Be sure to use ALSA MIDI else it gets complicated because you have to start an ALSA-MIDI bridge. But it's possible as well.
And then you want to record MIDI or audio but your synth plugin in the DAW suffers from the same big latency - making it unplayable?
If you have a 2nd audio interface then you can start a 2nd jackd with a low buffer size an start a synth plugin, e.g. Yoshimi as I described some time ago for Guitarix. Here is my sample script that first checks if one of my Scarlets is plugged in and then uses it for jackd:
Code: Select all
#!/bin/bash
FREQ=48000
BUFFERS=2
PERIODSG=64
PRIO=80
JACK_DEFAULT_SERVER=git
export JACK_DEFAULT_SERVER
for M in 2i2 Solo 2i4
do
F=`aplay -l | grep $M | cut -d : -f 1 | cut -d " " -f 2`
if [ -n "$F" ]
then
HW="$F"
fi
done
if [ -n "$HW" ]
then
jackd -n $JACK_DEFAULT_SERVER -R -P$PRIO -p256 -t2000 -dalsa \
-r$FREQ -p$PERIODSG -n$BUFFERS -Xseq -dhw:$HW \
>/tmp/jackd-${JACK_DEFAULT_SERVER}.log 2>&1 &
JACKPID=$!
jack_wait -w
sleep 0.5
yoshimi
kill -9 $JACKPID
fi