aboutsummaryrefslogtreecommitdiff
path: root/mkiv.py
diff options
context:
space:
mode:
authorGraham Northup <grissess@nexusg.org>2017-02-15 19:52:01 -0500
committerGraham Northup <grissess@nexusg.org>2017-02-21 23:43:58 -0500
commit19d054741ba632d4cc664b89e694d07fe0b568f1 (patch)
tree8618589106500c4ff1f6784482ac62ec9717edb6 /mkiv.py
parent75bc43e7da70bad381bec280d7b4f10d0baaeeef (diff)
Tools to make GRUB_INIT_TUNEs!
Diffstat (limited to 'mkiv.py')
-rw-r--r--mkiv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkiv.py b/mkiv.py
index 3ab4081..f363027 100644
--- a/mkiv.py
+++ b/mkiv.py
@@ -705,6 +705,9 @@ for fname in args:
ivev.set('time', str(mev.abstime))
ivev.set('data', repr(fw.encode_midi_event(mev.ev)))
+ ivargs = ET.SubElement(ivmeta, 'args')
+ ivargs.text = ' '.join('%r' % (i,) for i in sys.argv[1:])
+
print 'Done.'
txt = ET.tostring(iv, 'UTF-8')
open(os.path.splitext(os.path.basename(fname))[0]+'.iv', 'wb').write(txt)