I haven't run your program! Just quirky observations after some quick peeks:
I don't get what that for i loop block is for!
Its iterator i is never used inside for j sub-loop block statements!
And worst of all, why a background() is doing inside a loop block???
Since it clears the whole canvas using a specific color,
and that is only rendered after callback draw() is complete;
then, only the color set from last background() call will stay.
Moreover, any drawings which had happened before its lastest call won't show up at all!
Another intriguing doubt is that you're comparing millis() to arbitrary passed time values!?
I believe it binds your program to some specific mp3 file, I daresay!
That's all I was able to spot for now!
I don't get what that for i loop block is for!
Its iterator i is never used inside for j sub-loop block statements!
And worst of all, why a background() is doing inside a loop block???
Since it clears the whole canvas using a specific color,
and that is only rendered after callback draw() is complete;
then, only the color set from last background() call will stay.
Moreover, any drawings which had happened before its lastest call won't show up at all!
Another intriguing doubt is that you're comparing millis() to arbitrary passed time values!?
I believe it binds your program to some specific mp3 file, I daresay!
That's all I was able to spot for now!