3 ms·
https://caniuse.com/?search=midi https://caniuse.com/?search=midi It depends on the browser support I think. Luckily I bypassed all that with midir. The MIDI e
by FinalDestiny 4y ago
https://caniuse.com/?search=midi https://caniuse.com/?search=midi
It depends on the browser support I think. Luckily I bypassed all that with midir. The MIDI events are emitted to React from Rust: https://github.com/ZaneH/piano-trainer/blob/6cbc15df3f529d861379114c48308bb1882b4ead/src-tauri/src/main.rs#L41 https://github.com/ZaneH/piano-trainer/blob/6cbc15df3f529d86...
- sabellito 4y agoIndeed Web MIDI doesn't work on Firefox, for example. But I was under the impression that the webviews Tauri uses are all chromium based. Regardless, it was just curiosity on my part - the approach you chose not only is cross-platform now, but also future proof.
- FinalDestiny 4y agoHopefully! I haven't done the tests but I think you're right. It would support WebMIDI out of the box and you could use webmidi or some other framework on top of it