Support for Faust #171
Replies: 9 comments 4 replies
-
Hi Phil, Taking a break from the touch sensor problem I have been trying out the Faust example streams-faust-i2c. Works just. Compiles without error and plays a nice soft white noise. So then I compiled the default .dsp in the online Faust IDE. and copied those files to the example folder. Then changed the #include "Noise.h" to #include "myFirstFaust.h". I didn't think it would be that easy and so Arduino compiler complained about the name. I tried replacing mydsp dsp; with myFirstFaust dsp; but still no luck. I suspect this is just a matter of getting the names right. Any advice? |
Beta Was this translation helpful? Give feedback.
-
Did you select
This should generate just one file. If you check the generated cpp file it should just have one class which is a subclass of dsp. |
Beta Was this translation helpful? Give feedback.
-
I just renamed the .cpp file. Including cpp files is discouraged. |
Beta Was this translation helpful? Give feedback.
-
OK, I'll change them to .h |
Beta Was this translation helpful? Give feedback.
-
I'm getting some of the Faust examples to compile and run. I re-compiled noise.dsp in FaustIDE and that works so I have at least one example of the complete end-to-end process proven out. I've been trying various other examples, some fail to compile in the FaustIDE, most work in FaustIDE but fail when added to your .ino and compiled in Arduino. One or two have compiled and downloaded but crash the ESP32. Unless you have any specific requests for me I'll just keep playing with different examples and make notes on the results for you. BTW, I've added the BLE MIDI code into your Faust example. How can I send note info to Faust's "sliders"? I tried a simple fHslider0=freq but, not surprisingly got a "'fHslider0' was not declared in this scope" error. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-generator-faust-i2s/streams-generator-faust-i2s.ino shows how to set parameter values. You will need to check in your generated code how the label is called... |
Beta Was this translation helpful? Give feedback.
-
streams-generator-fause-i2s compiles and generates the expected sine wave. But, if I'm understanding the purpose, faust.setLabelValue("0x00", 0.5); isn't changing the volume (or anything as far as I can tell). No audible difference with faust.setLabelValue("0x00", 0.1); |
Beta Was this translation helpful? Give feedback.
-
If you check the defintion in the source code: |
Beta Was this translation helpful? Give feedback.
-
Oh, I think the sequence is wrong: faust.setLabelValue("0x00", 0.5); should be called after begin() because begin() will reset the value to the initial value, which has been defined in addVerticalSlider() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have added some DRAFT support for Faust. Further information can be found in my blog.
Beta Was this translation helpful? Give feedback.
All reactions