Open ghoppla opened 4 days ago
In this part of the daisy architecture (ex_faust.cpp) the corresponding gui source files are included.
#include "faust/gui/meta.h"
#include "faust/gui/UI.h"
#if defined PATCHSM
#include "faust/gui/DaisyPatchInitControlUI.h"
#else
#include "faust/gui/DaisyControlUI.h"
#endif
#include "faust/dsp/dsp.h"
ValueConverter.h is included in DaisyControlUI.h and DaisyPatchInitControlUI.h I don't understand why the ValueConverter.h gets included for DaisyPatchInitControlUI.h only.
Well DaisyPatchInitControlUI
was developed after DaisyControlUI
with an external contribution, and looking at the file, a lot of code is actually duplicated. So I guess the proper way would be to rework all of that, and put the new code of DaisyPatchInitControlUI
in DaisyControlUI
to finally keep a unique DaisyControlUI
file, and possibly use #if defined PATCHSM ....some code... #endif
inside it.
But this means a bit of work ((-;
hmmm... unfortunately I don't have this hardware to verify that stuff finally, since I've built my own hw interface for the raw daisy seed board. I could do it in blind mode without testing on the patch / pod only but thats not that good idea I think.
Despite the fact that the code is duplicated, from the preprocessor logic the the weird thing is that ValueConverter.h is not included for the -pod and -patch Option. Don't get it why...
. I could do it in blind mode without testing on the patch / pod only but thats not that good idea I think.
But you could at least test if the restructured code would compile right ?
. I could do it in blind mode without testing on the patch / pod only but thats not that good idea I think.
But you could at least test if the restructured code would compile right ?
lol... you owned me. Okay, I do my best, but it may need some days till I find the time. I hope someone can then test the code on hardware.
faust2daisy generated code does not compile for -pod or -patch option
When compiling code using
faust2daisy
with option -pod or -patch the code does not compile. Only -patchsm is working.The problem is that somehow ValueConverter.h is not included in the generated cpp file.
Steps for reproduction
Versions Used:
Daisy Toolchain Setup on Linux:
Create a folder, e.g.
Get arm-none-eabi:
Get libDaisy:
Create
environment.rc
file with the following content:Compile libDaisy:
Compilation:
gate = button("gate"); vel = hslider("gain", 0, 0, 1, .01); freq = hslider("freq", 440, 0, 20000, 0.01);
process = os.triangle(freq) vel : _en.adsr(.1,.1,.7,.2, gate) <: ,;
when running make within the generated folder
a lot of the compilation errors appear, since ValueConverter.h is not included: