Browse Source

Fix top note of piano chord not being rendered

if it's G#
master
Ivan Holmes 4 years ago
parent
commit
db2d30f738
  1. 2
      _version.py
  2. 4
      chordsheet/render.py
  3. 8
      version.rc

2
_version.py

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
appName = "Chordsheet" appName = "Chordsheet"
version = '0.4.4'
version = '0.4.5'

4
chordsheet/render.py

@ -262,10 +262,10 @@ class PianoChart(Flowable):
lastIndex = self.keyList.index(lastNote) lastIndex = self.keyList.index(lastNote)
curIndex = self.keyList.index(note) curIndex = self.keyList.index(note)
if curIndex > lastIndex:
if curIndex > lastIndex and curIndex != 11:
chartKeyList.extend( chartKeyList.extend(
self.keyList[lastIndex+1:((curIndex+1) % len(self.keyList))]) self.keyList[lastIndex+1:((curIndex+1) % len(self.keyList))])
elif curIndex < lastIndex:
elif curIndex < lastIndex or curIndex == 11:
chartKeyList.extend(self.keyList[lastIndex+1:]) chartKeyList.extend(self.keyList[lastIndex+1:])
chartKeyList.extend( chartKeyList.extend(
self.keyList[0:((curIndex+1) % len(self.keyList))]) self.keyList[0:((curIndex+1) % len(self.keyList))])

8
version.rc

@ -6,8 +6,8 @@ VSVersionInfo(
ffi=FixedFileInfo( ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0. # Set not needed items to zero 0.
filevers=(0, 4, 4, 0),
prodvers=(0, 4, 4, 0),
filevers=(0, 4, 5, 0),
prodvers=(0, 4, 5, 0),
# Contains a bitmask that specifies the valid bits 'flags'r # Contains a bitmask that specifies the valid bits 'flags'r
mask=0x3f, mask=0x3f,
# Contains a bitmask that specifies the Boolean attributes of the file. # Contains a bitmask that specifies the Boolean attributes of the file.
@ -31,12 +31,12 @@ StringFileInfo(
u'040904B0', u'040904B0',
[StringStruct(u'CompanyName', u'Ivan Holmes'), [StringStruct(u'CompanyName', u'Ivan Holmes'),
StringStruct(u'FileDescription', u'Chordsheet'), StringStruct(u'FileDescription', u'Chordsheet'),
StringStruct(u'FileVersion', u'0.4.4'),
StringStruct(u'FileVersion', u'0.4.5'),
StringStruct(u'InternalName', u'Chordsheet'), StringStruct(u'InternalName', u'Chordsheet'),
StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'), StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'),
StringStruct(u'OriginalFilename', u'chordsheet.exe'), StringStruct(u'OriginalFilename', u'chordsheet.exe'),
StringStruct(u'ProductName', u'Chordsheet'), StringStruct(u'ProductName', u'Chordsheet'),
StringStruct(u'ProductVersion', u'0.4.4')])
StringStruct(u'ProductVersion', u'0.4.5')])
]), ]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
] ]
Loading…
Cancel
Save