comparison musiccutter.py @ 14:43b5d8d62df6

Just stroke the note names to make things faster.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 13 Apr 2016 08:43:54 +0930
parents 5f4c21bb5140
children 20337b22977d
comparison
equal deleted inserted replaced
13:5f4c21bb5140 14:43b5d8d62df6
109 for slot in sorted(self.slot2note.keys()): 109 for slot in sorted(self.slot2note.keys()):
110 ofs = (self.offset + slot * self.pitch) * mm 110 ofs = (self.offset + slot * self.pitch) * mm
111 pdf.line(0, ofs, self.pagewidth * mm, ofs) 111 pdf.line(0, ofs, self.pagewidth * mm, ofs)
112 # Note name 112 # Note name
113 tobj = pdf.beginText() 113 tobj = pdf.beginText()
114 tobj.setTextRenderMode(1)
114 tobj.setTextOrigin(0 * mm, ofs + 1 * mm) 115 tobj.setTextOrigin(0 * mm, ofs + 1 * mm)
115 tobj.setFont(self.fontname, self.fontsize) 116 tobj.setFont(self.fontname, self.fontsize)
116 tobj.setFillColor(ENGRAVE_COLOUR) 117 tobj.setFillColor(ENGRAVE_COLOUR)
117 tobj.setStrokeColor(ENGRAVE_COLOUR) 118 tobj.setStrokeColor(ENGRAVE_COLOUR)
118 tobj.textLine('%s' % (self.slot2note[slot])) 119 tobj.textLine('%s' % (self.slot2note[slot]))