CodeWalrus

Development => Web => Topic started by: Yuki on June 28, 2015, 07:27:31 PM

Title: WebMIDI
Post by: Yuki on June 28, 2015, 07:27:31 PM
I'm messing up with Web MIDI here (http://juju2143.ca/midi/), I wonder if anyone have any MIDI controllers here, such as pianos, synths or something?

WebMIDI is a new feature that came out with Chrome 43 and Opera 30 (otherwise you can install a plugin here (http://jazz-soft.net/download/Jazz-Plugin/)), it looks pretty interesting.
Title: Re: WebMIDI
Post by: Keoni29 on June 28, 2015, 08:24:30 PM
Does this mean I can hook up a midi keyboard to the internet?
Title: Re: WebMIDI
Post by: Duke "Tape" Eiyeron on June 28, 2015, 08:31:12 PM
Basically, it looks like yeah.
Title: Re: WebMIDI
Post by: Yuki on June 28, 2015, 08:53:46 PM
Yep, basically.
Title: Re: WebMIDI
Post by: Dream of Omnimaga on June 29, 2015, 07:51:02 AM
A wild @Keoni29 appeared! O.O

Also interesting idea juju. If it wasn't for the potential lag or latency issues, maybe you could have put an online piano there so people with MIDI keyboards could have played music together in real time, kinda like TwitchPlaysPokémon.
Title: Re: WebMIDI
Post by: Snektron on June 29, 2015, 08:44:59 AM
Cool idea. Too bad i don't have any midi devices / the power to create music :P
Title: Re: WebMIDI
Post by: Keoni29 on June 29, 2015, 06:25:58 PM
It's weird that this is a feature shipped with the browser as opposed to being an optional plugin. I don't think that many people will use it.

I once used an online piano application which worked kind of like a chat program with different rooms. The input lag was terrible and you could not really play together.
Title: Re: WebMIDI
Post by: Yuki on June 29, 2015, 07:38:53 PM
There should not be any latency issue, unless of course you actually attempt to send and receive data online in real time.

I understand there's not many people with MIDI controllers (unless you make something aimed at music producers such as a FL Studio clone, and the best thing, it would actually be doable), so it's a good idea to give some alternative such as the keyboard or a MIDI file or something.

By the way, I found someone with chromesthesia (https://en.wikipedia.org/wiki/Chromesthesia) and is willing to help, that would probably be pretty interesting to do some sort of chrome experiment with him. Another idea is some sort of Piano Hero. :P
Title: Re: WebMIDI
Post by: Dream of Omnimaga on July 02, 2015, 04:06:11 AM
Would there be an workaround against the lag?
Title: Re: WebMIDI
Post by: Yuki on July 02, 2015, 04:12:00 AM
Quote from: DJ Omnimaga on July 02, 2015, 04:06:11 AM
Would there be an workaround against the lag?
Not sending anything back to the server. That is the workaround. I don't intend to send the inputs over on a server.
Title: Re: WebMIDI
Post by: Duke "Tape" Eiyeron on July 02, 2015, 11:00:14 AM
I don't realy see the point of this API except in eductiation/fun client programs. THe only use for MIDI input after these two are music composition, but you would needs lots of cycles and memory and JS on browsers aren't really the solution for speed/memory usage. Just look at how Atom requires memory/cpy (yay, 200 MB for an IDE and opening one file, having lots of bundled plugins doesn't really help)
Title: Re: WebMIDI
Post by: Dream of Omnimaga on July 06, 2015, 02:19:26 AM
Quote from: Juju on July 02, 2015, 04:12:00 AM
Quote from: DJ Omnimaga on July 02, 2015, 04:06:11 AM
Would there be an workaround against the lag?
Not sending anything back to the server. That is the workaround. I don't intend to send the inputs over on a server.
But then how do they get the results?