abc2midi options inserted *after* the input filename and refnum in abcplay.py.
authorW. Trevor King <wking@drexel.edu>
Fri, 30 Dec 2011 20:20:48 +0000 (15:20 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 30 Dec 2011 20:20:48 +0000 (15:20 -0500)
posts/abcplay/abcplay.py

index b069e8b5a19bd6bc1989db2e7e8f70a50ac4b149..77fb3a23deb9c4af814970362c87e7b41f606736 100755 (executable)
@@ -134,7 +134,8 @@ class ABCPlayer (MIDIPlayer):
 
     def _convert_to_midi(self, filename, refnum):
         self._p = Popen(
-            self._to_midi + [filename, str(refnum), '-o', self._tempfile])
+            self._to_midi[:1] + [filename, str(refnum)] +
+            self._to_midi[1:] + ['-o', self._tempfile])
         self._p.wait()
         self._p = None