marcomusy / pianoplayer

Automatic fingering generator for piano scores
MIT License
723 stars 82 forks source link

I got trouble with this particular score #5

Closed mhoangvslev closed 6 years ago

mhoangvslev commented 6 years ago
Traceback (most recent call last):
  File "/usr/local/bin/pianoplayer", line 155, in <module>
    rh.generateFingering(nmeasures=Nmeasures)
  File "/usr/local/lib/python2.7/dist-packages/pianoplayer/hand.py", line 221, in generateFingering
    bestfpos = self.set_fingers_positions(out, ninenotes, i)
  File "/usr/local/lib/python2.7/dist-packages/pianoplayer/hand.py", line 83, in set_fingers_positions
    newfpos[j]= self.fpos[j] + ni.x - ifx
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Sample file: https://musescore.com/user/5506406/scores/2084736

marcomusy commented 6 years ago

in version 1.1.0 aI added a protection if() clause, but the score file seem corrupted in some way