Timeline for Align note with grace note in different stave in LilyPond
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2022 at 20:57 | vote | accept | MrBubbles | ||
Jun 14, 2022 at 20:57 | comment | added | MrBubbles | Thank you for the explanation, very helpful. That sort of stuff is not something I had found in the documentation so far. I only saw paper columns in the internals section, where the concept isn't explained. (If anybody has a link to an "official" explanation, I'd appreciate that.) So the notes are not really coupled, but I guess there's no case where that would really matter. and everything after is also aligned. Works for me :) | |
Jun 14, 2022 at 19:39 | comment | added | Lazy | @MrBubbles If you were to use a larger value for this skip you’d actually see that the grace notes come slightly after the right hand note, which is the reason why this uses a very small skip (we could of course also use a 1/2048th or a 1/4096th or even smaller skip, but the effect would not really be noticeable anymore. | |
Jun 14, 2022 at 19:38 | comment | added | Lazy |
@MrBubbles Lilypond puts things that happen at the same time into Columns. Each point in "score time", which Lilypond calls "Moment" might have a grace part that get’s put into grace columns that are strictly prior to the main part. So the default would be something like grace note | note rh/lh . We circumvent this here by putting the left hand note into a column that is slightly later (in this case a 1/1024th later). Thus we get something like rh note | grace note | lh note .
|
|
Jun 14, 2022 at 17:04 | comment | added | MrBubbles | This is much nicer, thank you! Just to clarify the logic behind it: The grace notes' usual spot is filled by the invisible rest and the grace notes end up in the upper principal note's column. And the lower principal note is moved to the next paper column. Is that correct? And regarding the note lengths: The grace notes take up no space in the measure. The principal note following our hack needs to be shortened so that together with our invisible space it has the length it usually has. So if we had a whole note it would be e1*1023/1024? | |
Jun 13, 2022 at 20:45 | history | answered | Lazy | CC BY-SA 4.0 |