I am trying to apply reverb by curling up with an impulse response in SoX. The following shell script does exactly what I want:
#!/usr/bin/env bash
IR_DUR=`soxi -D $1`
sox --norm=-10 -c 1 $1 -r 44100 filter.dat
awk 'NR<3{next}{print $2}' filter.dat > filter.txt
sox "|sox $2 -p pad $IR_DUR 0" --norm $3 fir filter.txt
Question
How can I do this without temporary files (filter. *)? I know that the answer lies inside the pipes, but I cannot get it to work.
source
share