Skip to content

Commit 6d40f81

Browse files
committed
fix(midi): midi input nodes will stay high when midi device reports value of 127 for note off messages
1 parent 23100f5 commit 6d40f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/components/connections/protocols/midi/src/device_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ impl DeviceStateWriter {
3131
tracing::trace!("Inserting {control_type:?} => {value:?}");
3232
self.write.update(control_type, CopyValue::from(value));
3333
}
34-
MidiMessage::NoteOff(channel, control, value) => {
34+
MidiMessage::NoteOff(channel, control, _) => {
3535
let control_type = MidiControlType::Note(channel, control);
3636
let value = MidiValue {
37-
value,
37+
value: 0,
3838
timestamp: event.timestamp,
3939
};
4040
tracing::trace!("Inserting {control_type:?} => {value:?}");

0 commit comments

Comments
 (0)