7 ms·
LilyPond: Music notation for everyone
- coreyp_1 3y agoLily pond is great! I used it to be able to script the creation of musical examples to be put on PowerPoint slides and instructional videos. With a little bit of tinkering, you can get Lily pond output as an SVG to play nicely with Manim, and get some really interesting computational animations.
- dang 3y agoRelated. Others? “Compiling” Music - https://news.ycombinator.com/item?id=30625450 https://news.ycombinator.com/item?id=30625450 - March 2022 (44 comments) Lyp – The Lilypond Swiss Army Knife - https://news.ycombinator.com/item?id=13259590 https://news.ycombinator.com/item?id=13259590 - Dec 2016 (7 comments) Obsessed with putting ink on paper or What's wrong with computer music notation? - https://news.ycombinator.com/item?id=1515262 https://news.ycombinator.com/item?id=1515262 - July 2010 (36 comments) Open source typesetter for sheet music - https://news.ycombinator.com/item?id=1192289 https://news.ycombinator.com/item?id=1192289 - March 2010 (23 comments) LilyPond architecture (music notation software in Lisp) - https://news.ycombinator.com/item?id=379234 https://news.ycombinator.com/item?id=379234 - Nov 2008 (2 comments)
- croisillon 3y agolooks like this task could somehow be automated ;)
- eointierney 3y agoI am very happy dang is intelligent
- jamesear 3y agoI like the signal-to-noise ratio of interested commenters searching for related posts. I fear something automated would be too spammy for most posts.
- dang 3y agoIt would require writing code to pick out the meaningful threads.
- croisillon 3y agomaybe according to the points and comments they got at the time? i mean yes it would require writing code but lately you do it so often manually...
- Kye 3y agoMaybe dang enjoys this part of the job and doesn't want to automate it away.
- croisillon 3y agoor maybe it is already automated, we will never know :)
- dang 3y agoComments, yes—but how do you automate which comments are meaningful?
- krapp 3y agoYou don't. Arguably, as far as the software is concerned, karma points are a signal for meaning but of course it doesn't work that way in practice. Maybe you could sort by a ratio of upvotes to comments, or recency, obviously leaving flagged threads out, possibly also leaving out threads that can no longer be commented on. But all of that is just sorting by a bad heuristic (karma) with extra steps. I don't think you should bother trying to find "meaningful" threads at all, since there is no objective definition for that in context, other than "relatedness" to the current thread. I have a browser plugin that does it, it doesn't need to be that deep. Let readers decide what is meaningful to them. You can't automate everything.
- tylershuster 3y agoI've also used VexFlow to good effect producing web-friendly music notation. Given I've had to invent my own syntax for producing pieces with any rapidity, but it seems less complicated than this.
- megmogandog 3y agoI tried to learn LilyPond once but it was a bit too arcane for my taste. Now I use MuseScore, WYSIWYG notation program which is a lot more intuitive (and, like LilyPond, also released under the GPL). I write relatively simple music, though, mostly lead sheets. I always imagined LilyPond would shine in more complex scoring situations.
- RogerL 3y agoLilyPond rules when you want to manipulate music algorithmically. Like make a music reading training app that creates examples based on your performance so far.
- xhevahir 3y agoSeems like one of the libraries that can output Lilypond (like music21, mingus, abjad, or music-suite) would be better for that purpose.
- singingfish 3y agoBy way of being useful and for future reference for me: music21: http://web.mit.edu/music21/ http://web.mit.edu/music21/ mingus: http://bspaans.github.io/python-mingus/index.html http://bspaans.github.io/python-mingus/index.html abjad: https://abjad.github.io/ https://abjad.github.io/ music-suite: https://music-suite.github.io/docs/ref/ https://music-suite.github.io/docs/ref/
- singingfish 3y agoI've had a few attempts with algorithmic lilypond for some technical exercises. It's generally good for getting the basics out, but you either lose the advantages of `relative` mode, or end up with unreadable nonsense. So I find it's good for getting things started / 80% of the work done but then needs tweaks.
- bitbckt 3y agoI only use LilyPond for engraving, and MuseScore for input. They complement each other that way as a free software replacement for the usual commercial options.
- yashrk 3y agoLilyPond is the best way to integrate sheet music into the text-only formats (Markdown, wiki markups, org-mode). MediaWiki supports LilyPond. Emacs org-mode supports LilyPond. In fact LilyPond is way more simple to make small score snippets than any WYSIWYG score editor.
- organsnyder 3y agoA while back I built a music publishing company (long defunct) and used LilyPond to engrave all of our scores. I received comments from quite a few established composers that the engraving was the best they'd seen from any publisher. I ended up with a collection of macros I used for common tasks. Probably the most-used was a macro that manually overrode the positioning of an element to be more visually pleasing or less confusing. Of course, it could be argued that the need for this indicates a deficiency of the engraving engine (and this was sometimes the case), but a manual final pass makes the difference between functional and professional-looking results. LilyPond's markup language made this easy. LilyPond's test suite taught me the value of comprehensive test-driven development: every bug starts as an addition to the test suite, and a visual diff—including a numerical value indicating the amount of change—is taken of the entire suite in between versions. In this way, regressions are quickly identified.
- jchmbrln 3y agoI'd love to see your macros if you have them online somewhere. I've lately started spending lots of time notating music in LilyPond and am seeing the need to build tooling along the way. I started a personal folk song collection using ABC notation. For simple tunes ABC is fantastic, but now that I'm doing more choral/four-part works, I'm reaching for the more powerful tool. Yet there seems to be a huge gap between ABC (simple things done simply and in one way) and LilyPond (do literally anything you want following any format you want, dropping into Scheme as necessary). Ease-of-use/quality-of-life tooling to fill that gap is appealing. P.S. I'd also love to hear the story of your music publishing venture. It sounds intriguing!
- o11c 3y agoThe problem with lilypond is that it's a write-only language. Due to so many macros, it can't be parsed, only executed. So its main value to me is as an intermediate output format. Because its output is amazing. (to me, an ideal music representation should be 2-dimensional, consisting of multiple parallel data and markup channels, then each rendering should be able to select a subset)
- bjoli 3y agoI have a set of standard macros. I rarely write more.
- echoangle 3y agoInteresting that Music notation even seems to be a “challenge” to do with a computer, speaking as a complete layman. It seems like there is only a few note symbols to draw, at fixed positions. Can someone explain what makes good engraving good?
- Kye 3y agoWestern notation is a complex written language developed over centuries. It's easy to render the symbols in isolation, but not the meaning they convey to the musician who's expected to perform it. Even something like whether to render a flat or a sharp depends on context and intended use.
- exabrial 3y ago^ This is "the problem". A lot of music students try to "solve" it after getting frustrated with the staff, but eventually decide that couple hundred years of bad notation still has most of the bugs worked out. You're really looking for patterns on the staff rather than the exact pedantic notes that are present in the notation. Me? Still learn best by ear. Unfortunately this is also the slowest method....
- rtsil 3y agoLearning by ear is the best by far, and we live in a period where we can listen to every music every produced. When I learned music, music wasn't as available so you had to learn the pieces the hard way. There is also the problem that human memory has limitations, and if I stop playing something, I will forget it after a couple of weeks, so again musical notation is very helpful. > You're really looking for patterns on the staff rather than the exact pedantic notes that are present in the notation. Exactly. Playing the exact tune becomes boring after a while; music is a fun creative exercise for me, so the notes and chords are a general direction, not a precise roadmap. If I wanted a perfect interpretation, I'd listen to the recorded piece instead of play it.
- bombcar 3y agohttps://lilypond.org/doc/v2.24/Documentation/essay.pdf https://lilypond.org/doc/v2.24/Documentation/essay.pdf is a really good explanation - simplistic "make music notes like characters in a font" gets you the information, but it is NOT at all beautiful and actively fights against you, the same way badly typeset and kerned text is hard to read.
- jraph 3y agoAs a matter of fact, I started learning LilyPond last weekend using Frescobaldi, because of its awesome midi input, and because I figured I might get more efficient with code than with a WYSIWYG editor (I use MuseScore). Frescobaldi is a very nice way of getting started. It generates code that you see, you can use buttons for features you don't know yet and then you can type code directly when you know it. Frescobaldi then remains useful for at least these reasons: - midi input and output - the rendered view and mapping between this view and the code when you click on stuff, quite like those latex IDEs - new feature discovery. I discovered the concept of the UI that shows you what code is generated and where recently with LuCI for OpenWrt, which shows what config file is going to be updated and how; I love it and Frescobaldi has the same quality. I find it lets you get started and then master a new complex system efficiently and painlessly. Of course I suspect I will reach for my usual text editor at some point... and maybe I need a midi input plugin for it (Kate, if anybody happens to know something about this) Of course storing repeated notes in variable is incredibly useful, and managing different voices on the same clef is surprisingly easier than with MuseScore. One thing I dislike is how stuff applying to several notes need to be "opened" after the first note. I needed to do such a thing to a group of notes that was also used elsewhere and storing this group of notes in a variable was only natural but then it's difficult to open something after the first note. But this is easily overcome by using an empty chord ( <> ) to start the grouping thing. Feels hacky but seems to work, I hope it doesn't have unintended consequences. I'm sure there's a very sensible reason for this that I will discover later and will make me think that it was an obvious design choice after all. I'm not sure it's for everyone though. MuseScore is better at this, LilyPond has started being for me at a time WYSIWYG started being frustrating and when I started wishing the UI didn't get in the way of my note input (before this, I absolutely didn't want to write code to make a music sheet - just let me click already). But I'm used to code and to please compilers. Code scares a lot of people. I wish it didn't.
- ziotom78 3y agoThe fact that slurs and grouping must be appended after the note hasn't always been so. I have been a user since its first versions, and at the beginning you would write a legato scale like this: (c d e f g a b c) which indeed looks more natural because resembles the way parentheses are used in mathematics and programming. If I remember correctly, the change happened ~20 years ago because it made the notation more consistent: everything related to the note happens after the note name (durations, staccato, marcato, slurs, etc.). I remember that it took me several months to get acquainted with the new syntax.
- max_ 3y agoI have been having this Idea for a few years now. Why can't we just writ music like code. Executable & all.
- skull723 3y agoThen you might like 'faust' or 'pure data'.
- PaulDavisThe1st 3y agoor ChucK or or SuperCollider or CSound or any one of couple of dozen of domain specific live coding languages ...
- Tokkemon 3y agoThe biggest problem is so much of music notation's meaning is defined by it's graphical information, not just the content. This is where it differs significantly from code or even text typesetting. At some point, you have to get into the nitty gritty of where to place symbols on the page. Lillypond gets you part of the way, but the last part is really hard to do and most users are more comfortable with a WYSIWYG setup.
- vintermann 3y agoEven more than precision, you need consistency. You need to tweak the rules, not just the elements, to make a score look good. So WYSIWYG doesn't buy you that much.
- Tokkemon 3y agoEh, but "rules" only get you so far. There's tons and tons of situations where a human with eyes just needs to make a decision to "make it work." That's where "systems-based" engraving falls apart. It comes with practice and experience of doing the art over and over, and encountering all those little nuances in real scores and figuring out how to solve them.
- bombcar 3y agoLilyPond Book combines LaTeX and LilyPond in a way that is actually quite capable and performant once you learn how it works - https://lilypond.org/doc/v2.23/Documentation/usage/lilypond_002dbook https://lilypond.org/doc/v2.23/Documentation/usage/lilypond_... An 11 year old work still compiles just fine ...
- susam 3y agoPersonal story: Over a decade ago, when I was learning to play the piano, I made an arrangement of Twinkle Twinkle Little Star for my girlfriend (now my wife). While the arrangement was pretty basic, I also wanted to present a printed score and that's when I turned to LilyPond. Here are the files if anyone is interested to take a peek: <https://susam.net/files/music/twinkle-twinkle-little-star/ https://susam.net/files/music/twinkle-twinkle-little-star/>. The .ly file has the LilyPond code. The .midi and .pdf files were generated from it automatically. The .mp3 and .ogg have the audio recording of the music played manually on an electronic keyboard. Please note that the LilyPond code might not reflect optimal or idiomatic practices, given that I was new to both music and LilyPond at that time. Nevertheless, it was very satisfying to see the polished output generated by LilyPond. I remember getting the same kind of satisfaction when I discovered LaTeX about two decades ago and realised that I could finally render mathematical formulas beautifully that look exactly how they should look.
- gerdesj 3y ago"I made an arrangement of Twinkle Twinkle Little Star for my girlfriend (now my wife)" Nerd! ... and beautifully done. The route to a partner's heart can be fraught with danger and false turns. I've just heard the .mp3 - very nice (sorry - only nice!)
- singingfish 3y agoInteresting. A few years ago I had a bunch of music to learn fast, and was having real trouble with reading. I had a longish commute at the time and spent a big chunk of it re-transcribing the music to lilypond so I could get score and midi. The act of translating the original notes to its letter, typing it in then re-rendering and listening to the MIDI improved my sight reading massively.
- iso8859-1 3y agoEDIT: Deleted for copyright violation
- lolinder 3y agoIt's a pretty big leap to get from "notation isn't required for all forms of music" (what the person you're citing actually said) to "Lilypond is only for you if you're a classical musician". The music world isn't divided into a dichotomy of jazz players and classical players, and even many modern jazz players read and write musical notation.
- rtsil 3y agoIf anything, learning jazz improved my notation reading skills by making me think faster.
- diehunde 3y agoYes they do
- kazinator 3y agoOver a decade ago, I was doing some composing and so I tried every free composition program, as well as trials of commercial ones. In the end, only LilyPond was easy and intuitive to use, due to relying on text editing that you already know, instead of incomprehensible editing paradigms where weird, invisible things happen. I was easily able to find out how to include everything I wanted in the output, like fingering indications and chord diagrams. https://www.kylheku.com/~kaz/Prelude.pdf https://www.kylheku.com/~kaz/Prelude.pdf
- TylerE 3y agoThe start of that set, has, to put it blunty, moved in. Dorico, in particular, is light years ahead, having an actually useable GUI while still being able to do advanced layout stuff, some of which would take hundreds of lines of custom macros in lilypond. I can enter 100 bars in Dorico faster than I could 5 in lilypond… 10+ years ago when I was using it at least weekly.
- theygotit 3y ago[dead]
- ubj 3y agoLilyPond is surprisingly good at producing high quality scores. I was surprised to learn recently that many people export from other music editors (e.g., Musescore) to LilyPond to compile the final output.
- Slow_Hand 3y agoWhat does Lilypond offer that other robust, free, and open-source notation programs like Musescore don’t?
- tomcam 3y agoNothing else comes remotely close to the engraving and scripting features.
- turtlebits 3y agoText entry. I find Musescore terrible (even revisited it after their huge upgrade). Being able to freely enter text means I don't have to care about timing and just get the notes on the page, which most other notation apps are strict about.
- Tokkemon 3y agoMuch more robust engraving support, and, frankly, being actually open source as opposed to owned by a big conglomerate who's gobbling up music companies right and left.
- jamesear 3y agoExcuse my ignorance, I'm about to ask stupid questions. * What type of person uses this? I guess the intersection of people interested in composing and people able to typeset? I would have thought it wasn't that popular, but it has the polish of a popular tool. What am I missing? * Do people typically use this to compose their own music, or are they recreating music they know? * How similar is sheet music to source code? Does any software interpret it to output audio? * Are there any open git repos where people collaborate on an open collection of sheet music? * How expressive is sheet music? How constrained do you feel trying to convey your idea onto this format? Does it support abstraction, or making your own abstractions?
- hooo 3y agoYou ask such good questions here. I am curious about the same. The other comments provide some clues as to the answers.
- turtlebits 3y agoA lot of older classical scores have poor scans, low res, or are hand written. If I enjoy a piece, I'll redo the notation and upload it (generally to IMSLP). I have a MIDI piano so I end up using the keys to input, which can be fairly quick, depending on the piece.
- Doctor_Fegg 3y agoWhat software do you use to get the MIDI inputs into Lilypond? (and thank you for contributing to IMSLP, one of the great commons of the internet)
- jononor 3y agoIMSPL looks go be https://imslp.org/wiki/Main_Page https://imslp.org/wiki/Main_Page It seems that some uploads are just PDFs, while others include Lilypond files.
- MatmaRex 3y agoIt's used to render sheets and audio in Wikipedia articles (I hope this answers several of your questions). Example: https://en.wikipedia.org/wiki/Humpty_Dumpty#Lyrics_and_melody https://en.wikipedia.org/wiki/Humpty_Dumpty#Lyrics_and_melod...
- lioeters 3y agoOn a related note, VexFlow is a project for rendering music notation in the browser. https://github.com/vexflow/vexflow/ https://github.com/vexflow/vexflow/ OpenSheetMusicDisplay is a higher-level library that uses VexFlow to render entire MusicXML documents. https://github.com/opensheetmusicdisplay/opensheetmusicdisplay https://github.com/opensheetmusicdisplay/opensheetmusicdispl...
- medler 3y agoRecently made some chord flashcards in an experiment to see if it will improve my sight reading on piano. I originally planned to write a python script to generate Lilypond code for all the different chords I wanted, but found that Frescobaldi made it fast enough that I was able to generate them all manually. In retrospect I’m not sure the code would have panned out all that well because some of the chords needed manual fiddling. Then I loaded them all up into Anki and have been plugging away. If not for Lilypond I probably would have made real flashcards by hand and that would have been a big ordeal by comparison.
- paradox460 3y agoI've been using LilyPond for ages to typeset music, to the point where I find other tools cumbersome My current workflow is vscode, with a plug-in that handles auto compile and displays a PDF in an editor pane, and handles midi input from a small keyboard I've got next to my desk
- dirkt 3y agoOh, I didn't know there are VSCode plug-ins for Lilypond. Which one are you using?
- paradox460 3y agoI've been using this one: https://github.com/lhl2617/VSLilyPond https://github.com/lhl2617/VSLilyPond Its a bit old, but works very well. I contributed a few fixes years ago to make the midi more reliable, depending on the type of keyboard you have
- deleted 3y ago[deleted]
- briffid 3y agoI developed the most feature-rich editor for Lilypond (as a plugin for jEdit). It had midi, virtual keyboard, integrated pdf viewer, templates, snippets, autocomplete, lots of cool stuff. I also built an on-the-fly syntax checker. However, Lilypond development gradually turned to a direction that made it impossible to create a useful syntax checker. As you could actually change the language itself in your source file, by actually changing the enormous amount of Scheme code that provided the Lilypond features. So at the end one couldn't provide reliable edit time autocomplete or error checking, because they needed to actually run the Lilypond interpreter. So I gave up and switched to MuseScore. I even got time to create scores and learn my instruments :)
- oakesm9 3y agoTantacrul’s series on the design of music notation software is well worth a watch https://youtu.be/S-3wEC6Fj_8?si=YwamxToPTPHYet0M https://youtu.be/S-3wEC6Fj_8?si=YwamxToPTPHYet0M
- xpointer 3y agoIn 2009, I made Velato, an esolang where code is written in pitch values (https://github.com/rottytooth/Velato https://github.com/rottytooth/Velato) encoded as MIDI files. So sort of the opposite of writing algorithmic music (where the human programmer writes music to satisfy conditions of the program). Before switching to LilyPond, I'd used GUIDO with a GUIDO-to-MIDI generator, but it was always awkward. Part of the challenge is that notes can be sounded simultaneously to make the score work better musically, but still need to appear in the correct sequence in the MIDI file for the program to succeed; something that LilyPond handles correctly. There's a transparency to how LilyPond functions that is not always there with programs that try to be "helpful" and clean-up or rearrange information.
- BashiBazouk 3y agoI'm not a musician but have training as a printmaker so I was intrigued by the use of the term "engraved" to put down music on paper. Looks like the early reproduction of sheet music was the intaglio process of engraving the music into a metal plate and reproducing on an intaglio press, that is the ink is in the groves and the surface of the plate is wiped clean.