lilypond-user
[Top][All Lists]
Advanced

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

RE: Placing a section name at the start of a staff


From: Stephen MacNeil
Subject: RE: Placing a section name at the start of a staff
Date: Sun, 8 May 2016 22:34:10 -0400

There are several ways I do this, I use this for students a lot

here are a few ways to achieve this

%%%%%%%%%%%%%%%%%

\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



reply via email to

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