3 ms·
I've looked at MusicXML as an intermediary format to convert to from MIDI but found it to be overly complex and ended up just using the MIDI data in JSON form d
by jacquesm 5y ago
I've looked at MusicXML as an intermediary format to convert to from MIDI but found it to be overly complex and ended up just using the MIDI data in JSON form directly. This worked well except of course for the fact that MIDI is quite lossy (rests aren't in there, slurs are implicit, there are no 'beat' markers and so on).
Music formats are tricky, some are more suitable for performance, some more for archival storage or composition. It's enough to drive you bonkers at times, especially if you want exact representation and slowly you realize you are just not going to get it perfect no matter how hard you try.
- jraph 5y ago> I've looked at MusicXML as an intermediary format to convert to from MIDI To do what? I'm curious.
- jacquesm 5y agoTo power pianojacq.com In essence it allows you to upload a two-handed midi file (or a single track if you trust the splitter ;) ), and then to use the UI to practice the piece. It's slowly building up a following of people that use it for daily practice, and I've built up a small repertoire of suitable files (basically at the speed that I practice the pieces myself).
- jraph 5y agoThis looks really good. I happen to be learning piano since October and I have a MIDI keyboard. At a first glance, it matches an idea I had. Thanks for building this and for sharing. I might adopt this. And I fully understand why you wanted to use MusicXML now. It makes me think about the feature in MuseScore that plays the score. (Frère Jacques as a default, nice touch)
- jacquesm 5y ago> Frère Jacques as a default, nice touch Out of I don't know how many users you're the first one that spotted that :) Enjoy, if something doesn't work as it should or if I can help out with fixing midi files jam@modularcompany.com
- gnulinux 5y agoThe reality is MIDI is a terrible abstraction for anything other than keyboard (piano, organ, harpsichord, celeste etc...). If you have some really good soundfont files you can produce very realistic sounding piano performances if you tweak each note hard enough. At the end of the day the input into acoustic piano device and MIDI are the same (in fact in MIDINyou determine the velocity while turning a note off, which wouldn't have an acoustic effect on a piano) But for all other instuments especially those without "frets" e.g. violin, cello etc MIDI will sound nothing even close to a real insturment. Even if you buy thousands of $ worth soundfonts, it'll sound like MIDI. When I say this to my musician friends they keep saying "well duh computer just can't play a piece like human". Well, that may be the case but that's an entirely different topic. As a violinist and a software engineer the abstraction I would use for my own insturment would be: 4 on/off signals each for a string A global state about how far on the board each finger is (if it's pressing down, otherwise null). For each on signal: (1) Contact position of the bow, (2) velocity of the bow. And this doesn't even account for artificial harmonics, pizz etc many different timbres you can produce from an acoustic violin. The reason I'm writing all this is because I'm trying to make the case that MIDI is useful for the opposite of what you're doing. Going from MIDI to MusicXML is not useful since MusicXML is a format meant for composers to express music for all insturments (well, in MuseScore, Dorico etc, and they eventually generate Music XML) So in order to use MusicXML to its full potential, try generating MIDI from MusicXML. This way you can generate very realistic sounding music even for insturments like violin (but it won't look like a generic Midi as you need multiple channels for each insturment). This is how I compose music myself. I write it in MuseScore3 with heavily notated notation (including human readable notes like "slower" etc) and then generate wav from musicXML file. Try it!
- chriskrycho 5y agoHonestly it’s astounding just how good the representations from top notch virtual instrument libraries can be given the very real limitations of MIDI. The combination of key-switched articulations with velocity-driven patch variation plus clever legato programming means that a well-practiced DAW programmer can get performances out of libraries that blow my mind. Do they sound like a live performance? Not quite (and less so for solos or small chamber ensembles than for larger ensembles). They sound far better than it would seem they have any right to, though. And the upside to the MIDI encoding is that while you’re absolutely right that it isn’t a natural fit for e.g. violins (where your suggested approach could be a much closer representation), they are universal and therefore much more transferable. All of that mixed praise of MIDI notwithstanding, I basically agree with the take here. I (self)-published [1] a fanfare I wrote last year taking the path from a score authored in Dorico to MIDI to Logic Pro and the result came out surprisingly well out of the gate, and with much tweaking ended up in something that if I didn’t love, I also didn’t absolutely loathe, which had been my previous experience of these sorts of things. In any case, the thought of trying to transfer between tools like MuseScore, Dorico, StaffPad, etc. with MIDI just gives me the shudders: it’s absolutely the wrong tool for the job, where (something like) MusicXML is the right tool for the job, because it’s designed from the start to represent notation rather than to represent sound. [1]: https://songwhip.com/chriskrycho/fanfare-for-a-new-era-of-american-spaceflight https://songwhip.com/chriskrycho/fanfare-for-a-new-era-of-am...
- em3rgent0rdr 5y agoto be clear: MusicXML is a format representing musical notation. MIDI is a format representing musical performance. MIDI doesn't do a good job in communicating to a human reader, for which musical notation is much more useful.
- TheOtherHobbes 5y agoMusicXML is basically a graphics format. MIDI is basically a keyboard sequencing system. They're effectively different render targets at the end of whatever input system you happen to be using. Neither is the musical equivalent of a compiler's IR - which is why OP is confused about two different representations of the same musical object in two different music editors. Without a well-defined IR it's not clear what the musical objects are supposed to be. There's a semantic level missing, so the intent is unclear. And without that information it's impossible to render them unambiguously. Unfortunately it's debatable if a true IR for music is even possible.
- chriskrycho 5y agoThis is a key insight. One of the things which has most endeared Dorico to me is that it’s the only program in the space which even seems to have had the right approach for this to be possible. They’ve taken the view, from the very outset, that the fundamentals of music are pitch and duration. Everything else we do layers on top of that. By contrast, basically every (maybe actually every, other than perhaps LilyPond?) other program out there takes measures/bars as the starting point. It makes some sense given the historical development of those programs, but because Dorico puts pitch and duration at the core of the program, operations which are extremely-annoying-to-impossible in other programs become trivial. If we were going to come up with the equivalent of a compiler IR, I suspect it would have to start with that insight. Critically, that insight also works for non-Western music, whereas the bars/measures-first approach encodes a lot of assumptions about the Western musical tradition, and the pre-20th century Western musical tradition to boot! Now: that’s mostly what I write, so I got by just fine with Sibelius for a long time, and StaffPad still does fairly well for me in many scenarios. But Dorico’s model is… better. Deeply better. I hope the other programs figure out how to switch to it over the next decade(s).