On Fri, Sep 3, 2021 at 11:22 AM Richard Shann <rich...@rshann.plus.com> wrote:
> > Thank you! Previously I just hard-coded values for A4 paper but I > > would > > like to do it properly this time. I notice (peeking in scm/paper.scm) > > that there is a Scheme symbol staff-space that holds this value, but > > I > > don't suppose there is a documented way of retrieving this value - > > someone writing Lilypond by hand would not need it. In practice the > > name is good enough I guess... > > No sooner have I written that than I found a heap of documentation > ("internals") in which was: > > staff-space (dimension, in staff space) > > Amount of space between staff lines, expressed in global staff- > space. > > Not that this makes much sense - dimension, in staff space ... staff- > space expressed in global staff-space? This is normally 1.0, but if you have a book where some scores have a differently sized staff, they will have a smaller number there. IIRC, we scale up/down the units so they are expressed in staff space, so if you do (ly:output-def-lookup paper 'mm) you'd get 1mm expressed in staff space -- Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen