lilypond-user
[Top][All Lists]
Advanced

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

Re: Tempo declaration on different staves


From: Kieren MacMillan
Subject: Re: Tempo declaration on different staves
Date: Tue, 18 Sep 2018 15:10:45 -0400

Hi Bernhard,

> Please show me how to deal with different tempo declarations on different 
> staves.

Here’s one way. (Note that I also <<>>'ed the \global variable into each 
*staff* context in the score, rather than into each note variable definition; 
personally, I think that is better coding style, for many reasons.)

Hope this helps!
Kieren.

\version "2.19.80"
\language "deutsch"

\header {
  % Voreingestellte LilyPond-Tagline entfernen
  tagline = ##f
}

\paper { #(set-paper-size "a4") }

global = {
  \key c \major
  \time 4/4
  \tempo 4=96
}

soprano = \relative c'' {
  c
}

alto = \relative c' {
}

tenor = \relative c' {
  c
}

bass = \relative c {
}

verse = \lyricmode { test }

right = \relative c'' {
  c
}

left = \relative c' {
  \clef bass
  c
}

pedal = \relative c {
  \clef bass
  c
}

choirPart = \new ChoirStaff <<
  \new Staff \with {
    \consists "Metronome_mark_engraver"
    instrumentName = \markup \center-column { "Sopran" "Alt" }
  } <<
    \new Voice = "soprano" << \global { \voiceOne \soprano } >>
    \new Voice = "alto"<< \global  { \voiceTwo \alto } >>
  >>
  \new Lyrics \with {
    \override VerticalAxisGroup #'staff-affinity = #CENTER
  } \lyricsto "soprano" \verse
  \new Staff \with {
    instrumentName = \markup \center-column { "Tenor" "Bass" }
  } <<
    \clef bass
    \new Voice = "tenor" << \global { \voiceOne \tenor } >>
    \new Voice = "bass" << \global { \voiceTwo \bass } >>
  >>
>>


organPart = <<
  \new PianoStaff \with {
    instrumentName = "Orgel"
    shortInstrumentName = "Org."
  } <<
    \new Staff = "right" \with { \consists "Metronome_mark_engraver" } << 
\global \right >>
    \new Staff = "left" << \global \left >>
    \new Staff = "pedal" << \global \pedal >>
  >>
>>


\score {
  <<
    \choirPart
    \organPart
  >>
  \layout {
    \context {
      \Score
      \remove "Metronome_mark_engraver"
    }
  }
}
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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