lilypond-user
[Top][All Lists]
Advanced

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

Re: Dynamics line above staff


From: Jean Abou Samra
Subject: Re: Dynamics line above staff
Date: Fri, 21 May 2021 14:40:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1



Le 21/05/2021 à 14:23, Bernhard Kleine a écrit :
here is the MWE:

\version "2.21.1"
\language "deutsch"
\header {
   title = "Ländler"
   tagline = "Bernhard Kleine 2021"
}
\paper {
   #(set-paper-size "a4")
}
global = {
   \key d \major
   \numericTimeSignature
   \time 3/4
}
soprano = \relative c'' {
   \global
   % Die Noten folgen hier.
   d4^\rfz^- fis,8 ([g]) fis ([g])| h4^^ a^. a^. | d^. d,8 ([e]) d ([e])
| g4^^ fis^. fis^.
}
dynamicI = {
%1
s8\mf s8\< s4. s8\! | s4 s4\> s8 s \! | s4\f  s4\< s8 s\! | s4 s4\> s8
s\! | s8^"cresc. poco a poco"\< s s4
   s8. s16\! s2.
}
sopranoVoice = \relative c' {
   \global
   \dynamicUp
   % Die Noten folgen hier.
   s2. s2. s2. s2. h4^.^^ d^. e^. | fis2^- r4 |
}
alto = \relative c' {
   \global
   % Die Noten folgen hier.
   fis4 d8 ([e]) d ([e]) | g4 fis fis | <d fis>4 h h|  e d d | h r r
     ais_._^ h_.\< cis_.\!
}
tenor = \relative c' {
   \global
   % Die Noten folgen hier.
   a4 a a | d d d  |fis, fis8 ([g]) fis ([g]) | h4 h h8 ([a])| g4 r r|
     cis,4. fis8 fis4 |
}
bass = \relative c {
   \global
   % Die Noten folgen hier.
   d4 d d | d d d8 ([cis]) | h4 h h | h h' h| R2. |
     fis,4 gis ais |
}
altoVerseOne = \lyricmode {
   \set stanza = "1."
   % Liedtext folgt hier.
   Mä -- del, der Lenz ist da, Mä -- del der Lenz ist da, la
   Mä -- del, gib acht!
}
verseSopranoVoiceOne = \lyricmode {
   % Liedtext folgt hier.
   Mä -- del gib acht!
}
choirPartI = \new ChoirStaff <<
   \new Staff = "sa" \with {
     instrumentName = \markup \center-column { "Sopran" "Alt" }
   } <<
     \new Dynamics = "page1"  \dynamicI
     \new Voice = "soprano" { \voiceOne \soprano }
     \new Voice = "ssoprano" { \voiceOne \sopranoVoice }
     \new Voice = "alto" { \voiceTwo \alto }
   >>
   \new Lyrics \lyricsto "alto" \altoVerseOne
   \new Lyrics \with {
     alignAboveContext = "sa"
   } \lyricsto "ssoprano" \verseSopranoVoiceOne
  \new Staff = "tb" \with {
     instrumentName = \markup \center-column { "Tenor" "Bass" }
   } <<
     \clef bass
     \new Voice = "tenor" { \voiceOne \tenor }
     \new Voice = "bass" { \voiceTwo \bass }
   >>

\score {
   \choirPartI
   \layout { }
}

Am 21.05.2021 um 11:46 schrieb Bernhard Kleine:
Am 21.05.2021 um 11:09 schrieb Bernhard Kleine:
Hi,

this snippet raises an error

\new Dynamics = "page1" with {
       alignAboveContext = "sa"
     } \dynamicI

while this does not:

\new Dynamics = "page1" \dynamicI

What is the proper was to place the dynamic line above the staff?
The proper way!

BTW I googled for it and could not find it.

Hello,

This works over here:

\version "2.20.0"
\language "deutsch"
\header {
  title = "Ländler"
  tagline = "Bernhard Kleine 2021"
}
\paper {
  #(set-paper-size "a4")
}
global = {
  \key d \major
  \numericTimeSignature
  \time 3/4
}
soprano = \relative c'' {
  \global
  % Die Noten folgen hier.
  d4^\rfz^- fis,8 ([g]) fis ([g])| h4^^ a^. a^. | d^. d,8 ([e]) d ([e])
| g4^^ fis^. fis^.
}
dynamicI = {
%1
s8\mf s8\< s4. s8\! | s4 s4\> s8 s \! | s4\f  s4\< s8 s\! | s4 s4\> s8
s\! | s8^"cresc. poco a poco"\< s s4
  s8. s16\! s2.
}
sopranoVoice = \relative c' {
  \global
  \dynamicUp
  % Die Noten folgen hier.
  s2. s2. s2. s2. h4^.^^ d^. e^. | fis2^- r4 |
}
alto = \relative c' {
  \global
  % Die Noten folgen hier.
  fis4 d8 ([e]) d ([e]) | g4 fis fis | <d fis>4 h h|  e d d | h r r
    ais_._^ h_.\< cis_.\!
}
tenor = \relative c' {
  \global
  % Die Noten folgen hier.
  a4 a a | d d d  |fis, fis8 ([g]) fis ([g]) | h4 h h8 ([a])| g4 r r|
    cis,4. fis8 fis4 |
}
bass = \relative c {
  \global
  % Die Noten folgen hier.
  d4 d d | d d d8 ([cis]) | h4 h h | h h' h| R2. |
    fis,4 gis ais |
}
altoVerseOne = \lyricmode {
  \set stanza = "1."
  % Liedtext folgt hier.
  Mä -- del, der Lenz ist da, Mä -- del der Lenz ist da, la
  Mä -- del, gib acht!
}
verseSopranoVoiceOne = \lyricmode {
  % Liedtext folgt hier.
  Mä -- del gib acht!
}
choirPartI = \new ChoirStaff <<
  \new Staff = "sa" \with {
    instrumentName = \markup \center-column { "Sopran" "Alt" }
  } <<
    \new Dynamics = "page1" \with {
      alignAboveContext = "sa"
    }
    \dynamicI
    \new Voice = "soprano" { \voiceOne \soprano }
    \new Voice = "ssoprano" { \voiceOne \sopranoVoice }
    \new Voice = "alto" { \voiceTwo \alto }
  >>
  \new Lyrics \lyricsto "alto" \altoVerseOne
  \new Lyrics \with {
    alignAboveContext = "sa"
  } \lyricsto "ssoprano" \verseSopranoVoiceOne

  \new Staff = "tb" \with {
    instrumentName = \markup \center-column { "Tenor" "Bass" }
  } <<
    \clef bass
    \new Voice = "tenor" { \voiceOne \tenor }
    \new Voice = "bass" { \voiceTwo \bass }
  >>
>>

\score {
  \choirPartI
  \layout { }
}


Could you post a (small) code example that shows the failure? What is the error message? Did you try updating to the latest stable version 2.22.1?

Regards,
Jean



reply via email to

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