The MIDI Debate...

0 favourites
  • 3 posts
From the Asset Store
Web MIDI
$12 USD
Incorporate WebMIDI into your Construct 3 projects
  • https://www.midi.org/midi-articles/about-web-midi

    I've been poking around trying to find a way to allow users to use USB Midi controllers as a form of input, but to no avail... I did read that (quite a while ago now) there was a brief discussion about MIDI support in browsers, and whether or not it would ever make it to C3 if it came to fruition. According to the link I've shared, it seems it has (unless I've missed something) just wondering if there's something I'm missing in terms of interacting with WebMIDI currently, or if its just straight unsupported, and if so, when it might become supported... as midi is a FANTASTIC way to reduce load times for game music, its way more flexible in real-time during gameplay (riding Yoshi in SMW adding bongos to the current music is a classic example), and is something I'd LOVE to see available in C3... I'm not a JS programmer, but I do understand the MIDI Binary format, so while I can happily load a midi file as a project file, drop its contents into an array, and play it back using pitched samples... I'd really love to be able to allow user control with a USB MIDI input device as well... thoughts?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here’s the documentation for accessing MIDI devices:

    developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API

    It shows how to do it and where it’s supported. However you’ll probably want to have a MIDI device first to test it or even attempt utilizing it.

    Playing MIDI files is different. You can already play audio in construct and change the pitch. Look at any example that has a piano.

  • Playback I'm not concerned about, as I prefer to use my own samples for specific games, its purely the reading of midi device input that I'm curious about, so thank you for the link! Not being a JS programmer, and someone that only uses the Event System in C3, I may have my work cut out for me in terms of incorporating this, however its a start for sure!

    As for MIDI devices, I have a few kicking around ;) (My primary background is in digital audio lol)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)