ex_faust.cpp:4117:9: error: invalid use of template-name 'daisy::MidiHandler' without an argument list
4117 | daisy::MidiHandler fMidi;
| ^~~~~
ex_faust.cpp:4117:9: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17'
In file included from /home/georg/Programmierung/daisy/Projects/bug_minimal_example/libDaisy/src/daisy.h:23,
from /home/georg/Programmierung/daisy/Projects/bug_minimal_example/libDaisy/src/daisy_patch_sm.h:3,
from ex_faust.cpp:55:
/home/georg/Programmierung/daisy/Projects/bug_minimal_example/libDaisy/src/hid/midi.h:152:7: note: 'template<class Transport> class daisy::MidiHandler' declared here
152 | class MidiHandler
| ^~~~~~~~~~~
ex_faust.cpp: In member function 'virtual bool daisy_midi::startMidi()':
ex_faust.cpp:4131:13: error: 'fMidi' was not declared in this scope
4131 | fMidi.Init(daisy::MidiHandler::INPUT_MODE_UART1, daisy::MidiHandler::OUTPUT_MODE_NONE);
| ^~~~~
ex_faust.cpp:4131:31: error: 'template<class Transport> class daisy::MidiHandler' used without template arguments
4131 | fMidi.Init(daisy::MidiHandler::INPUT_MODE_UART1, daisy::MidiHandler::OUTPUT_MODE_NONE);
| ^~~~~~~~~~~
ex_faust.cpp:4131:69: error: 'template<class Transport> class daisy::MidiHandler' used without template arguments
4131 | fMidi.Init(daisy::MidiHandler::INPUT_MODE_UART1, daisy::MidiHandler::OUTPUT_MODE_NONE);
| ^~~~~~~~~~~
ex_faust.cpp: In member function 'void daisy_midi::processMidi()':
ex_faust.cpp:4140:13: error: 'fMidi' was not declared in this scope
4140 | fMidi.Listen();
| ^~~~~
daisy_midi class of daisy architecture is outdated
When compiling code using
faust2daisy
classdaisy_midi
generates g++ compiler errors.Steps Done
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
. ... the following errors are thrown: