// document.addEventListener('DOMContentLoaded', () => { // startMidi(); // listenForMidiEvents(); // }); // // async function startMidi() { // try { // await window.__TAURI__.invoke('start_midi'); // console.log('MIDI listener started'); // } catch (error) { // console.error('Failed to start MIDI listener', error); // } // } // // function listenForMidiEvents() { // window.__TAURI__.event.listen('midi-event', event => { // console.log('MIDI Event:', event.payload); // }); // } // // elementary