Previous Thread
Next Thread
Print Thread
Joined: Dec 2023
Posts: 2
D
Member
OP Offline
Member
D
Joined: Dec 2023
Posts: 2
Hello,

Recently I was attempting to run many electronic keyboard emulations in the browser, using MAME compiled by emscripten. Currently, I've managed to run the emulator and play the MIDI file via the `-midiin` parameter, but haven't figured out a way to make the emulator controllable using an external MIDI device like MIDI keyboards and sound modules.

I know that modern browsers support web midi but I didn't find much information for connecting the web midi to an wasm application on the web page. Is there a solution to achieve that?

Joined: Mar 2001
Posts: 17,125
Likes: 163
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,125
Likes: 163
We don't have a driver for Web MIDI in Emscripten builds and as far as I know PortMIDI doesn't support it yet.

Joined: Dec 2023
Posts: 2
D
Member
OP Offline
Member
D
Joined: Dec 2023
Posts: 2
Thank you R. Belmont. I guess it might take a while till the midi function is fully implemented.

By the way, I saw an example on this page https://forum.pdpatchrepo.info/topic/13746/webmidi-and-emscripten which takes the web midi note events and forwards it to the wasm application. It is still limited but I guess maybe it can be a workaround.


Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
4 members (AJR, Golden Child, 2 invisible), 52 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,261
Posts121,259
Members5,064
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com