Faust .dsp's that don't Compile #220
-
I've been trying a number of compiled .dsp made in the FaustIDE and #included in a generic .ino wrapper based on streams-generator-faust-i2c, just swapping out the noise.h for the new compiled .dsp. Here's a list of the Faust examples that I've tried and the errors they create. It looks to me like most of them have something missing for dealing with MetaGlue and UIGlue, whatever that is.
Hope this helps. I can post complete compiler error logs if required. |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 20 replies
-
You are generating pure C code here, is that expected? Why to C++ ? |
Beta Was this translation helpful? Give feedback.
-
When you export make sure that you select I suggest to rename the generated .cpp file into .h and import it into the Arduino Sketch. Please note that e.g. the flute will not fit into the ESP32 RAM and you will need to use PSRAM instead. So far I tried to avoid to use this because I wanted my sketches to run on any ESP32... |
Beta Was this translation helpful? Give feedback.
-
If you check in my code you get this message when if (p_dsp->getNumInputs()>0) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hmm, I upgraded, but it still does not work:
Additional Compilation Step - Faust Compiler Option is -mem As a result I get a cpp file with the follwing info in the header And no memory manager... |
Beta Was this translation helpful? Give feedback.
-
They are two zones in the UI:
The Otherwise you can possibly try the binary release here: https://github.com/grame-cncm/faust/releases |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Wow, glad you two worked that out and not me!
So, I'm assuming the Faust memory manager is now working via Faust Live,
but it probably isn't added to the Web IDE yet?
And Phil, I guess this still needs changes your libs to take advantage of
it?
…On Sat, May 28, 2022, 6:07 AM Phil Schatzmann ***@***.***> wrote:
faust -mem fluteStk.dsp -o flute.h
looks much better!
—
Reply to this email directly, view it on GitHub
<#220 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIPQITCERBO47QTYB52AHTVMID6JANCNFSM5W7KAGLQ>
.
You are receiving this because you authored the thread.Message ID:
<pschatzmann/arduino-audio-tools/repo-discussions/220/comments/2840463@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I just committed my changes. Please note that the API has slightly changed: |
Beta Was this translation helpful? Give feedback.
-
Do they use the memory manager? |
Beta Was this translation helpful? Give feedback.
-
The example with SPMEM is using the memory manager. |
Beta Was this translation helpful? Give feedback.
-
With dsp_memory_manager would is make sense to keep small zones and high I/O in ram and only allocate bigger ones in PSRAM? |
Beta Was this translation helpful? Give feedback.
-
That would have been my understanding. In my latest commit am using the following logic: |
Beta Was this translation helpful? Give feedback.
-
Phil, Stephane, will this work with .dsp created in the faustide, or is this limited to options -mem compiled in faust live? |
Beta Was this translation helpful? Give feedback.
-
I was not able to generate this in FaustLive and only managed to do it via the command line: The command is documented in the comment of the sketch |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann and @sletz Faust's latest memory manager and Phil's new support, along with the noise.h and fluteMidi.h, that Phil managed to compile, work perfectly. Stephane, do you think the problems Phil had with making the memory manager work in FaustLive can be easily fixed? And what are the chances of this option be added to the FaustIDE (which is the only way I'm smart enough to compile .dsp). |
Beta Was this translation helpful? Give feedback.
-
@jonrichings you should try, again working here:
|
Beta Was this translation helpful? Give feedback.
-
I suggest to use the command line compiler: see https://github.com/pschatzmann/arduino-audio-tools/wiki/Faust |
Beta Was this translation helpful? Give feedback.
-
Are you sure that this is not just a warning and that you can set the path after the installation? |
Beta Was this translation helpful? Give feedback.
-
You can try to update the path in the Control Panel |
Beta Was this translation helpful? Give feedback.
-
I am considering redesigning my hardware to use a esp32-pico-mini, but it only has 2MB of PSRAM. Your changes to use PSRAM have opened a big door to Faust but I am unsure as to how much PSRAM I really need. Is there a simple way to read or measure the amount that any given Faust + Arduino app will need? |
Beta Was this translation helpful? Give feedback.
I suggest to use the command line compiler: see https://github.com/pschatzmann/arduino-audio-tools/wiki/Faust