Re: Puzzled about r1 issue in 3/4 time
On 23.10.19 23:38, Michael Gerdau wrote: Lilypond is right, r1 is 4 beats long. What you probably want is r1*3/4 or most likely (and better) R1*3/4 instead of r1. More like R2. What is the difference between R2. and R1*3/4 apart from the obvious difference in the source file? It really does not matter in any way; all Lily looks at is the ‘total’ mathematical duration. R4*12 or R1*3 or R2.*4 or R\longa. … Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Michael Gerdau writes: >> The song is in 3/4 time, but the rest in measure 33 seems to >> betaking 4 beats - I get a bar check failed and there are one two >> rests in measure 34, and an extra measure is inserted at the end. >> >> What am I doing wrong? >> >> The offending r1 is on the 3rd line of the first branch of the >> alternative below - and if I change that r1 to “r4 r4 r4”, or to >> “r2.”, the issue goes away. > > Lilypond is right, r1 is 4 beats long. What you probably want is > r1*3/4 or most likely (and better) R1*3/4 instead of r1. More like R2. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
23. Oktober 2019 21:59, "Michael Wagner" schrieb: > I am seeing some behavior I don’t understand. I have ended the music for > “Silver Bells” into > lilypond, and I am seeing a puzzling error. > > The song is in 3/4 time, but the rest in measure 33 seems to betaking 4 beats > - I get a bar check > failed and there are one two rests in measure 34, and an extra measure is > inserted at the end. > > What am I doing wrong? > > The offending r1 is on the 3rd line of the first branch of the alternative > below - and if I change > that r1 to “r4 r4 r4”, or to “r2.”, the issue goes away. This is natural because an "r1" *is* a whole note rest taking four beats. What you want to have is a full note rest that *looks* like an r1 but is actually written with a capital "R" and the actual duration. So what you need is R2. You'll also notice that this one will (correctly) be centered in the measure while the "r1" will sit at the left. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
All grobs at a given time/in a note column in all or certain contexts
Hi all, is it possible from either a music function or a callback or an engraver to get to all the grobs in a certain note column, either across the whole score or within specific contexts? And/or the skylines in these. I want to learn how to write a music function that takes some music and does something taking all relevant grobs into account, e.g. drawing a bounding rectangle around everything. I *assume* I would have to somehow "mark up" everything enclosed in the music expression (i.e. attach some arbitrary property values to the elements) and later process these properties in a callback. I think an engraver would be the appropriate tool for that, but I don't really recall how I'd have to approach this. If an example is easier than an explanation or a pointer I'd be happy about an example that includes - a music expression taking arbitrary music and an optional list of context names - something that produces a list of all grobs that are included in/produced by that music expression and optionally at the same time in all/given other contexts - is able to act upon the total of these grobs, e.g. drawing a rectangle around the extreme extents (although I can figure out that last one if I have the list of grobs and a suitable callback where I can use it) Thank you for any suggestions! Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Am 23.10.19 um 23:38 schrieb Michael Gerdau: Lilypond is right, r1 is 4 beats long. What you probably want is r1*3/4 or most likely (and better) R1*3/4 instead of r1. More like R2. What is the difference between R2. and R1*3/4 apart from the obvious difference in the source file? It’s “half with dot” vs. “whole scaled by 3/4” even in the internal structure which you can show with displayMusic: \displayMusic { \time 3/4 R2. R1*3/4 R4*3 } LilyPond’s Duration type makes this distinction, Moment doesn’t: #(display (ly:duration-length #{ 2. #})) #(display (ly:duration-length #{ 1*3/4 #})) #(display (ly:duration-length #{ 4*3 #})) For the output of MultiMeasureRests it doesn’t make a difference, for Rests and NoteHeads the choice of the duration affects the glyph choice. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Michael Gerdau writes: >>>Lilypond is right, r1 is 4 beats long. What you probably want is >>>r1*3/4 or most likely (and better) R1*3/4 instead of r1. > >> More like R2. > > What is the difference between R2. and R1*3/4 apart from the obvious > difference in the source file? Probably none. I think that R only looks at the actual time spent and doesn't care just how the time is spent. But if the next note is, say, c' then a default duration of 2. and a default duration of 1*3/4 will make it look different. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Am 23.10.19 um 23:09 schrieb Carl Sorensen: As you have identified, you can use “r2.” to get a ¾ note rest. This rest will appear in the same note column as the first quarter note in the measure. You can also use “R1*3/4” or “R2.” in ¾ time to get a ¾ note (whole measure) rest. This rest will appear centered in the measure. Correct, but I don’t agree with: It is up to you to decide which you want There are debatable conventions in notation but it’s a hard rule to use centered whole rest symbols for full measure rests—according to Gould only in complicated music from the 20th century (complicated rhythms paired with many time signature changes) you might deviate from that rule. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
>>Lilypond is right, r1 is 4 beats long. What you probably want is >>r1*3/4 or most likely (and better) R1*3/4 instead of r1. > More like R2. What is the difference between R2. and R1*3/4 apart from the obvious difference in the source file? Kind regards, Michael ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Hi Michael, some further clarification: On 23.10.19 23:09, Carl Sorensen wrote: R1*3/4 or R2. is a whole measure rest in ¾ time. With normal rests (as with notes) the glyph, or symbol, that is printed depends on the main duration you enter, ignoring the scaling factor. These three all look the same: r4 r4*10 r4*3/4 With multi-measure rests the appearance will be automatically determined based solely on the ‘total’ duration and the number of bars it encompasses. Thus these three mean, and look, exactly the same: R2. R1*3/4 R4*3 As you have identified, you can use “r2.” to get a ¾ note rest. This rest will appear in the same note column as the first quarter note in the measure. You can also use “R1*3/4” or “R2.” in ¾ time to get a ¾ note (whole measure) rest. This rest will appear centered in the measure. It is up to you to decide which you want. Here I have to say that it’s not really up to you. There is a clear typographical rule that a rest that fills a whole measure has to be centered. Thus using \time 3/4 r2. is wrong and will look weird to anybody with experience in good musical notation. Even if that mistake is often made and found in published scores… it doesn’t make it any less of a mistake. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
From: Michael Wagner Date: Wednesday, October 23, 2019 at 1:59 PM To: Subject: Puzzled about r1 issue in 3/4 time I am seeing some behavior I don’t understand. I have ended the music for “Silver Bells” into lilypond, and I am seeing a puzzling error. The song is in 3/4 time, but the rest in measure 33 seems to betaking 4 beats - I get a bar check failed and there are one two rests in measure 34, and an extra measure is inserted at the end. What am I doing wrong? r1 is a whole-note (4/4) rest. R1*3/4 or R2. is a whole measure rest in ¾ time. As you have identified, you can use “r2.” to get a ¾ note rest. This rest will appear in the same note column as the first quarter note in the measure. You can also use “R1*3/4” or “R2.” in ¾ time to get a ¾ note (whole measure) rest. This rest will appear centered in the measure. It is up to you to decide which you want. At any rate, Lilypond has no rest that takes as an argument the number of measures the rest should occupy. All rests, whether whole measure or regular, take as an argument the musical duration of the rest. HTH, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
> The song is in 3/4 time, but the rest in measure 33 seems to betaking 4 beats > - I get a bar check failed and there are one two rests in measure 34, and an > extra measure is inserted at the end. > > What am I doing wrong? > > The offending r1 is on the 3rd line of the first branch of the alternative > below - and if I change that r1 to “r4 r4 r4”, or to “r2.”, the issue goes > away. Lilypond is right, r1 is 4 beats long. What you probably want is r1*3/4 or most likely (and better) R1*3/4 instead of r1. Kind regards, Michael -- Michael Gerdau email: m...@qata.de GPG-keys available on request or at public keyserver ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Puzzled about r1 issue in 3/4 time
Am 23.10.19 um 21:59 schrieb Michael Wagner: I am seeing some behavior I don’t understand. I have ended the music for “Silver Bells” into lilypond, and I am seeing a puzzling error. The song is in 3/4 time, but the rest in measure 33 seems to betaking 4 beats - I get a bar check failed and there are one two rests in measure 34, and an extra measure is inserted at the end. What am I doing wrong? “r1” means a whole (=4/4) rest, not a whole measure rest. The offending r1 is on the 3rd line of the first branch of the alternative below - and if I change that r1 to “r4 r4 r4”, or to “r2.”, the issue goes away. Yes, “r2.” has the correct length. But you probably wanted to follow the engraving rule (as you should) and have a whole rest *symbol*. For that you have to tell LilyPond that it’s a *full measure* rest by using a capital R: “R2.” LilyPond will then use the correct symbol and center it horizontally. You can read about full measure and multi measure rests here: http://lilypond.org/doc/v2.19/Documentation/notation/writing-rests#full-measure-rests ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Puzzled about r1 issue in 3/4 time
I am seeing some behavior I don’t understand. I have ended the music for “Silver Bells” into lilypond, and I am seeing a puzzling error. The song is in 3/4 time, but the rest in measure 33 seems to betaking 4 beats - I get a bar check failed and there are one two rests in measure 34, and an extra measure is inserted at the end. What am I doing wrong? The offending r1 is on the 3rd line of the first branch of the alternative below - and if I change that r1 to “r4 r4 r4”, or to “r2.”, the issue goes away. \version "2.18.2" \include "predefined-guitar-fretboards.ly" \language "english" \header { title = "Silver Bells" composer = \markup \column \center-align { "Music and Words by" "JAY LIVINGSTON and" "RAY EVANS" } arranger = "" poet = "" } \paper { #(set-paper-size "letter") } global = { \autoBeamOff \numericTimeSignature \time 3/4 \key bf \major \tempo "Moderately and Tenderly" } melody = \relative c' { \global \partial 4 { g'8 bf8 } \repeat volta 2 { f4 d4 bf'8 g8 | f4 d4 d'8 c8 | bf4 g4 g4 | \break g2 c8 bf 8 | a4 f4 e4 | ef?4 f4. ef8 | ef4 d2~ | \break d4 r4 bf'8 g8 | f4 d4 bf'8 g8 | f4 d4 d'8 c8 | bf4 g4 g4 | \break g2 c8 bf8 | a4 f4 e4 | ef?4 f4 c'4 | bf2.~ | \break bf2. | d,8 ef8 f2~ | f2. | g8 a8 bf2~ | \break bf2. | a4 a4 bf4 | c2 bf8 a8 | bf4 f2~ | \break f2 r4 | d8 ef8 f2~ | f2. | g8 a8 bf2~ | \break bf2. | a4 a4 bf4 | c4 bf4 a4 | \break } \alternative { { bf2.~ | bf2 r4 | r1 | r4 r4 bf8 g8 | \break } { bf2.~ | bf2. | r1 | r1 \bar "|." } } \tuplet 3/2 {} } first_verse = \lyricmode { Ci -- ty side -- walks, bus -- y side -- walks dressed in hol -- i -- day style. In the air there's a feel -- ing of Christ -- mas. __ Child -- ren laugh -- ing, peo -- ple pass -- ing, meet -- ing smile af -- ter smile, And on ev -- 'ry street cor -- ner you hear: __ Sil -- ver bells, __ sil -- ver bells, __ It's Christ -- mas time in the city -- y. Ring -- a -- ling, __hear them ring, __ Soon it will be Christ -- mas day. __ Strings of day. __ } second_verse = \lyricmode { " " " " street lights, ev -- en stop lights blink red and green, As the shop -- pers rush home with their treas -- ures. __ Hear the snow crunch, see the kids bunch, this is Santa's big scene, And a -- bove all this bus -- tle you hear: } transposed = \transpose c' c { \clef bass \melody } \score { << %\new Staff { \melody } \new Staff \with { instrumentName = "Basoon "} { \transposed } \addlyrics { \first_verse } \addlyrics { \second_verse } >> \layout { } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts.cache
Hi David, thanks a lot! > Technically, I think that's .lilypond-fonts.cache-2 which means, of > course, that it's a "hidden" dotfile. Of course, the missing dot was just a typo. >> I currently use a symlink (on Ubuntu, ext3 file system) and that seems >> to work. But can I change it somewhere else? > > A quick search of a locally installed version throws up this file: > > $ cat ~/lilypond-2.19.83-1.linux-64/lilypond/usr/etc/fonts/local.conf Thank you! I will try and change the path in this file. > I don't know where the distribution-supplied version keeps its font > cache; perhaps in /var/cache/… though I don't see any feta or > emmentaler therein. The system font cache seems to be in /var/cache/fontconfig. > I also don't know where you prefer them to go (local ones). > My own preference would be in ~/.cache/lilypond/…, > .cache/ being where most applications seem to be moving their > cached data to, in a similar manner to their configuration > directories migrating to .config/ over time. Much tidier. That was my intention. LilyPond is one of the few programs still using a top-level dotfile (folder). I will try ~/.cache/lilypond/fontconfig as new path. Cheers Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user