Skip to content

Commit

Permalink
Update lib/src/note/positioned_note.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Mañosa <albertmasa2@gmail.com>
  • Loading branch information
plammens and albertms10 committed May 14, 2023
1 parent b217c64 commit ee996d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/note/positioned_note.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ final class PositionedNote implements MusicItem, Transposable<PositionedNote> {
octaveFromSemitones(
semitones +
interval.semitones -
// We don't want to take the accidental into account when
// calculating the octave height, as it depends on the note name.
// This correctly handles cases with the same number of accidentals
// but different octaves (e.g., C♭4 but B3).
// We don't want to take the accidental into account when
// calculating the octave height, as it depends on the note name.
// This correctly handles cases with the same number of accidentals
// but different octaves (e.g., C♭4 but B3).
transposedNote.accidental.semitones,
),
);
Expand Down

0 comments on commit ee996d0

Please sign in to comment.