grame-cncm / faust

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

MIDI parameters present in teensy export that prevents it from compiling #325

Open rrs-stf opened 5 years ago

rrs-stf commented 5 years ago

Hey!

For some reason, when compiling on Arduino, it gives me an error, that usb_midi_class has not been declared, despite not exporting from the web editor code that would require a midi input (or any input at all). Even if I just export a Faust code that generates a square wave at a constant frequency and amplitude, it gives me the same error . I've attached the error messages received, plus the code that I tried to run, which was just to get an output through a speaker.

I would be grateful for any help regarding this! All the best! Rares

errorFaust.docx speakerTest.zip

sletz commented 5 years ago

MIDI support was recently added but it seems the faust2tensy script is not yet correct. Hoping @rmichon can have a look at some point.

sletz commented 5 years ago

You can possibly try the master-dev branch https://github.com/grame-cncm/faust/commit/960c5331d4ddf260b13fc34e4e5d40e71a7f328d that deactivate MIDI support until conditional compilation is fixed.

rmichon commented 5 years ago

Hey Rares,

As Stéphane pointed out, this feature started being added by an intern here at GRAME but his work is incomplete for now. None of us here currently has the time to finish this but we'll try to get back to it soon, unless you wanna make a contribution ;).

++

Romain

hpfmn commented 4 years ago

@rmichon do you know where I can find the code that was used in this paper I stuggle to find the standalone mode etc. I would like to help to get support for stuff like "f[io: A0]" and native midi support.

rmichon commented 4 years ago

@hpfmn we decided to deactivate this code because it was taking too much resources on the Teensy so it not supported anymore. If you want to control Faust parameters with analog inputs of the Teensy, you'll have to follow the steps indicated in this tutorial: https://faustdoc.grame.fr/tutorials/teensy/