pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.52k stars 235 forks source link

Why is DSP code expanded ? #173

Closed sletz closed 2 years ago

sletz commented 2 years ago

The code https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-faust-i2s/Noise.dsp and https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-generator-faust-i2s/volume.dsp is "expanded" ? Any reason not to keep the original "non expanded" Faust DSP code?

pschatzmann commented 2 years ago

I didn't have the time to test what's working and what not. Just notice that in the current implementation the input and output buffer are the same because I did not want to wast any memory. Though I plan to have an option to change this

sletz commented 2 years ago

But how what the expanded DSP code generated ? (by "expanded" I mean code with ID_325 kind of identifiers ?)

pschatzmann commented 2 years ago

I am not aware that I did anything special. I just used FaustLive and exported from there..

sletz commented 2 years ago

Then you could possibly just keep the original DSP source code?

pschatzmann commented 2 years ago

Well, in Arduino there is no mechanism to automatically generate the the CPP code from the DSP code.