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

Vertiakle Abstände in einem System

Begonnen von gärchle, Samstag, 16. Oktober 2010, 19:26

Vorheriges Thema - Nächstes Thema

gärchle

Hallo Allerseits,

ich hätte gerne, je nach Anzahl der Notenzeilen in meiner Partitur eine Anpassung in den vertikalen Abständen (Lilypond Notations Referenz 4.4.1). Zumindest verstehe ich 4.4.1 so, dass sich mit diesen Befehlen der Partiturinhalt, an die Seitengröße, bzw. der maximal erlaubten Ausdehnung flexibel anpasst.
Ich weiß nur nicht, wo ich in meiner Datei, diese Befehle einstezen muss. Ich habe schon alles mögliche ausprobiert.
Hier meine Datei:
\version "2.12.3"
#(set-global-staff-size 12.6)


sopranZwei = \relative c''
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

altZwei = \relative c'
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

tenorZwei = \relative c'
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }       
}

bassZwei = \relative c
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

obenZwei = \relative c''
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

untenZwei = \relative c''
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

upZwei = \relative c''
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

downZwei = \relative c''
{
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}

\paper {
        #(set-paper-size "a4")
        auto-first-page-number = ##f
        between-system-padding = #0
        between-system-space = 1.5\cm
        bottom-margin = 1.5\cm
        first-page-number = 2
        print-first-page-number = ##t
        print-page-number = ##t
        ragged-bottom = ##f
        ragged-last = ##f
        ragged-last-bottom = ##f
        ragged-right = ##f
            }

\header {
              title =  \markup { \bold \fontsize #5 "Test" } 
              } 
\score


    {
   
    <<
          \new ChoirStaff 
          %\override VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch
        <<
               
            \new Voice=
                    "sopranZwei" { << #(set-accidental-style 'modern 'ChoirStaff)
                    \set Staff.instrumentName = "Sopran" \sopranZwei >> }                 
           
            \new Voice =
                    "altZwei" { << \set Staff.instrumentName = "Alt" \altZwei >> }                     
           
            \new Voice =
                    "tenorZwei" { << \set Staff.instrumentName = "Tenor" \tenorZwei >> }                 
           
            \new Voice =
                    "bassZwei" { << \set Staff.instrumentName = "Bass" \bassZwei >> }         
   
        >>
       
        \new PianoStaff
        %\override VerticalAxisGroup #'keep-fixed-while-stretching = ##t
        <<
            \set PianoStaff.instrumentName = #"Piano 1  "
            \new Staff = "obenZwei"
            {
            #(set-accidental-style 'piano 'PianoStaff )
            \obenZwei
            }
            \new Staff = "untenZwei" \untenZwei
          >>
         
          \new PianoStaff
          %\override VerticalAxisGroup #'keep-fixed-while-stretching = ##t
        <<
               \set PianoStaff.connectArpeggios = ##f
               \set PianoStaff.instrumentName = #"Piano 2  "
               \new Staff = "upZwei"
               {
               #(set-accidental-style 'piano 'PianoStaff )
               \upZwei
               }
            \new Staff = "downZwei" \downZwei
          >>
    >>
       
          \layout {
              \context {
                \RemoveEmptyStaffContext
              }       
          }
    }


ich habe die Befehlszeilen, die ich benutzen möchte erstmal auskommentiert, weil sie da, wo sie jetzt stehen nichts bewirken.
Kann mir da jemand helfen?

Gruß
Gärchle

gärchle

Nachtrag von Gärchle

Die \with { } Umgebung hab ich auch ausprobiert.
Da bekomme ich immer eiune Fehlermeldung.

Gruß
Gärchöe

kilgore

HI gärchle,

Ich sehe auch nicht warum die Fehlermeldung kommt.  sollte eigentlich klappen mit
\new Score \with { \override VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch }


Jedenfalls kannst du es auch so machen, dass du einfach in einer Stimme das Befehl reinsteckst, zum Beispiel die erste Stimme, so:


sopranZwei = \relative c''
{  \override Score.VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch
    \time 3/4
    \key c \major
    \clef treble
    \tag #'expand {\repeat unfold 20 {d e f} }
}


Beachte, dass es nicht mehr \override VerticalAlignment heisst, sondern \override Score.VerticalAlignment.  So ist es dann auf die ganze Partitur wirksam....

gärchle

Super! Danke vielmals. Es funktioniert. Und ich habe auch \override VerticalAxisGroup #'keep-fixed-while-stretching = ##t hinbekommen.