Open justinjools22 opened 4 months ago
Nice! I remember that during the last rethinking of Mozzi's architecture, it was planned to make things easy for having more than two channels. It might even not be very hard to have an arbitrary number of them. A bit of time might be needed to make that cleanly but as it seems to be of use! Another thing to add to the to-do!
Yes, I thought about some way to pass an argument for number of channels required but not needed for my use. For some context I am using this for a 4 channel mono digital oscillator project. I wanted to praise the ease of use and readability of Mozzi. Even with my limited coding skills I was able to adapt this. Thanks.
Hi this isn't an issue, rather sharing code I've adapted.
I have two DACs and wanted to send 4 separate mono waveforms. The constructor only accepts two arguments L/R so I added an additional 2. This would useful to add to the library for anyone else wanting to do this, could be called StereoOutput2.
Example usage:
// StereoOutput constructor in AudioOutput.h // 2xstereo/4xmono output: 4 arguments: l, r, l2, r2