Harm, thank you very much for the tip! Cheers, Pierre Le dim. 12 juil. 2020 à 10:31, Thomas Morley <[email protected]> a écrit :
> Am So., 12. Juli 2020 um 06:22 Uhr schrieb Pierre Perol-Schneider > <[email protected]>: > > > > Hi Tomthy, > > Thanks but no. This gives me access to the paper defs, ok, not the > actual system spacing inside the markup score. > > Cheers, > > Pierre > > > > Le sam. 11 juil. 2020 à 22:47, Timothy Lanfear <[email protected]> a > écrit : > >> > >> On 11/07/2020 08:44, Pierre Perol-Schneider wrote: > >> > Hi List, > >> > > >> > How can I access the paper defs in a markup score? > >> > E.g. system-system-spacing? > >> > > >> How about something like this? > >> > >> \version "2.20.0" > >> > >> \paper { > >> system-system-spacing.basic-distance = 5 > >> } > >> > >> \markup { > >> \score { > >> \new Staff { \repeat unfold 10 { c' d' e' f' } g' \bar "|." } > >> #(newline) > >> #(display (cdr (assoc 'basic-distance (ly:output-def-lookup > >> $defaultpaper 'system-system-spacing)))) > >> \layout { > >> system-count = 3 > >> line-width = 90 > >> \context { \Score \override BarNumber.font-size = #-4 } > >> \context { \Staff \magnifyStaff #5/8 } > >> } > >> } > >> } > >> > >> > >> > >> -- > >> Timothy Lanfear, Bristol, UK. > >> > >> > > Hi Pierre, > > internally the markup-list-command `score-lines' transforms the given > score into a list of stencils. > The markup-command `score' calls `score-lines' and via > `stack-stencils' said list of stencils is spaced vertically. > > The list of stencils itself contains no spacing-information. Spacing > in the markup-command `score' depends on `baseline-skip. > As for every multiline markup, like \column, flexible vertical spacing > \paper variables are ignored. > > To mimic system-system-spacing.basic-distance = 15 you could do > > \markup { > \override #'(baseline-skip . 9.5) > \score { > \new Staff { \repeat unfold 10 { c' d' e' f' } g' \bar "|." } > \layout { > system-count = 3 > line-width = 90 > \context { \Score \override BarNumber.font-size = #-4 } > \context { \Staff \magnifyStaff #5/8 } > } > } > } > > Alas, system-system-spacing is a _flexible_ setting, baseline-skip not. > > Cheers, > Harm >
