|
From: | Stephen MacNeil |
Subject: | RE: Placing a section name at the start of a staff |
Date: | Sun, 8 May 2016 22:34:10 -0400 |
\version "2.18.2"
\paper {
indent = 0
left-margin = 15
}
A = \relative c' {
\set Staff.instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "A"}
c d e f
}
B = \relative c'' {
\set Staff.instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "B"}
g a b c
}
\score { \A }
\score { \B }
C = \relative c' {
c d e f
}
D = \relative c'' {
g a b c
}
% Or
\score {
\new Staff \with {
instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "C"}
}
{ \C }
}
\score {
\new Staff \with {
instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "D"}
}
{ \D }
}
% Together
\score {
\new Staff \with {
instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "C D"}
}
{ \C \D }
}
% Also
E = \relative c' {
\set Staff.instrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "E"}
c d e f \break
\set Staff.shortInstrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "E.1"}
g a b c \break
\set Staff.shortInstrumentName = \markup {\halign #-2 \box \fontsize #5 \pad-around #.5 \bold "E.2"}
b a g f
}
\score {
\E
\layout{
\context {
\Score
\remove "Bar_number_engraver"
}
}
}
%%%%%%%%%%%%%%%%%%
HTH
Stephen
[Prev in Thread] | Current Thread | [Next in Thread] |