• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

\override NoteColumn #'force-hshift = #2 funktioniert für g aber nicht für as

Begonnen von bkleine, Donnerstag, 23. Oktober 2014, 13:50

Vorheriges Thema - Nächstes Thema

bkleine

In folgendes Code-Schnipsel aus der Messe in C von Bruckner funktioniert das
Zitat\once \override NoteColumn #'force-hshift = #2 as
nicht, aber das
Zitat\once \override NoteColumn #'force-hshift = #.4 g
funktioniert.
Was muss ich ändern?

\version "2.18.2"
\language "deutsch"

global = {
  \key c \major
  \time 2/2
}

rightOne = \relative c''' {
  \global
  % Die Noten folgen hier.
  g2 e | c4 d e4. f8 | g1 (g4) e c g | a r
}

rightTwo = \relative c'' {
  \global
  % Die Noten folgen hier.
  c2. b4 |
  \override Stem.direction = #up
  a h!
  \override Stem.direction = #DOWN
  c2 | c4 a h2 | c4 g e d c
}

rightThree = \relative c' {
  \global
  % Die Noten folgen hier.
  \override Stem.direction = #DOWN
  \once \override NoteColumn #'force-hshift = #.4 e2
  g | f4
  \once \override NoteColumn #'force-hshift = #2 as
  \once \override NoteColumn #'force-hshift = #.2 g
  e s1 s1 s1
}

leftOne = \relative c' {
  \global
  % Die Noten folgen hier.
  c1 (c) d2. f4 | d2 g, | e4 

}

leftTwo = \relative c' {
  \global
  % Die Noten folgen hier.
  s1 s1
}
\score {
  \new PianoStaff \with {
    instrumentName = "Klavier"
  } <<
    \new Staff = "right" \with {
      midiInstrument = "acoustic grand"
    } << \rightOne \\ \rightTwo \\ \rightThree >>
    \new Staff = "left" \with {
      midiInstrument = "acoustic grand"
    } { \clef bass << \leftOne \\ \leftTwo >> }
  >>
  \layout { }
  \midi {
    \tempo 4=100
  }
}

trulli

Hallo,

das Herumgeschiebe kannst du Lily überlassen, z.B. mit \shiftOn(nn). Notenhalsausrichtungen kannst du leichter mit \stemUp und \stemDown ändern.

Hier mal eine Anregung dazu:
\version "2.18.2"
\language "deutsch"

global = {
  \key c \major
  \time 2/2
}

rightOne = \relative c''' {
  \global

  % Die Noten folgen hier.
  g2 e | c4 d e4. f8 | g1~ g4 e c g | a r
}

rightTwo = \relative c'' {
  \global
   \shiftOnn
  % Die Noten folgen hier.
  c2. b4 |
  \stemUp
  a h!
  \stemDown
  c2 | c4 a h2 | c4 g e d c
}

rightThree = \relative c' {
  \global
  % Die Noten folgen hier.
  \stemDown
  e2
  g  f4  as g
  e s1 s1 s1
}

leftOne = \relative c' {
  \global
  % Die Noten folgen hier.
  c1 (c) d2. f4 | d2 g, | e4 

}

leftTwo = \relative c' {
  \global
  % Die Noten folgen hier.
  s1 s1
}
\score {
  \new PianoStaff \with {
    instrumentName = "Klavier"
  } <<
    \new Staff = "right" \with {
      midiInstrument = "acoustic grand"
    } << \rightOne \\ \rightTwo \\ \rightThree >>
    \new Staff = "left" \with {
      midiInstrument = "acoustic grand"
    } { \clef bass << \leftOne \\ \leftTwo >> }
  >>
  \layout { }
  \midi {
    \tempo 4=100
  }
}


Grüße von Trulli

bkleine

Danke vielmals! Im Original in Takt 2 steht zwar das H vor dem As, aber das ist nicht wichtig.

Bernhard