Skip to content

Commit

Permalink
release to divisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre D'Hooge committed Mar 18, 2024
1 parent c11ce14 commit d93af6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion music21/musicxml/m21ToXml.py
Original file line number Diff line number Diff line change
Expand Up @@ -5518,7 +5518,9 @@ def setBend(mxh: Element, bend: articulations.FretBend) -> None:
# Specifies where the release starts in terms of
# divisions relative to the current note.
releaseSubElement = SubElement(mxh, 'release')
releaseSubElement.set('offset', str(bend.release))
quarterLengthValue = bend.release
divisionsValue = defaults.divisionsPerQuarter * quarterLengthValue
releaseSubElement.set('offset', str(divisionsValue))
if bend.withBar is not None:
withBarSubElement = SubElement(mxh, 'with-bar')
withBarSubElement.text = str(bend.withBar)
Expand Down

0 comments on commit d93af6d

Please sign in to comment.