git.s-ol.nu isomorphic-kb-explorer / f64d06d
fix MIDI issue s-ol 3 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
289289 switch (message.cmd) {
290290 case NOTE_ON:
291291 if (settings.offset === null) {
292 setSettings((s) => ({ ...s, offset: note }));
292 setSettings((s) => ({ ...s, offset: message.note }));
293293 }
294294
295295 setState((s) => ({ ...s, [message.note]: true }));