Debian Codegraph @

tests/impulse-tests/deprecated/faust2impulse3bis

raw symbols SCIP
1 #!/bin/bash
2
3 #####################################################################
4 # #
5 # Compiles Faust programs to impulse tests #
6 # (c) Grame, 2017 #
7 # #
8 #####################################################################
9
10 for p in $@; do
11 if [ ${p:0:1} = "-" ]; then
12 OPTIONS="$OPTIONS $p"
13 elif [[ -f "$p" ]]; then
14 FILES="$FILES $p"
15 else
16 OPTIONS="$OPTIONS $p"
17 fi
18 done
19
20 #-------------------------------------------------------------------
21 # compile the *.dsp files
22
23 for f in $FILES; do
24
25 # compile the file and generate the impulse response
26 impulseinterp "$f" -inpl $OPTIONS
27
28 # compile Faust to interpreter file
29 faust $OPTIONS -lang interp "$f" -o "$f.fbc" || exit
30
31 # read the interpreter file to generate the impulse response
32 impulseinterp "$f.fbc"
33
34 # cleanup
35 rm "$f.fbc"
36
37 done
38