dotfiles/bin/vmpk-pa

23 lines
464 B
Plaintext
Raw Permalink Normal View History

2020-10-27 21:06:46 +01:00
#!/bin/bash
fluidsynth --server \
--no-shell \
--audio-driver=pulseaudio \
--gain=1.0 \
--reverb=0.42 \
--chorus=0.42 \
/usr/share/sounds/sf2/FluidR3_GM.sf2 &>/tmp/fluidsynth.out &
sleep 2
vmpk &
sleep 2
vmpkport=$(aconnect -i |grep "client.*VMPK Output" | cut -d ' ' -f 2)0
synthport=$(aconnect -i |grep "FLUID Synth" | cut -d ' ' -f 2)0
echo "vmpk on ${vmpkport} & synth on ${synthport}"