221 points · by Bender · 3y ago · 136 comments
I remember the first time I saw MIDI in action: I was in a mall in the mid-to-late 1980s and ComputerLand had a full sized keyboard hooked up to an Apple IIgs, which was playing The Entertainer while the notes scrolled across the screen on a color display. The real piano sound that came out was piped through some great speakers and I thought it was the most amazing technology I had ever seen. Think about that for a second: That tech remained almost untouched for 35 years. Incredible.
This video has a short bit in the middle about one of the first MIDI keyboards which still works with modern equipment (starting at 7:55): The History of the Prophet Synthesizer https://youtu.be/Ruh0B5QKBMs?t=476
And for fun: 1986: MIDI and the MUSICAL MICROS | BBC Archive: https://youtu.be/aADkqmvy44o
Related (non-MIDI) note: I recently found this video about making electronic dance music on an Amiga in the early 1990s and learned quite a lot about how music-techies back then we're geeking out. Super fun - I'm not a musician, so I honestly had no real idea what was possible back then.
No-one uses MIDI 2.0 yet, we don’t need it! MPE (https://www.midi.org/midi-articles/midi-polyphonic-expressio...) is only just being adopted (with poly aftertouch instruments and keybeds like the ones in the ASM Hydrasynth).
MIDI has proved amazingly resilient, whether over 5-pin DIN, the increasingly common TRS 1/4” jacks (common on Eurorack or guitar pedals, where space is a premium) or the utterly ubiquitous MIDI over USB. (And ethernet, can’t forget that). Everything digitally controlled speaks MIDI - and not just music, the stage lighting world is all MIDI too. I think that there is a real case that it’s the second most successful wired physical-layer protocol behind Ethernet.
[1] - http://www.dmx-512.com/dmx-protocol/dmx-protocol-basics/
And MIDI also has SYSEX to handle arbitrary data.
Yeah but MIDI works for so much more than a piano. People use MIDI to program drum VSTs, guitar VSTs, entire orchestras, guzheng VSTs... basically anything musical.
That being said, it's serviceable but not great for a lot of these things, because originally it was meant just for keyboard-controlled synthesizers. The biggest flaw (IMO) is lack of standardization for individual instruments with more varied playing styles and articulations than the piano. As a basic example, for guitar VSTs, if you want to switch between sustain notes and palm mutes, you generally have to play an out-of-range note (a "keyswitch") to alter the articulation. However this keyswitch is different for Ample Sound, Shreddage, Native Instruments guitar libraries, etc. Similarly if you want to slide between notes, some VSTs just let you overlap the note while others make you use a slide keyswitch. Every VST has its own way of MIDI programming that isn't transferrable.
It's like switching between programming languages, except you're building a single program where it uses multiple languages at once in the same file and you have to remember if the current language syntax you're writing uses `elif`, `else if` or is LISP. (I have reference manuals for most VSTs I own bookmarked for this reason.)
The fact that MIDI continues to be used today is, more than anything, the result of "perfect is the enemy of done" IMO. You could redesign something better than MIDI from the ground up, but since everything already supports MIDI there's little motivation when it already works well enough.
It's time for a proper new standard using modern capabilities both for audio and control signal transport but it's a very heterogeneous market with tons of legacy, therefore almost impossible to achieve.
Specifically, the rate was 31250 bps. Why? Because the huge majority of synthesizer processors at the time had clocks that ran at 1 MHz or integer multiples thereof. Indeed that is still the case forty years later. Ask yourself what 31250 * 32 is.
The first implementation of a numerical control programming language was developed at the MIT Servomechanisms Laboratory in the late 1950s... The main standardized version used in the United States was settled by the Electronic Industries Alliance in the early 1960s. A final revision was approved in February 1980 as RS-274-D.
So yeah. Remember what Gibson said about the future...
Check out the Example section for the 1964 RUNOFF document editor. You might see some familiar things
https://en.m.wikipedia.org/wiki/TYPSET_and_RUNOFF
Also communication protocols have pretty long lifespans. Take https://www.kermitproject.org/ for example or the wire standard for Ethernet
https://www.snopes.com/fact-check/railroad-gauge-chariots/
Basically there are loads of different railway gauges around the world, and indeed, inside the USA itself, which historically had no single standard size.
All roads, railways, and thus tunnels and bridges everywhere are very approximately multiples of the width of a horse's pectoral/pelvic girdles. Nothing especially Roman or anything else about it.
Edit: see other comment in this thread, no dice for now :( I'll have to do some more digging as to why it doesn't work.
I just would wish, there was a more clear distinction between them.
I think the connection from the browser vendors to the ad companies are not helping with that.
You can let the user accept new entries, but then you're back having to give random nontechnical people enough context and information to make the correct choice when a random website causes the permission dialog to appear. Empirically, that doesn't go too well.
I hope some day we get to a WebMIDI 2.0, to expose some of the many many new super-rad features in MIDI 2.0.
This want iconifies a lot for me, as sensible & highly desireable straighforwardhish follow-up I have little expectation we'll see anytime soon. I generally love the web platform, find it does a solid job, has decent API shape & decisions. Stuff gets made, & pretty well. But there's definitely a dearth of spec workers & browser maintainers out there to pitch in after the first drops, especially after some 1.0 implementations make it out the door. Just like in normal software development, there's a budget for new development, but maintenance & improvement can be severely lacking. Attention for what we have, tlc, is sparser than the places where new things happen.
WebMIDI is alas one of these great worthy & amazing specs that at some point we need to re-up, come around to again, and I want so much to imagine that happening. I feel like WebShare (and Target) was another great example- lots of really good improvements asked for in issues, growing potential, but the interest from the top has moved on.
Apple removing it is weird considering the platform prevalence with musicians...
So far, it's working. Chromebooks have not taken over the world.
They're also often exceptional deals for the low end of laptops (sub 200 dollar range) because Windows and its bloat make those laptops even worse to use. I'd never recommend any laptop that cheap unless someone has no meaningful way to save up, but this segment is very much still alive.
Honestly, I'm surprised the unification of smartphone and laptop hasn't reached those circles yet. A mid range phone and a cheap laptop shell that you can slide the phone into are a much better deal than a cheap laptop and a cheap phone. Samsung's DeX, for example, is fully competitive with ChromeOS and even most basic Windows use cases.
Also, fingerprinting is easy to avoid here. Firefox leaves MIDI off entirely until you opt-in to avoid random websites picking it up. Safari could do the same, presumably.
Firmware over midi was not uncommon for older equipment because the alternative was swapping out EPROMs if the instrument did not have an FD drive…and around Y2K, unavailability of older chips could mean replacing sockets or going without (so mostly going without).
That is definitely an issue with the device, but I don’t know how common or uncommon that is for much older equipment
I feel like they’re just using fingerprinting as an excuse to not implement functionality that people want. Of course, I don’t really understand the problem space, so it’s likely I’m missing something.
i don't understand how this is a fingerprinting risk either, and i'm pretty sure i'm not missing anything.
Do you actually believe this? Do you not default to more practical explinations like, maybe they don't consider it worthwhile to support because of engineering cost vs people that actually use it?
For example, I'd say 9/10 people I know who aren't tech literate have no idea the Health app exists on their iPhone. This includes people with Apple watches. Similarly it should be obvious that basically nobody ever knew about or used that one feature you liked.
...Well, I guess I was about to answer my own question there. Never change, Apple. Never change.
There are lots of rooms equipped with computer, notation software and keyboard in music institutions, where webmidi seems like a great way to develop some quickie music theory/education apps.
The web is not anywhere near parity for music and audio production yet, but its proponents see webmidi as one necessary step to that direction.
(I would personally not use current webaudio/webmidi software, but have successfully deployed a lot of it for education!)
Marketing is tricky, but 2023 looks like a great year for my product.
Working hard for it :) nice to see these kind of talks, it's inspiring
Already on it... I will likely have to tweak the startup code a bit, look for an update tomorrow.
Edit: Ok, just tried it after upgrading FF, it doesn't work at all when used locally ("secure context required", as if there is anything more secure than using a local file...), and when using it on the server it does get past the initialization but the device list isn't populated, so whatever they are doing it isn't 100% compatible with the way Chrome does it.
I'll have to do some more digging, sorry!
Edit2: We're not quite there yet it seems: https://bugzilla.mozilla.org/show_bug.cgi?id=1805582
The 'expected behavior' would be that the permissions dialog pops up but it doesn't so for now we'll have to wait until that is fixed. Pity, but it's very close now.
By the way, where do you get your MIDI files from ?
My workflows for making them:
- either painstakingly transcribe a piece note-for note using midieditor
or
- find a youtube video of a good rendition
- download as MP3
- convert to midi using https://piano-scribe.glitch.me/
(I wrote my own software for this step but Piano Scribe is about 8% better even if it is slower so I use that now)
- fix up the output using midieditor
(still takes a lot of time, but it's quicker than starting from nothing)
This even works well when you have no score.
Best of luck! If you have a problematic file drop me an email.
edit: nope, looks like their position is still the same
>Such an API would bridge the web and the physical world... Exposing that sort of capability to the web without adequate safeguards presents a significant threat to those devices.
I love what MIDI has given us, but MIDI devices are not designed for adversarial environments. I absolutely would want this to be mandatory opt-in (per session every single time) at the very least.
Even ignoring MIDI, audio worklets in browsers don't have perfect latency, so it makes me nervous about the potential. Are there web MIDI apps that have good enough to actually play along with or composes music in real time? Is this just an issue with my setup?
Would be kind of nice to at least have this available in workers, the MDN page (https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_AP...) makes it seem like this needs to be done in the main thread.
wavtool.com
It has extremely good latency on Mac OS, absolutely good enough to play along with and compose music in real time.
"The last new version of Firefox for 2022 is out on Mozilla's FTP server"
But firefox droped ftp, didn't it ?
https://ftp.mozilla.org/pub/firefox/releases/108.0/
Clearly the domain name is there for historical reasons.
It only took <checks bugzilla> over a decade, but we now finally, FINALLY, have proper midi support in Firefox.
And in the mean time, Chrome has had midi support for over 7 years now. Did Firefox do it better? Probably. Should it have taken this long? No. Not even remotely. The whole SysEx nonsense discussion alone took up literal years.
Check it out, it's https://www.melodics.com/ and I'm not affiliated in any way, I just hope I catch the eye of the devs and they indulge me :)
[1] https://github.com/FortySevenEffects/arduino_midi_library
I don't even have to write the css, I can just use https://github.com/ranmaru22/firefox-vertical-tabs, but in Edge, I can just select the option... not install an extension, click things in a hidden page, make a directory deep in $APPDATA, put a CSS file in that directory, and then also paste more CSS into said extension's custom CSS field, then restart browser.
The Edge development team has been adding features to their browser just to limit that surface area: don't need extensions if its built in.
Cause that’s pretty cool.
I would love it if that happened. :-)