lilypond-user
[Top][All Lists]
Advanced

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

Splitting Staff into two


From: Yoshiaki Onishi
Subject: Splitting Staff into two
Date: Sun, 29 Dec 2024 23:39:35 -0500

P.S. After hitting “send,” it occurred to me that the code I sent would not 
account music after a new system starts. The clef would appear incorrectly 
placed. I amended the code as below, and in this version, I tweaked the Scheme 
code setting so that the two clefs would not collide in the new system. It 
makes the bifurcated staffs have more distance, which I am very sure you can 
tweak as you like - - - Yoshi

%%% CODE BEGINS %%%
\version "2.24.4"

\new Staff = "main" {
 c''1 d'' e'' f''

 \stopStaff
 \override Staff.StaffSymbol.line-positions = #'(-9 -7 -5 -3 -1)
 \set Staff.clefPosition = -7
 \set Staff.middleCPosition = -11
 \once \override Staff.Clef.stencil = ##f
 \startStaff
 <<
   { \repeat unfold 4 {c''1 d'' e'' f''}  }

   \new Staff \with {
     \remove Time_signature_engraver
     alignAboveContext = "main"
     \magnifyStaff #2/3
     \override VerticalAxisGroup.default-staff-staff-spacing =
     #'((basic-distance . 0)
        (minimum-distance . 0)
        (padding . 0)
        (stretchability . 10))
     firstClef = ##f
   }
   { \repeat unfold 4 {c''2 c''2 d'' d'' e'' e'' f'' f'' }}
>> 
}
%%% END %%%


reply via email to

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