Skip to content

Commit

Permalink
Update AudioGeneratorRTTTL.cpp for dotted length (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
foreshadow authored Apr 26, 2024
1 parent 492a5be commit 51a584c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AudioGeneratorRTTTL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ bool AudioGeneratorRTTTL::GetNextNote()
ptr++;
note++;
}
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
if ((ptr < len) && (buff[ptr] == '.')) {
ptr++;
dur += dur / 2;
}
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
// Eat any trailing whitespace and comma
SkipWhitespace();
if ((ptr < len) && (buff[ptr]==',')) {
Expand Down

0 comments on commit 51a584c

Please sign in to comment.