audio on linux
Sección: Informática Musical
Creado: 17-11-24
# Start JACK
# As of Ubuntu 12.10, a period of 128 is needed for good fluidsynth
# timing. (jackd 1.9.9, fluidsynth 1.1.5)
# If you aren't running pulseaudio, you can remove the pasuspender line.
#pasuspender -- \
jackd -d alsa --device hw:0,3 &>/tmp/jackd.out &
#jackd -d alsa --device hw:0,3 --rate 44100 --period 128 \
&>/tmp/jackd.out &
# Start fluidsynth
fluidsynth --server --no-shell --audio-driver=jack \
--connect-jack-outputs --reverb=0 --chorus=0 --gain=0.8 \
/usr/share/sounds/sf2/FluidR3_GM.sf2 \
&>/tmp/fluidsynth.out &
sleep 1
if pgrep jackd && pgrep fluidsynth
then
echo Audio servers running.
else
echo There was a problem starting the audio servers.
fi
killall fluidsynth
killall jackd
echo Audio servers stopped.