Closed mxa closed 6 years ago
We made some pretty significant modifications to the way the Faust libraries work about 2 years ago and it possible that this broke something in physicalmodeling.lib
. Do you have a link to this file so that I can quickly check its content?
@rmichon yes, it's here: https://github.com/eberdahl/SaM/blob/8b66ec5311434e7e88c66ec161ae16cd04eb684e/physicalmodeling.lib
Yes, try to replace:
import("music.lib");
import("effect.lib");
with:
import("all.lib");
music.lib
and effect.lib
were deprecated a while ago and should not work anymore with the latest version of Faust. all.lib
is a quick convenient to solve this type of issue. Let me know if that helped...
@rmichon I replaced those lines, updated to Faust version 2.5.21
when trying to make a binary From SaM I still get this error:
Output: make: Entering directory '/home/max/Code/SaM-Designer/SaM'
install -d puredatadir
make DEST='puredatadir/' ARCH='puredata.cpp' LIB='-I""/faust/' CXXFLAGS='-O3 -fpermissive -msse -msse2 -msse3 -ffast-math ' -f Makefile.pdcompile
make[1]: Entering directory '/home/max/Code/SaM-Designer/SaM'
faust -a puredata.cpp -double pluck_a_resonator.dsp -o puredatadir/pluck_a_resonator.cpp
physicalmodeling.lib : 66 : ERROR : syntax error, unexpected ENABLE, expecting RBRAQ or IDENT
Makefile.pdcompile:71: recipe for target 'puredatadir/pluck_a_resonator.cpp' failed
make[1]: *** [puredatadir/pluck_a_resonator.cpp] Error 1
make[1]: Leaving directory '/home/max/Code/SaM-Designer/SaM'
Makefile:65: recipe for target 'puredata' failed
make: *** [puredata] Error 2
make: Leaving directory '/home/max/Code/SaM-Designer/SaM'
I see... enable
is now a primitive of the language (which has nothing to do with the enable
declared in physicalmodeling.lib
). Ha I see you just figured this out haha!
For unknown reasons with an updated version of Faust you will get the error
physicalmodeling.lib : 67 : ERROR : syntax error, unexpected ENABLE, expecting RBRAQ or IDENT
when exporting from Synth-A-Modeler to a puredata binary. Maybe @agraef or @eberdahl know more about this.