4 ms·
Processing Audio with the RP2040
- zwieback 5y agoAudio is pretty slow but is an M0 a good core for DSP? I would think something with floating point would be more suitable.
- svantana 5y agofloats are more convenient but 32 bit ints have enough headroom for most audio applications. In fact a lot of dedicated signal processors are fixed-point only.
- speed_spread 5y agoThere's something I don't get about the RP2040's design. I'd rather have a single "advanced" fast core (like Cortex-M4) than two lowly slow cores. Programming for two cores makes things way more complicated, and the RP2040's Cortex-M0s don't even have atomic int operations to help. Are the transistor count & die space savings really that important?
- dmitrygr 5y agoLicensing costs for M4 are much higher than for M0
- speed_spread 5y agoAh! That explains it, thanks. RISC-V FTW!
- valdiorn 5y agoThe lack of floating point support made it a no go for me. Compared to something like the Teensy4 (which, I know, is 4x the price) it's just not worth the hassle if porting everything to fixed point arithmetic. Btw the performance of emulated float operations on rp2040 Vs the teensy is a factor of ~100x
- jerrysievert 5y ago> Btw the performance of emulated float operations on rp2040 Vs the teensy is a factor of ~100x wow, I was going to ask whether a mult to an int before doing the DSP, then a div back to float would be faster than a softfpu, but I think that answers the question pretty well. but, if you're looking at a teensy4, it might also be worthwhile to look at a daisy seed: https://www.electro-smith.com/daisy/daisy https://www.electro-smith.com/daisy/daisy (they also sell specific hardware if you're looking to go eurorack with it)
- runnerup 5y agoIt's still plenty fast for most real-world applications. I did a lot of work with the Cortex M3, which similarly lacks floating point. With many compilers you can even still use float() directly and the compiler will convert the floating point operations to integer math, somewhat/mostly transparently. There were a few hiccups, but for the most part you didn't have to think about it.