Рет қаралды 1,132
Here's a video with a script I wrote that visualizes some of how SMB2's music engine works.
The offset at the top left is the current music pointer; the information below that is Square 1, 2, Triangle, and Noise. DPCM isn't on here yet, because I kinda forgot about it and it's like 2 in the morning.
Each channel has its own offset after the main music pointer, and it looks like channels can choose to "loop" that segment. Square 1 seems to be the master control, choosing when to move onto the next segment.
Some of these overlap, but this script isn't sophisticated enough to show that yet.