"""Turn the event data in the blocks in the song sequence
- TODO: handle MISC/0 commands ("end block now")
for block in self.blockarr:
numtracks = block.numtracks
assert numtracks == block.numtracks, \
"blocks have differing numbers of tracks"
+ assert numlines == block.lines, \
+ "blocks have differing numbers of lines"
for block_no in self.song.playseq[:self.song.songlen]:
block = self.blockarr[block_no]
+ while line_no < numlines:
+ while track_no < numtracks:
+ e = block.track[track_no][line_no]
+ if e.command == 15 and e.databyte == 0:
b.lines = len(b.track)