InvalidSyntax
New member
Hello, I'd like to preface this by saying that I've read through the Wiki and the Audio Library documentation beforehand. Despite completing some basic projects, I remain a beginner when it comes to Arduino and audio electronics.
My current project is fairly straightforward. Using a USB-connection, I'd like to be able to play audio from my PC directly into my Teensy 3.2 and output it using the built-in DAC. This much I have done, and the Teensy generated the proper signal when viewed on an oscilloscope. However, my goal is to mix the audio with a number of sine waves (for the purpose of distortion) before it is converted to an Analog waveform.
I'm aware of the "Mixer" feature of the Audio Library, but it is limited to only 4 inputs per mixing "block" and I'll likely need more sine waves than that. Adding more mixing blocks seems tedious. The alternative is to somehow generate those sine waves in code (and perhaps make the mixing happen digitally in the Audio Buffer before outputting with the DAC).
Am I approaching this problem correctly? Which of these options seem more feasible, and for the latter option (hard-coding the sine wave generation and mixing), would it be possible to provide an outline of what this would entail? Code examples would be much appreciated.
Thank you for your time and consideration.
My current project is fairly straightforward. Using a USB-connection, I'd like to be able to play audio from my PC directly into my Teensy 3.2 and output it using the built-in DAC. This much I have done, and the Teensy generated the proper signal when viewed on an oscilloscope. However, my goal is to mix the audio with a number of sine waves (for the purpose of distortion) before it is converted to an Analog waveform.
I'm aware of the "Mixer" feature of the Audio Library, but it is limited to only 4 inputs per mixing "block" and I'll likely need more sine waves than that. Adding more mixing blocks seems tedious. The alternative is to somehow generate those sine waves in code (and perhaps make the mixing happen digitally in the Audio Buffer before outputting with the DAC).
Am I approaching this problem correctly? Which of these options seem more feasible, and for the latter option (hard-coding the sine wave generation and mixing), would it be possible to provide an outline of what this would entail? Code examples would be much appreciated.
Thank you for your time and consideration.