lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spacing issue with magnifyStaff


From: Malte Meyn
Subject: Re: Spacing issue with magnifyStaff
Date: Mon, 3 Sep 2018 18:35:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0



Am 03.09.18 um 18:28 schrieb foxfanfare:
Is it possible to include those parameters in a small variable that I can
call in all my projects? Something like

smallInstrument = {
         fontSize = #(magnification->font-size 4/7)
         \override StaffSymbol.staff-space = #4/7
}


***
\new Staff \with {
         \smallInstrument
}

... but this doesn't work!
smallInstrument = \with { … }

should do the trick :) Also, if you need that often, you can define another context SmallStaff and use \new SmallStaff:

\layout {
  \context {
    \Staff
    \name "SmallStaff"
    \alias "Staff"
    fontSize = #(magnification->font-size 4/7)
    \override StaffSymbol.staff-space = #4/<
  }
  \context {
    \Score
    \accepts "SmallStaff"
  }
  \context {
    \StaffGroup
    \accepts "SmallStaff"
  }
  %% add more of these blocks with \accept if you need
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]