Skip to content

Commit ec3412d

Browse files
committed
fixes #115, bugfix with guitar view chord in seek mode
1 parent 05b8642 commit ec3412d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/notation_bevy/src/guitar/guitar_view.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ impl GuitarView {
256256
let mut current_shape = None;
257257
for (entry, shape, playing) in query.iter() {
258258
if playing.value.is_current() {
259+
//println!("GuitarView::update_hand_shape6(): found changed playing shape: {}", shape);
259260
current_shape = Some((entry, shape));
260261
}
261262
}

crates/notation_midi/src/midi_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl MidiState {
408408
Some(x.props)
409409
}
410410
}) {
411-
self.setup_seek(pos.with_in_bar_pos(props.in_bar_pos));
411+
self.setup_seek(pos.with_in_bar_pos(props.in_bar_pos - Units::MIN_ACCURACY));
412412
return true;
413413
} else {
414414
self.setup_seek(BarPosition::new(pos.bar_units, pos.bar_ordinal, pos.bar_units - Units::MIN_ACCURACY));

0 commit comments

Comments
 (0)