Skip to content

Commit fee78f9

Browse files
committed
add bend direction on tab
1 parent 9e5d4cf commit fee78f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ui/canvas_measure.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,14 @@ fn inlined_note_effect_annotation(note_effect: &NoteEffect) -> String {
753753
SlideType::OutUpWards => annotation.push(std::char::from_u32(0x27CB).unwrap()), // https://unicodeplus.com/U+27CB
754754
}
755755
}
756-
if let Some(_bend) = &note_effect.bend {
756+
if let Some(bend) = &note_effect.bend {
757+
let direction_up = bend.direction() >= 0;
757758
// TODO display bend properly
758-
annotation.push(std::char::from_u32(0x2191).unwrap()); // https://unicodeplus.com/U+2191
759+
if direction_up {
760+
annotation.push(std::char::from_u32(0x2191).unwrap()); // https://unicodeplus.com/U+2191
761+
} else {
762+
annotation.push(std::char::from_u32(0x2193).unwrap()); // https://unicodeplus.com/U+2193
763+
}
759764
}
760765
annotation
761766
}

0 commit comments

Comments
 (0)