24 ms·
It's built using Tauri + React and uses midir to handle the MIDI so it's completely cross-platform. Hope y'all find it useful
by FinalDestiny 4y ago
It's built using Tauri + React and uses midir to handle the MIDI so it's completely cross-platform. Hope y'all find it useful
- sabellito 4y agoGreat project, I'm building something similar but for EWI, I'll probably use your approach to some aspects. Question: wouldn't using the Web MIDI api work cross-platform as well?
- FinalDestiny 4y agohttps://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