What's up with the Song Editor?

Intro

Hello, I’m @frandev, and, recently (actually, not so recently, but, whatever…), I noticed that the Song Editor (or, maybe just Songs in general, but the engineering behind Songs is NOT at all my craft—take this with a grain of salt) can’t have two or more notes of the same instrument playing at different times, as per demonstrated:
weird thing
I’d like to know why this is the case. I have my theory, which is likely NOT correct.

My theory

I think the reason it’s like this is that instruments might be handled somewhat like channels on a sound chip. On a sound chip, there cannot be polyphony (that is to say, more than one note playing) in one channel. This is a slightly different concept from the phenomena I’ve observed in the Music Editor, for in the Music Editor, one instrument can play, say, a chord. Just not play multiple notes simultaneously with different timing (not that easy to understand when I put it into words like that, but, basically—all notes that play in simultaneity must begin and end at the same time).

I would like someone with more knowledge on the subject of Music and Songs in MakeCode Arcade to resolve this doubt of mine.

Cheers
@frandev

1 Like

You can have more than one note, they just have to be the same length and start at the same time. This is because notes are stored in groups like [start time, notes, end time] which is probably a space saving strategy.

1 Like