Skip to content

Instantly share code, notes, and snippets.

@bkotov
bkotov / sng2midi.py
Last active July 9, 2022 22:55
This script allows to convert data stored in SNG files into MID files. It supposed to be executed from Synalaze It hex-editor and requires SNG grammar to be loaded first.
import midi
import time;
#---Class Song---
class Song:
def __init__(self):
print "Song started"
self.track = ''
self.pattern = midi.Pattern()