Re: reminder accidental
Hi Mark, I can only speculate what your problem was. But in case it was the order of ' ! ? 4 etc. This is why I put one possible fixed order of note entry elements here on my cheat sheet (upper right): http://joramberger.de/files/lilypond_sheet_2.18_en.svg http://joramberger.de/files/lilypond_sheet_2.18_en.pdf Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: reminder accidental
Arron, Got it. Thank you! Mark -Original Message- From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Aaron Hill Sent: Sunday, November 25, 2018 4:42 PM To: lilypond-user@gnu.org Subject: Re: reminder accidental On 2018-11-25 4:30 pm, Mark Stephen Mrotek wrote: > Under 2.18 a reminder accidental could be created with an "!" > (exclamation > point). > > In 2.19 I cannot use the command and cannot find an alternative - > except automatic. > > Am I missing something? Do you have a MWE? Also would you confirm which 2.19.xx? As far as I can see, reminder (!) and cautionary (?) accidentals are working. Just tested this on LilyBin (2.19.55 is the latest unstable on that site): \version "2.19.55" { c' cis' d' cis'! } -- Aaron Hill ___ 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: reminder accidental
Joram, Thank you. Got it. Mark -Original Message- From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Noeck Sent: Sunday, November 25, 2018 4:41 PM To: lilypond-user@gnu.org Subject: Re: reminder accidental Hi Mark, do you have a minimal example? This works for my with 2.19.80: \version "2.19.80" { \key d \major fis' fis'! fis' fis'? } Cheers, Joram ___ 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: reminder accidental
On 2018-11-25 4:30 pm, Mark Stephen Mrotek wrote: Under 2.18 a reminder accidental could be created with an "!" (exclamation point). In 2.19 I cannot use the command and cannot find an alternative - except automatic. Am I missing something? Do you have a MWE? Also would you confirm which 2.19.xx? As far as I can see, reminder (!) and cautionary (?) accidentals are working. Just tested this on LilyBin (2.19.55 is the latest unstable on that site): \version "2.19.55" { c' cis' d' cis'! } -- Aaron Hill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: reminder accidental
Hi Mark, do you have a minimal example? This works for my with 2.19.80: \version "2.19.80" { \key d \major fis' fis'! fis' fis'? } Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
reminder accidental
Hello, Under 2.18 a reminder accidental could be created with an "!" (exclamation point). In 2.19 I cannot use the command and cannot find an alternative - except automatic. Am I missing something? Thank you, Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spacing issue after Mark and TextScript
-Original Message- From: Thomas Morley To: Phil Holmes CC: David Sumbler , Pedro Pessoa < pedrops...@gmail.com>, lilypond-user Subject: Re: Spacing issue after Mark and TextScript Date: Sun, 25 Nov 2018 17:38:31 +0100 Am So., 25. Nov. 2018 um 16:09 Uhr schrieb Phil Holmes < m...@philholmes.net>: > > - Original Message - > From: "David Sumbler" > > > The parameters NonMusicalPaperColumn and suchlike have long been a > > mystery to me. If it can be done reasonably succinctly, could you > > perhaps explain what NonMusicalPaperColumn.keep-inside-line #'() > > and > > PaperColumn.keep-inside-line #'() actually do? > > > > David > > > The old NR says: > > Checking to make sure that text scripts and lyrics are within the > margins > requires additional > calculations. In cases where slightly faster performance is desired, > use > > \override Score.PaperColumn #'keep-inside-line = ##f > > and > > keep-inside-line (boolean) > If set, this column cannot have objects sticking into the margin. > > Hope that makes sense. > > -- > Phil Holmes > To illustrate what Phil wrote, compile the following code with and without the relevant overrides: \score { << { \repeat unfold 16 { c'4 \noBreak } \tempo "Allegro molto, ma non troppo" c' \repeat unfold 31 c'4 } \new Lyrics \lyricmode { \repeat unfold 19 xy whateverlongtext \repeat unfold 28 xy } >> \layout { \context { \Score \override NonMusicalPaperColumn.keep-inside-line = #'() \override PaperColumn.keep-inside-line = #'() } } } Though I think there's a bug somewhere. Play around with the code below. I made it so, that you only need to change one numeric value in the function call, i.e. increase the 0.00 in \addScore #(+ 64.25 0.00) As soon as 0.01 is chosen the StaffSymbol's extent is increased although there's really no need for (larger numbers make it more obvious). I suspect the extents of TextScript and Mark are _added_, whereas one should take the _maximum_ of both. Maybe some confusing happens because TextScript is usually in PaperColumn's elements whereas the others are in the NonMusicalPaperColumn's elements, but here I'm really guessing... Interestingly the value 64.25 is very close to half of the line-width plus left/right-margin-_default_ (not the scaled left/right-margin). But here the code for testing: \version "2.19.82" %% A boxed stencil with settable width, for Mark and TextScript #(define (x-var-stil x) (box-stencil (ly:make-stencil '() (cons 0 x) '(-1 . 1)) 0 0)) %% A procedure to display StaffSymbol.stencil, line-width, %% left- and right-margin #(define print-staff-symbol-stil-length (lambda (staff-symbol) (format #t "\n\tStaffSymbol.stencil has length: ~a \tline-width is: ~a \tleft-margin is: ~a \trightmargin is: ~a\n" (interval-length (ly:stencil-extent (ly:staff-symbol::print staff-symbol) X)) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'line-width) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'left-margin) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'right- margin %% A void function adding a score to current book. The score has a %% RehearsalMark and a TextScript. Those grobs stencil-width are set by the %% 'val'-argument. addScore = #(define-void-function (val)(number?) (add-score #{ \score { { \mark \default c'1 _"" \noBreak 1 1 } \layout { indent = 0 \context { \Score \omit BarNumber \override RehearsalMark.stencil = #(x-var-stil val) %\override NonMusicalPaperColumn.keep-inside-line = #'() %\override PaperColumn.keep-inside-line = #'() } \context { \Staff \override StaffSymbol.after-line-breaking = #print-staff-symbol-stil-length } \context { \Voice \textLengthOn \override TextScript.stencil = #(x-var-stil val) } } } #})) \addScore #(+ 64.25 0.00) Anyone with further insights? Cheers, Harm * I have often wondered what the "Column" in PaperColumn etc. refers to. Now I understand that it refers to all the objects within a line of a score. The keep-inside-line parameter is a boolean, which defaults to #t. But I find myself somewhat confused. In the above code, if the keep- inside-line override is commented out, or if keep-inside-line is set to ##t (which is in any case the default), the staff extends beyond the right-hand margin. If keep-inside-line is set to ##f or #'(), the staff conforms to the margins. This is contrary to what one would expect from NR 1.8.1, 2.1.2 and A18. It is also the exact opposite of what the name "keep-inside-line" suggests: a better name would seem to be "allow-outside-margin". Also I note that in this particular case, changing NonMusicalPaperColumn.keep-inside-line has no effect. Only PaperColumn.keep-inside-line affects the output. Does NonMusicalPaperColumn perhaps do the same job for
Re: Spacing issue after Mark and TextScript
Am So., 25. Nov. 2018 um 16:09 Uhr schrieb Phil Holmes : > > - Original Message - > From: "David Sumbler" > > > The parameters NonMusicalPaperColumn and suchlike have long been a > > mystery to me. If it can be done reasonably succinctly, could you > > perhaps explain what NonMusicalPaperColumn.keep-inside-line #'() and > > PaperColumn.keep-inside-line #'() actually do? > > > > David > > > The old NR says: > > Checking to make sure that text scripts and lyrics are within the margins > requires additional > calculations. In cases where slightly faster performance is desired, use > > \override Score.PaperColumn #'keep-inside-line = ##f > > and > > keep-inside-line (boolean) > If set, this column cannot have objects sticking into the margin. > > Hope that makes sense. > > -- > Phil Holmes > To illustrate what Phil wrote, compile the following code with and without the relevant overrides: \score { << { \repeat unfold 16 { c'4 \noBreak } \tempo "Allegro molto, ma non troppo" c' \repeat unfold 31 c'4 } \new Lyrics \lyricmode { \repeat unfold 19 xy whateverlongtext \repeat unfold 28 xy } >> \layout { \context { \Score \override NonMusicalPaperColumn.keep-inside-line = #'() \override PaperColumn.keep-inside-line = #'() } } } Though I think there's a bug somewhere. Play around with the code below. I made it so, that you only need to change one numeric value in the function call, i.e. increase the 0.00 in \addScore #(+ 64.25 0.00) As soon as 0.01 is chosen the StaffSymbol's extent is increased although there's really no need for (larger numbers make it more obvious). I suspect the extents of TextScript and Mark are _added_, whereas one should take the _maximum_ of both. Maybe some confusing happens because TextScript is usually in PaperColumn's elements whereas the others are in the NonMusicalPaperColumn's elements, but here I'm really guessing... Interestingly the value 64.25 is very close to half of the line-width plus left/right-margin-_default_ (not the scaled left/right-margin). But here the code for testing: \version "2.19.82" %% A boxed stencil with settable width, for Mark and TextScript #(define (x-var-stil x) (box-stencil (ly:make-stencil '() (cons 0 x) '(-1 . 1)) 0 0)) %% A procedure to display StaffSymbol.stencil, line-width, %% left- and right-margin #(define print-staff-symbol-stil-length (lambda (staff-symbol) (format #t "\n\tStaffSymbol.stencil has length: ~a \tline-width is: ~a \tleft-margin is: ~a \trightmargin is: ~a\n" (interval-length (ly:stencil-extent (ly:staff-symbol::print staff-symbol) X)) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'line-width) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'left-margin) (ly:output-def-lookup (ly:grob-layout staff-symbol) 'right-margin %% A void function adding a score to current book. The score has a %% RehearsalMark and a TextScript. Those grobs stencil-width are set by the %% 'val'-argument. addScore = #(define-void-function (val)(number?) (add-score #{ \score { { \mark \default c'1 _"" \noBreak 1 1 } \layout { indent = 0 \context { \Score \omit BarNumber \override RehearsalMark.stencil = #(x-var-stil val) %\override NonMusicalPaperColumn.keep-inside-line = #'() %\override PaperColumn.keep-inside-line = #'() } \context { \Staff \override StaffSymbol.after-line-breaking = #print-staff-symbol-stil-length } \context { \Voice \textLengthOn \override TextScript.stencil = #(x-var-stil val) } } } #})) \addScore #(+ 64.25 0.00) Anyone with further insights? Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spacing issue after Mark and TextScript
- Original Message - From: "David Sumbler" The parameters NonMusicalPaperColumn and suchlike have long been a mystery to me. If it can be done reasonably succinctly, could you perhaps explain what NonMusicalPaperColumn.keep-inside-line #'() and PaperColumn.keep-inside-line #'() actually do? David The old NR says: Checking to make sure that text scripts and lyrics are within the margins requires additional calculations. In cases where slightly faster performance is desired, use \override Score.PaperColumn #'keep-inside-line = ##f and keep-inside-line (boolean) If set, this column cannot have objects sticking into the margin. Hope that makes sense. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spacing issue after Mark and TextScript
-Original Message- From: Thomas Morley To: David Sumbler CC: pedrops...@gmail.com, lilypond-user Subject: Re: Spacing issue after Mark and TextScript Date: Sat, 24 Nov 2018 22:28:06 +0100 Am Fr., 23. Nov. 2018 um 15:28 Uhr schrieb David Sumbler < da...@aeolia.co.uk>: > > -Original Message- > From: David Sumbler > Reply > -To: da...@aeolia.co.uk > To: lilypond-user@gnu.org > Subject: Spacing issue after Mark and TextScript > Date: Wed, 21 Nov 2018 12:24:29 + > > %%% > \version "2.19.81" > > #(set-global-staff-size 12) > > indent = #0 > > { \textLengthOn > \time 5/4 > r2 r4. > \override Score.RehearsalMark.self-alignment-X = #-1 > \override Score.RehearsalMark.font-size = #5 > \mark \markup {"After the thirty-third encore, the Emperor arose."} > \hide TextScript > r8\fermata_"m" > r4 | > %%% \noBreak > R4*5 | R4*5 | R4*5 | > } > %%% > > When the above is compiled, the spacing for notes/rests after the > Mark > and TextScript is increased. This becomes even more obvious if > \noBreak is uncommented: the final crotchet rest of the first bar and > the whole bar rest of the second now take up so much horizontal space > that the line runs outside of the right-hand margin, as is shown in > the > attached image. Meanwhile the rests at the start of the first bar > are > squashed together to make room for the unnecessary empty spaces later > in the line. Things are restored to normal after a line break. > > If I remove either the RehearsalMark or the TextScript, the problem > disappears. The purpose of the textscript is to prevent the crotchet > rest appearing before the "Mark" is finished. > > I have used the same kind of structure in numerous other places in > this > piece without problems, and despite nearly a day of experimentation I > can't see why this case behaves differently. (There are reasons for > presenting these texts as Marks rather than Text attached to a rest, > but they are not relevant to the problem.) > > Any suggestions? Is there perhaps a way of resetting the spacing > parameters to something sensible? > > David > > -Original Message- > From: Pedro Pessoa > To: lilypond-user@gnu.org > Subject: Re: Spacing issue after Mark and TextScript > Date: Wed, 21 Nov 2018 09:26:42 -0700 (MST) > > Hey David. Not sure if I got how you want it to be, but - with the > \nobreak > uncommented) - if you add tree more m's to the TextScript, it > produces > something which looks right. Don't know why. > > Pessoa > > mailing_Spacing_issue_after_Mark_and_TextScript.png > < > http://lilypond.1069038.n5.nabble.com/file/t5699/mailing_Spacing_issue_after_Mark_and_TextScript.png> > ; > > -- > > > True - it looks as if the spacing text (the ""-s) needs to be as > far as possible exactly the same length as the TextScript. > > But add even one more "m" and the right-hand end of the staff is > again > noticeably beyond the right margin. > > And even with the "correct" number of "m"s, so that the end of the > line > appears in (roughly?) the right place, the rests at the beginning of > the line are ridiculously compressed together. The space give to the > crotchet rest at the end of the bar is far greater than that allowed > for the dotted crotchet earlier in the same bar. > > Does anyone have any idea what is going on here? > > David I noticed with version 2.12.3 the output is as desired. Then I identified the first commit which changes the behaviour. First bad commit is: commit 53db923e715126eb9463220526b4838fbfd3dad4 Author: Andrew Hawryluk Date: Sat Jan 15 13:42:03 2011 -0700 Change keep-inside-line defaults to true. As discussed in Issue #1470, the default should be changed so that good layout with a slight performance hit is the default. https://sourceforge.net/p/testlilyissues/issues/1470/ https://codereview.appspot.com/4243041/ Which is LilyPond-version 2.13.52 Tbh, I never noticed bad behaviour caused by this patch before. I suspect something rotten is present elsewhere, though I've no clue what it might be or where to look... Nevertheless, you could revert the settings done by this patch globally with: \layout { \context { \Score \override NonMusicalPaperColumn.keep-inside-line = #'() \override PaperColumn.keep-inside-line = #'() } } This may have some unwanted effects, though. Less invasive would be: #(set-global-staff-size 12) indent = #0 { \textLengthOn \time 5/4 r2 r4. \overrideProperty Score.NonMusicalPaperColumn.keep-inside-line #'() \overrideProperty Score.PaperColumn.keep-inside-line #'() \override Score.RehearsalMark.self-alignment-X = #-1 \override Score.RehearsalMark.font-size = #4 \mark \markup {"After the thirty-third encore, the Emperor arose."} \hide TextScript r8\fermata_"m" r4 | \noBreak R4*5 | R4*5 | R4*5 | } HTH, Harm