Re:Why we won't be selling Genuino or Arduino any more
by PeanutNore on Thursday August 11, 2016 @02:23PM
(#12270528)
Thanks! The sound quality of it depends mostly on the sample rate it is able to achieve, which is somewhere around 9.6khz if all it's doing is reading a sample and then outputting it to the DAC. At 6bit 9.6khz a guitar sounds surprisingly clean through it, aliasing is only really noticable at the highest frets of the high strings. At lower bit depths and sample rates it gets really interesting.
Getting the best sound quality out of it also depends on finding the sweet spot on the input gain to get the best dynamic range from the DAC without clipping, although I designed the preamp to sound pleasant when overdriven, mostly using JFETs.
Now I'm using the Due and Teensy (Cortex M3 / M4) because of the hardware DAC and 32 bit processor. I haven't gotten filters working yet either, they are my next goal. IIR first, and then FIR if the Due can handle it. But I have gotten a cool resonant filter simulation by using a hard-sync as described here [0]. You get some neat variations by changing the waveshapes used and the windowing function. I might not even have subtractive filters in my final design, just because of how cool it sounds to approach it differently, but I still want to understand how to implement them.
Nothing on Github to share at the moment, unfortunately. I'm too embarassed by the state of the code, lol. But I will be checking out your project this weekend, so thanks for sharing!
[0] https://en.wikipedia.org/wiki/Phase_distortion_synthesis#Sim...