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
}

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to