Hi everyone,

First let me say kudos to the Bela team for a wonderful product! I'm been enjoying my bela-mini for a couple of months now, primarily using belacsound, csound being my DSP language of choice.

I tried using the online faust editor to get some C++ code compiled last night. The source was from their own set of Bela examples, and I chose the Bela-MIDI-8 target: https://github.com/grame-cncm/faust/blob/master-dev/examples/bela/simpleSynth_FX_Analog.dsp

When on the bela-mini I got a compile error related to a "non-member static call" or something like that...(I will post the exact error later, as I am at work and not in front of my bela setup). Anyway, it wouldn't compile. This means the target code generator of Faust is broken, or it's targeting a different compiler or C++ standard, perhaps.

This brings up the general question: does anyone know definitively the quickest, easiest path at the moment for using Faust on Bela?

Regards,

AKJ

https://untwelve.org

Yes, please paste the exact error message. Thanks.

Hi sletz, here is the error....render.cpp is here: https://www.dropbox.com/s/pgkme538xe8zriy/render.cpp?dl=0 (I originally tried attaching, but the upload to the forum proved too slow)

root@bela:~/Bela/scripts# ./run_project.sh faust_synth
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Checking the board is up and running at root@192.168.7.2...Warning: Permanently added '192.168.7.2' (ECDSA) to the list of known hosts.
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
done
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Running faust_synth...
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Building render.cpp...
/root/Bela/projects/faust_synth/render.cpp:5183:21: error: call to non-static member function without an object argument
handleKeyOff(time, channel, message.getDataByte(0), message.getDataByte(1));
^~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5186:21: error: call to non-static member function without an object argument
handleKeyOn(time, channel, message.getDataByte(0), message.getDataByte(1));
^~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5189:21: error: call to non-static member function without an object argument
handlePolyAfterTouch(time, channel, message.getDataByte(0), message.getDataByte(1));
^~~~~~~~~~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5192:21: error: call to non-static member function without an object argument
handleCtrlChange(time, channel, message.getDataByte(0), message.getDataByte(1));
^~~~~~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5195:21: error: call to non-static member function without an object argument
handleProgChange(time, channel, message.getDataByte(0));
^~~~~~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5198:21: error: call to non-static member function without an object argument
handleAfterTouch(time, channel, message.getDataByte(0));
^~~~~~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5201:21: error: call to non-static member function without an object argument
handlePitchWheel(time, channel, message.getDataByte(0), message.getDataByte(1));
^~~~~~~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5212:33: error: call to non-static member function without an object argument
handleClock(time);
^~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5215:33: error: call to non-static member function without an object argument
handleStart(time);
^~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5219:33: error: call to non-static member function without an object argument
handleStart(time);
^~~~~~~~~~~
/root/Bela/projects/faust_synth/render.cpp:5222:33: error: call to non-static member function without an object argument
handleStop(0);
^~~~~~~~~~

Thanks. Fix in progress.

Sletz, tnx...is the fix on the faust side, or the bela side?

    akjmicro but the instructions here still work, although probably without midi and osc, or whatever is broken on faust. The version connecting analog and digital i/o with and without the gui seem to work fine. The upcoming faust fix should fix the midi part

    Great...but alas, my main interest is getting MIDI to work: at the moment, I have no analog-in or digital-in hardware, nor time and interest to pursue it 😉

    6 days later