File: faust2owl

package info (click to toggle)
faust 2.79.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 397,496 kB
  • sloc: cpp: 278,433; ansic: 116,164; javascript: 18,529; vhdl: 14,052; sh: 13,884; java: 5,900; objc: 3,852; python: 3,222; makefile: 2,655; cs: 1,672; lisp: 1,146; ruby: 954; yacc: 586; xml: 471; lex: 247; awk: 110; tcl: 26
file content (36 lines) | stat: -rwxr-xr-x 1,131 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

. faustpath

FILENAME=$1
CLASSNAME=`basename $FILENAME .dsp`
PATCHNAME=$CLASSNAME"Patch"
PATCHFILE=$PATCHNAME".hpp"
TEMPFILE=`mktemp temp.owl.XXXX`
ARCHFILE=$FAUSTARCH/owl.cpp

#echo $FILENAME $CLASSNAME $PATCHNAME $PATCHFILE

faust -i -inpl -mem -a $ARCHFILE -cn $CLASSNAME $FILENAME -o $TEMPFILE || (rm $TEMPFILE && exit 1)
cat $TEMPFILE | sed -e "s/FaustPatch/$PATCHNAME/g" > $PATCHFILE
rm $TEMPFILE

#(faust -i -inpl -a owl.cpp -cn $CLASSNAME $FILENAME | sed -e "s/FaustPatch/$PATCHNAME/g" > $PATCHFILE) || exit
echo ""
echo "           Instructions to add $PATCHFILE to your owl pedal"
echo ""
echo ""
echo "Copy file [[ $PATCHFILE ]] to OwlWare/Libraries/OwlPatches directory"
echo ""
echo "Add line [[ #include \"$PATCHFILE\" ]] to OwlWare/Libraries/OwlPatches/includes.h file"
echo ""
echo "Add line [[ REGISTER_PATCH($PATCHNAME, \"$PATCHNAME\", 2, 2); ]] to OwlWare/Libraries/OwlPatches/patches.cpp file"
echo ""
echo "Rebuild the firmware using the command make in OwlWare directory"
echo ""
echo "Upload the resulting firmware OwlWare/build/OwlWare.bin to the pedal using the OwlNest software."
echo ""