Skip to content
2 changes: 1 addition & 1 deletion music21/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'''
from __future__ import annotations

__version__ = '11.0.0b15'
__version__ = '11.0.0b16'

def get_version_tuple(vv):
v = vv.split('.')
Expand Down
2 changes: 1 addition & 1 deletion music21/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<class 'music21.base.Music21Object'>

>>> music21.VERSION_STR
'11.0.0b15'
'11.0.0b16'

Alternatively, after doing a complete import, these classes are available
under the module "base":
Expand Down
24 changes: 7 additions & 17 deletions music21/noteworthy/binaryTranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,23 +1295,13 @@ def restChordMember(self):
self.data2.append(rest)

def dump(inner_self):
build = '|Chord'
notes = {}
for d in inner_self.data2:
if notes.get(d.durationStr) is None:
notes[d.durationStr] = []

notes[d.durationStr].append(d.alterationStr + str(d.pos) + d.tieInfo)

i = 0
for n in notes:
if i == len(notes) - 1:
build += '|Dur2:' + n + '|Pos2:' + ','.join(notes[n])
else:
build += '|Dur:' + n + '|Pos:' + ','.join(notes[n])
i += 1

return build
*chordNotes, chordRest = inner_self.data2
if not chordNotes:
return '|Rest|Dur:' + chordRest.durationStr
return ('|RestChord|Dur:' + chordRest.durationStr
+ '|Dur2:' + chordNotes[0].durationStr
+ '|Pos2:' + ','.join(d.alterationStr + str(d.pos) + d.tieInfo
for d in chordNotes))

self.dumpMethod = dump

Expand Down
Loading
Loading