Closed poetaster closed 7 months ago
I suggest that you comment out #define FIX_SYNC_SYNCHRONIZE in the AudioConfig.h It seems that the current RP2040 Arduino version does not need this any more
ps. your logic in the loop will not work this way. You need to call playNoteStk() e.g. time driven or by some events because it takes many copy calls to output any sound
Ah, that sync function did the trick. I'm just running your examples but to the VS1053 stream. Just tried the all instruments thing which loops. Sounds, well, very interesting. But not like the STK I know (I've been using it among other things for 25+ years).
I'll take a crack at it with I2S when I'm back from a conference. Thanks!
Please note, I don't wish to annoy you, I'm just trying your public code. I maintain many packages myself (10s of thousands of daily users and complaints) so I'm aware of how annoying users can be. But I've also been writing audio processing code since the 1980s, so I'm a bit critical when something 'new' shows up.
No worries: I was not really working with any RP2040 and did not do any extensive testing. The STK is using floating point operations. Unfortunately this is one of the weak spots of the RP2040! Not sure if this is the source of your issues...
Unfortunately this is one of the weak spots of the RP2040! Not sure if this is the source of your issues...
Ah, that could well be the issue. Thanks!
The only major change that I have done is that I defined StkFloat as float because double was definitely too slow for all micro controllers. You could try to reduce the sample rate...
I'm not sure if I'm doing this incorrecty, but after finally getting PWM with the VS1053Driver working I wanted to finally try the audio-tools arduino-stk library. I used an audiokit example as a basis on the RP2040 with a VS1053b. I've tried three more or less simple variation but all throw:
The sketch uses the streams-stk_generator-audiokit as the jumping off point: