Skip to content

Commit 665778c

Browse files
authored
Merge pull request #33 from duckythescientist/main
Fix timing of dotted notes
2 parents aab3fb0 + 8023453 commit 665778c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rtttl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _parse_note(note: str, duration: int = 2, octave: int = 6) -> Tuple[str, flo
9696
else:
9797
piano_note = note[0]
9898
if "." in note:
99-
note_duration *= 1.5
99+
note_duration /= 1.5
100100
if "#" in note:
101101
piano_note += "#"
102102
note_octave = str(octave)

0 commit comments

Comments
 (0)