Skip to content

Commit

Permalink
[CLI] Fix custom keyboard ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Mar 28, 2024
1 parent c1990d7 commit ed44cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neothesia-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ fn file_midi_events(
_ => continue,
};

let range_start = keyboard.range().start() as usize;
if keyboard.range().contains(key) && e.channel != 9 {
let id = key as usize - 21;
let id = key as usize - range_start;
let key = &mut keyboard.key_states_mut()[id];

if is_on {
Expand Down

0 comments on commit ed44cbd

Please sign in to comment.