Makecode Arcade can only play 512 songs

Nothing in this project except play a very short song, then score up by 1. Once it tries to play the 513th song, it hard-freezes. I’ve been using songs in my other project, and after 512 songs there the same thing is happening. Any way to fix this?

3 Likes

can you be a little more specific about what you’re trying to do? maybe share a link to the actual project you’re having trouble with instead of this demo?

4 Likes

Interesting! 2^9!

3 Likes

@randomuser haha, i also thought that was relevant but i think it’s just a coincidence. my browser gets into the thousands before the tab crashes

5 Likes

same thats what mine does two

1 Like

I was using a song for pretty much every action you could take. Move left, Move right, rotate, place, clear line, etc but I swapped them all out for sine waves last night. I learned that my firefox crashes at 512, while my google crashes at 2048.

1 Like

@ZadikGooba yeah, I think you were probably hitting a browser limit on the number of web audio nodes that can be allocated and then disposed. Would you mind opening an issue for this? We could probably be a bit more efficient about reusing them.

2 Likes

Gladly, thank you for helping :+1: :bangbang:

1 Like