(Amiga MED module) format.
Right now they are in a very crude state. The ultimate goal is to have
-something that converts most of the data in them to
cSound format, where
+something that converts most of the data in them to ound format, where
they can be cleaned up (consistent panning per instrument, and so forth.)
+Currently, the `mmd0.py` script can dump most of the contents of an MMD0
+file in a nominally human-readable format, and can extract the samples used
+As I'm doing this primarily for my own MED tunes, I don't plan to support
+the features of MED that I never personally used, such as synthesized
for smpl_offset in self.smplarr_offsets:
+ """Turn the event data in the blocks in the song sequence
+ into a list of lists of events, one list of events per track.
+ for block in self.blockarr:
+ numtracks = block.numtracks
+ assert numtracks == block.numtracks, \
+ "blocks have differing numbers of tracks"
+ for block_no in self.song.playseq[:self.song.songlen]:
+ block = self.blockarr[block_no]
+ while track_no < numtracks:
+ s = str(track[track_no][line_no])
with open(sys.argv, 'r') as f:
for byte in m.smplarr.data:
# upsample to 16-bit for aplay's benefit