comparison musiccutter.py @ 32:f053dd6e9e68

Add l33t ASCII diagram to show how folds should be
author Daniel O'Connor <darius@dons.net.au>
date Tue, 03 May 2016 19:30:36 +0930
parents f46cc9401e79
children 1d5dcaa3b07d
comparison
equal deleted inserted replaced
30:f46cc9401e79 32:f053dd6e9e68
17 if filename == None: 17 if filename == None:
18 filename = 'test.midi' 18 filename = 'test.midi'
19 # Card layout from http://www.orgues-de-barbarie.com/wp-content/uploads/2014/09/format-cartons.pdf 19 # Card layout from http://www.orgues-de-barbarie.com/wp-content/uploads/2014/09/format-cartons.pdf
20 # Notes are read from right to left 20 # Notes are read from right to left
21 # Highest note is at the bottom (closest to the crank) 21 # Highest note is at the bottom (closest to the crank)
22 # fold fold
23 # in out
24 # V ^
25 # +---+---+---+ lowest note
26 # | | | |
27 # +---+---+---+ highest note
28 #
22 m = Midi2PDF('notes', 120, 155, 5.5, 3.3, 6.0, 50, False, False, False, False, False, 0, 30, 0.9, 'Helvetica', 12) 29 m = Midi2PDF('notes', 120, 155, 5.5, 3.3, 6.0, 50, False, False, False, False, False, 0, 30, 0.9, 'Helvetica', 12)
23 base, ext = os.path.splitext(filename) 30 base, ext = os.path.splitext(filename)
24 base = os.path.basename(base) 31 base = os.path.basename(base)
25 m.processMidi(filename, base + '-%02d.pdf') 32 m.processMidi(filename, base + '-%02d.pdf')
26 33