grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.59k stars 325 forks source link

Faust/JUCE Setup #627

Open arturmic opened 3 years ago

arturmic commented 3 years ago

Hi, I am trying to integrate a faust .dsp file into JUCE for the first time. Iam following this tutorial: https://faustdoc.grame.fr/workshops/2020-04-10-faust-juce/

But I am having an error. I was able to export the dsp from the web IDE and saved in my JUCE project. The DSP code is in wrapped into the "faustMinimalInlined.h" Header file. I am at the point where I want to implement the prepareToPlay() method like it is done in the tutorial but the line "fDSP = new mydsp();" Gives me an identifier is missing error. I can not find out what is wrong there. Fat

sletz commented 3 years ago

Have you properly executed:faust -i -a faustMinimal.h FaustSynth.dsp -o FaustSynth.h

BTW, this kind of problem is better done on Faust Slack, here is an invite link: https://join.slack.com/t/faustaudio/shared_invite/zt-a624szlz-fL4v2DTR~ZGlI7wARryT7g