lilypond-user
[Top][All Lists]
Advanced

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

Re: Temporary pedal bar


From: Lukas-Fabian Moser
Subject: Re: Temporary pedal bar
Date: Sun, 4 Nov 2018 13:05:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Hi Gert,

Am 03.11.18 um 14:18 schrieb Torsten Hämmerle:
Gert Koetsier wrote
How can I add a temporary pedal bar
Hi Gert,

I suppose you're talking about a temporary stave.
The following snippet should solve your problem:
Adding an extra staff
<http://lilypond.org/doc/v2.18/Documentation/snippets/staff-notation#staff-notation-adding-an-extra-staff>

You can create additional staves anywhere by just adding a \new Staff in a
(temporary) parallel context (i.e. in << >>).

In addition, if you do not mind having the extra staff always for a whole system (which probably doesn't make much of a difference space-wise), it's probably even easier to just add an extra staff from the beginning and use \Remove[All]EmptyStaves:

\version "2.19.80"

<<
  \new PianoStaff \with { instrumentName = "Manual" } <<
    \new Staff { \repeat unfold 180 c''4 }
    \new Staff { \clef bass \repeat unfold 180 c4 }
  >>
  \new Staff \with {
    instrumentName = "Pedal"
    shortInstrumentName = "Ped."
    \RemoveAllEmptyStaves
    % alternatively, if you want to indicate right from the start the a pedal staff is coming up somewhere:
    % \RemoveEmptyStaves
  } {
    \clef bass
    R1*25
    \repeat unfold 12 c4
    R1*10
  }
>>

Best
Lukas




reply via email to

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