Re: repeat barline after fine double-barline
Good points, Aaron, thank you. -Ahanu On Sat, May 1, 2021, 22:35 Aaron Hill wrote: > On 2021-05-01 5:56 pm, Ahanu Banerjee wrote: > > Here you go: > > > > \version "2.20.0" > > { \defineBarLine "xyz" #'("|." ".|:" "") > > \repeat unfold 7 c' > > c'-\tweak X-offset #5 _\markup \bold \italic "Fine" > > \bar "xyz" \break > > \repeat unfold 7 c' c'_\markup \bold \italic "D.C. al Fine" > > \bar ":|." } > > To follow convention, you could name the custom bar ".|:-|.". > > Also, you probably want to specify the spanning type as well: > > > \defineBarLine ".|:-|." #'("|." ".|:" ".|") > > > That makes it more closely match the existing ".|:-||" as defined in > bar-line.scm: > > > (define-bar-line ".|:-||" "||" ".|:" ".|") > > > > -- Aaron Hill >
Re: repeat barline after fine double-barline
On 2021-05-01 5:56 pm, Ahanu Banerjee wrote: Here you go: \version "2.20.0" { \defineBarLine "xyz" #'("|." ".|:" "") \repeat unfold 7 c' c'-\tweak X-offset #5 _\markup \bold \italic "Fine" \bar "xyz" \break \repeat unfold 7 c' c'_\markup \bold \italic "D.C. al Fine" \bar ":|." } To follow convention, you could name the custom bar ".|:-|.". Also, you probably want to specify the spanning type as well: \defineBarLine ".|:-|." #'("|." ".|:" ".|") That makes it more closely match the existing ".|:-||" as defined in bar-line.scm: (define-bar-line ".|:-||" "||" ".|:" ".|") -- Aaron Hill
Re: repeat barline after fine double-barline
Thank you! Ken On Sat, May 1, 2021 at 5:57 PM Ahanu Banerjee wrote: > > Here you go: > > \version "2.20.0" > { \defineBarLine "xyz" #'("|." ".|:" "") > \repeat unfold 7 c' > c'-\tweak X-offset #5 _\markup \bold \italic "Fine" > \bar "xyz" \break > \repeat unfold 7 c' c'_\markup \bold \italic "D.C. al Fine" > \bar ":|." } > > -Ahanu > > > On Sat, May 1, 2021 at 8:50 PM Kenneth Wolcott > wrote: >> >> Hi Ahanu; >> >> Please post the working code snippet so that I can learn from your >> trial and error and perhaps improve my engravings as a result. >> >> Thanks, >> Ken Wolcott >> >> On Sat, May 1, 2021 at 5:44 PM Ahanu Banerjee wrote: >> > >> > [SOLVED] >> > >> > I was able to figure it out using \defineBarLine. >> > >> > Thanks, >> > -Ahanu >> > >> > >> > On Sat, May 1, 2021 at 8:29 PM Ahanu Banerjee wrote: >> >> >> >> The "Fine" would occur at the line break, thus requiring "|." at the end >> >> of the first line and ".|:" at the beginning of the next line. >> >> >> >> Thanks, >> >> -Ahanu >> >> >> >> On Sat, May 1, 2021, 20:26 Mark Stephen Mrotek >> >> wrote: >> >>> >> >>> Ahanu, >> >>> >> >>> >> >>> >> >>> Where is the “Fine”? >> >>> >> >>> >> >>> >> >>> Mark >> >>> >> >>> >> >>> >> >>> From: lilypond-user >> >>> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of >> >>> Ahanu Banerjee >> >>> Sent: Saturday, May 1, 2021 3:29 PM >> >>> To: lilypond-user@gnu.org >> >>> Subject: repeat barline after fine double-barline >> >>> >> >>> >> >>> >> >>> Hi, >> >>> >> >>> As per the subject line, I am trying to get a "repeat" (".|:") barline >> >>> after a "Fine", which has a bold double-barline ("|.") at the end of a >> >>> line. >> >>> >> >>> The closest I have found in documentation is ".|:-||", which yields >> >>> "||", not "|.", at the line break. >> >>> >> >>> >> >>> >> >>> Example: >> >>> >> >>> \version "2.20.0" >> >>> >> >>> { \repeat unfold 8 c' \bar ".|:-||" \break >> >>> >> >>> \repeat unfold 8 c' \bar ":|." } >> >>> >> >>> >> >>> >> >>> Any suggestions would be appreciated. >> >>> >> >>> >> >>> >> >>> Cheers, >> >>> >> >>> -Ahanu
Re: repeat barline after fine double-barline
Here you go: \version "2.20.0" { \defineBarLine "xyz" #'("|." ".|:" "") \repeat unfold 7 c' c'-\tweak X-offset #5 _\markup \bold \italic "Fine" \bar "xyz" \break \repeat unfold 7 c' c'_\markup \bold \italic "D.C. al Fine" \bar ":|." } -Ahanu On Sat, May 1, 2021 at 8:50 PM Kenneth Wolcott wrote: > Hi Ahanu; > > Please post the working code snippet so that I can learn from your > trial and error and perhaps improve my engravings as a result. > > Thanks, > Ken Wolcott > > On Sat, May 1, 2021 at 5:44 PM Ahanu Banerjee wrote: > > > > [SOLVED] > > > > I was able to figure it out using \defineBarLine. > > > > Thanks, > > -Ahanu > > > > > > On Sat, May 1, 2021 at 8:29 PM Ahanu Banerjee > wrote: > >> > >> The "Fine" would occur at the line break, thus requiring "|." at the > end of the first line and ".|:" at the beginning of the next line. > >> > >> Thanks, > >> -Ahanu > >> > >> On Sat, May 1, 2021, 20:26 Mark Stephen Mrotek > wrote: > >>> > >>> Ahanu, > >>> > >>> > >>> > >>> Where is the “Fine”? > >>> > >>> > >>> > >>> Mark > >>> > >>> > >>> > >>> From: lilypond-user [mailto:lilypond-user-bounces+carsonmark= > ca.rr@gnu.org] On Behalf Of Ahanu Banerjee > >>> Sent: Saturday, May 1, 2021 3:29 PM > >>> To: lilypond-user@gnu.org > >>> Subject: repeat barline after fine double-barline > >>> > >>> > >>> > >>> Hi, > >>> > >>> As per the subject line, I am trying to get a "repeat" (".|:") barline > after a "Fine", which has a bold double-barline ("|.") at the end of a line. > >>> > >>> The closest I have found in documentation is ".|:-||", which yields > "||", not "|.", at the line break. > >>> > >>> > >>> > >>> Example: > >>> > >>> \version "2.20.0" > >>> > >>> { \repeat unfold 8 c' \bar ".|:-||" \break > >>> > >>> \repeat unfold 8 c' \bar ":|." } > >>> > >>> > >>> > >>> Any suggestions would be appreciated. > >>> > >>> > >>> > >>> Cheers, > >>> > >>> -Ahanu >
Re: repeat barline after fine double-barline
Hi Ahanu; Please post the working code snippet so that I can learn from your trial and error and perhaps improve my engravings as a result. Thanks, Ken Wolcott On Sat, May 1, 2021 at 5:44 PM Ahanu Banerjee wrote: > > [SOLVED] > > I was able to figure it out using \defineBarLine. > > Thanks, > -Ahanu > > > On Sat, May 1, 2021 at 8:29 PM Ahanu Banerjee wrote: >> >> The "Fine" would occur at the line break, thus requiring "|." at the end of >> the first line and ".|:" at the beginning of the next line. >> >> Thanks, >> -Ahanu >> >> On Sat, May 1, 2021, 20:26 Mark Stephen Mrotek wrote: >>> >>> Ahanu, >>> >>> >>> >>> Where is the “Fine”? >>> >>> >>> >>> Mark >>> >>> >>> >>> From: lilypond-user >>> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of >>> Ahanu Banerjee >>> Sent: Saturday, May 1, 2021 3:29 PM >>> To: lilypond-user@gnu.org >>> Subject: repeat barline after fine double-barline >>> >>> >>> >>> Hi, >>> >>> As per the subject line, I am trying to get a "repeat" (".|:") barline >>> after a "Fine", which has a bold double-barline ("|.") at the end of a line. >>> >>> The closest I have found in documentation is ".|:-||", which yields "||", >>> not "|.", at the line break. >>> >>> >>> >>> Example: >>> >>> \version "2.20.0" >>> >>> { \repeat unfold 8 c' \bar ".|:-||" \break >>> >>> \repeat unfold 8 c' \bar ":|." } >>> >>> >>> >>> Any suggestions would be appreciated. >>> >>> >>> >>> Cheers, >>> >>> -Ahanu
Re: repeat barline after fine double-barline
[SOLVED] I was able to figure it out using \defineBarLine. Thanks, -Ahanu On Sat, May 1, 2021 at 8:29 PM Ahanu Banerjee wrote: > The "Fine" would occur at the line break, thus requiring "|." at the end > of the first line and ".|:" at the beginning of the next line. > > Thanks, > -Ahanu > > On Sat, May 1, 2021, 20:26 Mark Stephen Mrotek > wrote: > >> Ahanu, >> >> >> >> Where is the “Fine”? >> >> >> >> Mark >> >> >> >> *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark= >> ca.rr@gnu.org] *On Behalf Of *Ahanu Banerjee >> *Sent:* Saturday, May 1, 2021 3:29 PM >> *To:* lilypond-user@gnu.org >> *Subject:* repeat barline after fine double-barline >> >> >> >> Hi, >> >> As per the subject line, I am trying to get a "repeat" (".|:") barline >> after a "Fine", which has a bold double-barline ("|.") at the end of a line. >> >> The closest I have found in documentation is ".|:-||", which yields "||", >> not "|.", at the line break. >> >> >> >> Example: >> >> \version "2.20.0" >> >> { \repeat unfold 8 c' \bar ".|:-||" \break >> >> \repeat unfold 8 c' \bar ":|." } >> >> >> >> Any suggestions would be appreciated. >> >> >> >> Cheers, >> >> -Ahanu >> >
Re: repeat barline after fine double-barline
The "Fine" would occur at the line break, thus requiring "|." at the end of the first line and ".|:" at the beginning of the next line. Thanks, -Ahanu On Sat, May 1, 2021, 20:26 Mark Stephen Mrotek wrote: > Ahanu, > > > > Where is the “Fine”? > > > > Mark > > > > *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark= > ca.rr@gnu.org] *On Behalf Of *Ahanu Banerjee > *Sent:* Saturday, May 1, 2021 3:29 PM > *To:* lilypond-user@gnu.org > *Subject:* repeat barline after fine double-barline > > > > Hi, > > As per the subject line, I am trying to get a "repeat" (".|:") barline > after a "Fine", which has a bold double-barline ("|.") at the end of a line. > > The closest I have found in documentation is ".|:-||", which yields "||", > not "|.", at the line break. > > > > Example: > > \version "2.20.0" > > { \repeat unfold 8 c' \bar ".|:-||" \break > > \repeat unfold 8 c' \bar ":|." } > > > > Any suggestions would be appreciated. > > > > Cheers, > > -Ahanu >
RE: repeat barline after fine double-barline
Ahanu, Where is the “Fine”? Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Ahanu Banerjee Sent: Saturday, May 1, 2021 3:29 PM To: lilypond-user@gnu.org Subject: repeat barline after fine double-barline Hi, As per the subject line, I am trying to get a "repeat" (".|:") barline after a "Fine", which has a bold double-barline ("|.") at the end of a line. The closest I have found in documentation is ".|:-||", which yields "||", not "|.", at the line break. Example: \version "2.20.0" { \repeat unfold 8 c' \bar ".|:-||" \break \repeat unfold 8 c' \bar ":|." } Any suggestions would be appreciated. Cheers, -Ahanu
repeat barline after fine double-barline
Hi, As per the subject line, I am trying to get a "repeat" (".|:") barline after a "Fine", which has a bold double-barline ("|.") at the end of a line. The closest I have found in documentation is ".|:-||", which yields "||", not "|.", at the line break. Example: \version "2.20.0" { \repeat unfold 8 c' \bar ".|:-||" \break \repeat unfold 8 c' \bar ":|." } Any suggestions would be appreciated. Cheers, -Ahanu
Re: align system to the right
> \score-lines will take a single score and return a markup list, with each > line in the score as its own markup. o_O I never fail to be (pleasantly) shocked by what Lilypond can (already!) do. Such a great feature to know about — thanks! Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: kie...@kierenmacmillan.info
Re: align system to the right
p.s. That being said… >> I am looking for something like the inverse, ragged-left... That would be a great feature — just not sure how difficult it would be to implement. [Cue Aaron, with some brilliant Scheme engraver that computes the natural width of each system and uses the line-break-system-details #'extra-offset setting to make it happen automagically…] ;) Cheers, Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: kie...@kierenmacmillan.info
Re: align system to the right
On 2021-05-01 7:15 am, Kieren MacMillan wrote: Hi Davi, I am working on this Aperghis score to use as an example of my Abjad library. I wanna have every system aligned to the right. I have in my layout block "ragged-right = ##t". I am looking for something like the inverse, ragged-left... How could I do that? P.S.: I don't wanna use skips. Can each line be a separate score? If so, put each in a \markup, and then right-align all the markups. \score-lines will take a single score and return a markup list, with each line in the score as its own markup. -- Aaron Hill
Re: align system to the right
Hi Davi, > I am working on this Aperghis score to use as an example of my Abjad library. > I wanna have every system aligned to the right. > I have in my layout block "ragged-right = ##t". > I am looking for something like the inverse, ragged-left... > How could I do that? > P.S.: I don't wanna use skips. Can each line be a separate score? If so, put each in a \markup, and then right-align all the markups. Hope that helps! Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: kie...@kierenmacmillan.info
Re: skylines and custom-code
Am Fr., 30. Apr. 2021 um 09:59 Uhr schrieb Jean Abou Samra : > > Le 05/04/2021 à 12:00, Thomas Morley a écrit : > > > Hi Jean, > > > > thanks for your reply, though the situation is more complex than the > > initial minimal. Consider the following: > > > > { b'4\glissando 4 4 4 2 b'' } > > > > The plan is to print a glissando from b' to b'' and at intermediate > > NoteColumns print a Stem starting at the glissando line, i.e. the > > result will be a stemmed Glissando. > > (1) Obviously I need the intersection points of the y-axis of the > > Stems and the Glissando. > > I've coded an engraver to set the relevant pointers (from Stem to > > Glissando) and use some calculations to get them. This work is done. > > (2) Then I intend to move all NoteHeads of intermediate NoteColumns to > > sit on the glissando line, making them transparent (or point-stencil > > or omit the stencil) > > This would have the advantage that LilyPond could do the rest, i.e. > > print Stem, Beam, Script etc accordingly. > > > > Obviously the calculation of the intersection points needs to be done > > after the Glissando is printed, thus a simple override for > > NoteHead.Y-offset will not work, afaict. > > From description in the docs about unpure-pure-containers, this is a > > similar situation as for Beams and needed Stem lengths. > > > > Alas, I never came to grips with unpure-pure-containers. Granted, the > > explanations/descriptions in the docs improved over the years. > > Though, we don't have working coding-examples in the docs, "working" > > in the sense of "let me play with the code, testing what happens if I > > do this and that": > > The example in NR 5.5.6 works with and without unpure-pure-containers. > > The example (sort of) in CG 10.13.3 makes no sense to me, at least I > > found no situation where "bar" is called at all. > > The regtest unpure-pure-container.ly is probably ok as a regtest, it > > shows something is done, but why should a user do that at all. As a > > user I'd say, don't move the flag if you don't want a moved flag... > > > > That's it for the docs or did I overlook something? > > > > Unpure-pure-containers in LSR: zero > > > > Valentin's example works without unpure-pure-container as well. > > > > Thus, I'm at a loss, close to abandoning the work. > > > > Nevertheless, many thanks, > >Harm > > > > P.S. attached an image what works so far (but don't enable skylines) > > One month later ... > > While researching mailing list archives for unrelated purposes, I > stumbled upon this: > > https://lists.gnu.org/archive/html/lilypond-devel/2011-07/msg1.html > > Cheers, > Jean > > Hi Jean, I was aware of Mike's earlier attempt. Trying to access the problem with scheme-only seemed to circumvent some of Han-Wen's concerns. Alas, it looks like we were facing the same problems... Thanks, Harm