Replies: 1 comment
-
Got a simple example working at https://github.com/stuartwk/yew-midi |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋 , I'm relatively new to Rust and trying to build a simple example repo that uses midir with the Yew framework Yew-MIDI.
Dropping the midir browser example into a Yew app works easily and logs MIDI data as it's entered (which is very cool!).
The issue I'm running into is passing MIDI messages back out of the Closure so Yew can handle that data. For example, getting the message from
midi_in.connect
and simply rendering it in the view.I get compile-time errors trying to pass a Yew callback into the Closure
The idea would be to fire the callback on incoming MIDI messages
Beta Was this translation helpful? Give feedback.
All reactions