2016-10-18 22:39 GMT+02:00 Stanton Sanderson <stans...@gmail.com>:
> The following also works:
>
> \version "2.19.47"
> \paper {
>       #(layout-set-absolute-staff-size (* 19 pt))
> }
> { <c'' e'' g''> }

This also seems to work (although I don't know if it makes sense, I
just took set-global-staff-size and removed bits of it):

\version "2.19.47"
#(define-public (new-layout-set-staff-size sz)
   (layout-set-absolute-staff-size-in-module
    (ly:output-def-scope (ly:parser-lookup '$defaultpaper))
    (* (eval 'pt (current-module)) sz)))
\score{
  \layout { #(new-layout-set-staff-size 19) }
  { <c'' e'' g''> }
}

(Which maybe means that line 118 in paper.scm is not paranoid, see
comment above that line:
http://git.savannah.gnu.org/cgit/lilypond.git/tree/scm/paper.scm#n113 :D)

But I probably don't understand what's going on in
(ly:output-def-scope (ly:parser-lookup '$defaultpaper)), because I
would have expected the following to produce wrong first and third
chords and correct second chord.

\version "2.19.47"
#(define-public (new-layout-set-staff-size sz)
   (layout-set-absolute-staff-size-in-module
    (ly:output-def-scope (ly:parser-lookup '$defaultpaper))
    (* (eval 'pt (current-module)) sz)))
\score{
  \layout { #(layout-set-staff-size 19) }
  { <c'' e'' g''> }
}
\score{
  \layout { #(new-layout-set-staff-size 19) }
  { <c'' e'' g''> }
}
\score{
  \layout { #(layout-set-staff-size 19) }
  { <c'' e'' g''> }
}

Instead all chords are correct.
But if you change the size of the middle one to something different
from 19, then the first and third chords are wrong.

Best wishes.
Davide

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to