Re: Sometimes order is significant
On 26/05/15 15:02, Knute Snortum wrote: Thanks for the reply and the cheat sheet. The way I look at it, is to look at the *meaning*, not the *representation*. First, you need the note, eg C above middle C, which is c''. Next comes whether to display any accidentals, which is a property of the note, as is the length. So logically those could be swapped, but I think lily says they have to be in that order. Finally come all the ornamentations - accents, markups, dynamics, etc which have no tight binding to the note, only the note location, so can come in any order. I have my own consistent pattern, but that's just to make it easy for me, lily doesn't care. Cheers, Wol Knute Snortum (via Gmail) On Mon, May 25, 2015 at 2:56 PM, Nathan Ho when.possi...@gmail.com mailto:when.possi...@gmail.com wrote: On Mon, May 25, 2015 at 2:38 PM, Nathan Ho when.possi...@gmail.com mailto:when.possi...@gmail.com wrote: This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Here's a more formal answer which can be found by delving into the LilyPond grammar. http://www.lilypond.org/doc/v2.18/Documentation/contributor/lilypond-grammar To oversimplify, a monophonic note is divided into a simple_event and any number of post_events. A simple_event breaks down like so: - pitch (note name + octave) - forced accidental markers - octave check - note duration and multiplier - \rest Beams, slurs, articulations, fingerings, etc. all fall under post_events, which can occur in any order. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sometimes order is significant
Thanks for the reply and the cheat sheet. Knute Snortum (via Gmail) On Mon, May 25, 2015 at 2:56 PM, Nathan Ho when.possi...@gmail.com wrote: On Mon, May 25, 2015 at 2:38 PM, Nathan Ho when.possi...@gmail.com wrote: This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Here's a more formal answer which can be found by delving into the LilyPond grammar. http://www.lilypond.org/doc/v2.18/Documentation/contributor/lilypond-grammar To oversimplify, a monophonic note is divided into a simple_event and any number of post_events. A simple_event breaks down like so: - pitch (note name + octave) - forced accidental markers - octave check - note duration and multiplier - \rest Beams, slurs, articulations, fingerings, etc. all fall under post_events, which can occur in any order. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Sometimes order is significant
I've noticed over the months I've been using LilyPond that there are some parts of the syntax that depend on order and some that don't. For example: { c'!8 } Everything about must be in the exact order -- the note letter, the octave indicator, the force accidental, and the rhythm. Are there others? Everything else I can think of can be in any order. { c---.~([ } And so on. Is this worth mentioning in the documentation somewhere? Specifically, I had to do a little experimenting to figure out where the forced accidental markers (!?) were places syntactically. Knute Snortum (via Gmail) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sometimes order is significant
On Mon, May 25, 2015 at 7:05 AM, Knute Snortum ksnor...@gmail.com wrote: I've noticed over the months I've been using LilyPond that there are some parts of the syntax that depend on order and some that don't. For example: { c'!8 } Everything about must be in the exact order -- the note letter, the octave indicator, the force accidental, and the rhythm. Are there others? Everything else I can think of can be in any order. { c---.~([ } And so on. Is this worth mentioning in the documentation somewhere? Specifically, I had to do a little experimenting to figure out where the forced accidental markers (!?) were places syntactically. This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sometimes order is significant
On Mon, May 25, 2015 at 2:38 PM, Nathan Ho when.possi...@gmail.com wrote: This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Here's a more formal answer which can be found by delving into the LilyPond grammar. http://www.lilypond.org/doc/v2.18/Documentation/contributor/lilypond-grammar To oversimplify, a monophonic note is divided into a simple_event and any number of post_events. A simple_event breaks down like so: - pitch (note name + octave) - forced accidental markers - octave check - note duration and multiplier - \rest Beams, slurs, articulations, fingerings, etc. all fall under post_events, which can occur in any order. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user