changeset 40:5c47f9361d93

Use unpacked argument lists to make it easier to work out which parameters you're editing.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 24 May 2016 11:12:20 +0930
parents 86622ba474e4
children 21da8af1cdd2
files musiccutter.py
diffstat 1 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/musiccutter.py	Mon May 23 22:38:27 2016 +0930
+++ b/musiccutter.py	Tue May 24 11:12:20 2016 +0930
@@ -34,7 +34,26 @@
     # |   |   |   |
     # +---+---+---+ highest note
     #
-    m = Midi2PDF('notes', 120, 155, 5.5, 3.3, 6.0, 50, False, True, False, False, False, shift, 1, 30, 0.9, 'Helvetica', 12)
+    m = Midi2PDF(**{
+        'notefile' : 'notes',
+        'pagewidth' : 120,
+        'pageheight' : 155,
+        'pitch' : 5.5,
+        'slotsize' : 3.3,
+        'heel' : 6.0,
+        'leadin' : 50,
+        'timemarks' : False,
+        'trytranspose' : True,
+        'drawrect' : False,
+        'notenames' : False,
+        'notelines' : False,
+        'noteoffset' : shift,
+        'pagesperpdf' : 1,
+        'timescale' : 30,
+        'notescale' : 0.9,
+        'fontname' : 'Helvetica',
+        'fontsize' : 12,
+        })
     base, ext = os.path.splitext(filename)
     base = os.path.basename(base)
     m.processMidi(filename, base + '-%02d.pdf')