Daniel@0: #!/usr/bin/env bash Daniel@0: # midi2snd MIDIFile RCFile SampleRate Format SFDIR Daniel@0: # Convert midi file to Raw audio output stream on stdout, with info on stderr Daniel@0: fluidsynth -f <(m4 -DSFDIR="$5" < $2) -a file -p fluidsynth -o synth.sample-rate=$3 -o audio.file.format=$4 -o audio.file.type=raw -il -F >(cat) $1 1>&2