• 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ü

Abstand von Notenzeilen innerhalb einer Akkolade (GELÖST)

Begonnen von ingmar, Freitag, 1. Mai 2015, 20:27

Vorheriges Thema - Nächstes Thema

ingmar

hallo,


ich habe eine Akkolade mit drei Notensystemen. Ich möchte den Abstand der Systeme voneinander (also innerhalb der Akkolade) verkleinern und vergrößern. Ich versuche es mit \override VerticalAxisGroup.staff-staff-spacing, habe aber keinen Erfolg. Was mache ich falsch?

Im Beispiel sehe ich nach Entfernen der Kommentare keinen Unterschied.

Danke, Gruß, : - )
--ingmar

\version "2.18.2"

\score {
\new StaffGroup {
<<
\new Staff
{ \repeat unfold 50 \relative c'' { c d e f g d e d }}

\new Staff {
\override VerticalAxisGroup.staff-staff-spacing = #'(
% (basic-distance . 2)
        % (minimum-distance . 1)
)
\repeat unfold 50 \relative c'' { e f g a b a g d }
}

\new Staff
{ \repeat unfold 50 \relative c' { c4 g c2 g4 g b2 }}
>> }
}


harm6

Hallo Ingmar,

hier sind gleich mehrere Sachen zu bemerken:

Zitat
         \override VerticalAxisGroup.staff-staff-spacing = #'(
                         %   (basic-distance . 2)
                         %   (minimum-distance . 1)
         )

1. Du befindest Dich in einer scheme-list, daher mußt Du mit ";" kommentieren "nicht mit "%"
2. Die Angabe des Contexts fehlt:
  \override Staff.VerticalAxisGroup.staff-staff-spacing = ...
funktioniert erstmal. Besser jedoch, setz es in einen \with-Block. Dort ist der Context sowieso klar und "Staff" kann (und muß) entfallen:


\version "2.18.2"

\score {
  \new StaffGroup
    <<
      \new Staff
        \repeat unfold 50 \relative c'' { c d e f g d e d }
     
      \new Staff
        \with {
          \override VerticalAxisGroup.staff-staff-spacing =
            #'(
               ;(basic-distance . 2)
               ;(minimum-distance . 1)
               (padding . 20)
              )
        }
        \repeat unfold 50 \relative c'' { e f g a b a g d }
     
      \new Staff
        \repeat unfold 50 \relative c' { c4 g c2 g4 g b2 }
    >>
}


3. Ein paar überflüssige Klammern habe ich entfernt.


HTH,
  Harm

ingmar

Ah, jetzt wird es klarer. Danke!

Wie kann ich eigentlich herausfinden, was die Defaultwerte für VerticalAxisGroup.staff-staff-spacing sind?


Gruß,
--ingmar

harm6

Entweder IR
http://www.lilypond.org/doc/v2.19/Documentation/internals/verticalaxisgroup
Es gelten zunächst die Werte für default-staff-staff-spacing

oder selbst auslesen:

\version "2.18.2"

func =
\override VerticalAxisGroup.after-line-breaking =
#(lambda (grob)
   (newline)
   (display (ly:grob-property grob 'staff-staff-spacing)))

\new Staff \with { \func } { c'' }


Im Terminal kannst Du dann
Zitat((basic-distance . 9) (minimum-distance . 8) (padding . 1))
sehen.


HTH,
  Harm

ingmar

Wie ich jetzt erst sehe, war das Thema bereits besprochen worden, wenn auch in leichter Variation. - Für die, die die gleiche Frage umtreibt, ist es vielleicht sinnvoll, sich auch den anderen Thread anszuschauen: "Vertical Spacing innerhalb der Akkolade"

Gruß,
--ingmar