sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.05k stars 184 forks source link

Example sketch for stereo I2S DACs #249

Open poetaster opened 3 months ago

poetaster commented 3 months ago

Since it took a bit of effort, I thought I'd supply a concrete example sketch.

poetaster commented 3 months ago

Oh, dear. Sorry for all the noise. I thought I'd do a good deed and in the process pulled devel/Mozzi2 ... now I get fatal error: FixMath.h: No such file or directory Any tip how to revert ?

tomcombriat commented 3 months ago

Hi, This is normal since #236, Mozzi is now using another library for fixed point arithmetics: FixMath. So far it is a hard dependency. You just need to install it, either in the Arduino library manager, or via github.

tomcombriat commented 3 months ago

Thanks for the PR! Cool to know that other DACs are working! As per the example, maybe it would make more sense to add it as config example (in the spirit of what is in config/)?

Does this close #248 ?

poetaster commented 3 months ago

Hi, This is normal since #236, Mozzi is now using another library for fixed point arithmetics: FixMath. So far it is a hard dependency. You just need to install it, either in the Arduino library manager, or via github.

Ah, thanks for clarifying. !

poetaster commented 3 months ago

Thanks for the PR! Cool to know that other DACs are working! As per the example, maybe it would make more sense to add it as config example (in the spirit of what is in config/)?

Does this close #248 ?

Yes, sure thing. I had noted a bit of noise which I documented with an upload, but I'll try to investigate that with different hardware setups and let you know. I 'll go install that library :)

tomcombriat commented 1 month ago

(Sorry for the fuss, was a bit fast to delete the branch this was pointing to… Will try to test soon!)

poetaster commented 1 month ago

(Sorry for the fuss, was a bit fast to delete the branch this was pointing to… Will try to test soon!)

No problem. Managing git repos is a job in itself! Thanks for your work!