ifnotself._parentTrack:#because it was None/not in a track
self._parentTrack=WeakSet()
self._parentTrack=WeakSet()
ifnewTrack:
self._parentTrack=weakref_ref(newTrack)
else:
@ -341,10 +341,7 @@ class Block(object):
returnresult
defisAppending(self):
ifself.localCursorIndex==len(self.data):#len counts from 1 and the cursorIndex from 0. So if they are the same we are one cursor position right of last item
returnTrue
else:
returnFalse
returnself.localCursorIndex==len(self.data)#len counts from 1 and the cursorIndex from 0. So if they are the same we are one cursor position right of last item
returnpitch.distanceInDiatonicSteps(pitch.ly2pitch["b'"],self.pitchindex)#offset from the middle line in treble clef h', which is 0. c'' is -1, a' is +1