Skip to content

Commit f357bdc

Browse files
committed
fix tapping display
1 parent 7f96fab commit f357bdc

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/parser/song_parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,9 +1056,9 @@ pub fn parse_beat_effects<'a>(
10561056
let (inner, effect) = parse_byte(i)?;
10571057
i = inner;
10581058
note_effect.slap = match effect {
1059-
1 => SlapEffect::Slapping,
1060-
2 => SlapEffect::Popping,
1061-
3 => SlapEffect::Tapping,
1059+
1 => SlapEffect::Tapping,
1060+
2 => SlapEffect::Slapping,
1061+
3 => SlapEffect::Popping,
10621062
_ => SlapEffect::None,
10631063
};
10641064
}

src/ui/canvas_measure.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::parser::song_parser::{
2-
Beat, HarmonicType, Note, NoteEffect, NoteType, SlideType, Song, TimeSignature,
2+
Beat, HarmonicType, Note, NoteEffect, NoteType, SlapEffect, SlideType, Song, TimeSignature,
33
};
44
use crate::ui::application::Message;
55
use iced::advanced::mouse;
@@ -734,6 +734,11 @@ fn above_note_effect_annotation(note_effect: &NoteEffect) -> Vec<String> {
734734
if note_effect.tremolo_bar.is_some() {
735735
annotations.push("T.B".to_string());
736736
}
737+
match note_effect.slap {
738+
SlapEffect::Tapping => annotations.push("T".to_string()),
739+
SlapEffect::None => (),
740+
_ => (),
741+
}
737742
annotations
738743
}
739744

0 commit comments

Comments
 (0)