lilypond-user
[Top][All Lists]
Advanced

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

Re: Divisi Staff with instrument name at the left


From: Caio Barros
Subject: Re: Divisi Staff with instrument name at the left
Date: Mon, 19 Dec 2011 16:56:54 -0200

Using your idea I created a function that allows me to adjust the text offset for each instrument since it proved to be different. Using this is a little bit ugly since you are adding text above a pause that can be in very different positions. but it gives a decent output.

divStaff = #(define-music-function (parser location offset) (pair?)
                  #{ 
                    \once \override Staff.TimeSignature #'transparent = ##t
                    \once \override Staff.Clef #'transparent = ##t
                    \override TextScript #'extra-offset = #$offset
                  #})
% Now I can adjust the offset for each instru
\relative c'' {
 \new StaffGroup <<
   \new Staff {
     \set Staff.instrumentName = #"Vla. "
      a b c d | a b c d | a b c d | a b c d }
   <<
     \new StaffGroup <<
       \new Staff {
       \divStaff #'(0 . -1)
       \stopStaff s1^"Solo Vc."| \startStaff \clef bass a,,4 b c d | a
b c d | a b c d }

     \new Staff {
       \divStaff #'(0 . -1)
       \stopStaff s1^"Solo Vc." | \startStaff \clef bass a4 b c d | a
b c d | a b c d | }
     >>
   >>
   \new Staff {
     \set Staff.instrumentName = #"Vc. "
       a'' b c d | a b c d | a b c d | a b c d }
 >>
}

2011/12/18 Caio Barros <address@hidden>
Thank you. Good idea. =)


2011/12/18 James <address@hidden>
Hello,

On 18 December 2011 00:54, Caio Barros <address@hidden> wrote:
> I want to insist in this subject.
> I would like also to add a StaffGroup aligned to a staff and make the
> brackets appear right before the begining of the staff group instead of the
> left of the page. And naturally include the instrument names at the left of
> the new staves.

Well I came up with this:

\version "2.14.1"

\relative c'' {
 \new StaffGroup <<
   \new Staff {
     \set Staff.instrumentName = #"Vla. "
      a b c d | a b c d | a b c d | a b c d }
   <<
     \new StaffGroup <<
       \new Staff {
       \override Staff.TimeSignature #'transparent = ##t
       \once \override Staff.Clef #'transparent = ##t
       \once \override TextScript #'extra-offset = #'(0 . -1)
       \stopStaff s1^"Solo Vc."| \startStaff \clef bass a,,4 b c d | a
b c d | a b c d }

     \new Staff {
       \override Staff.TimeSignature #'transparent = ##t
       \once \override Staff.Clef #'transparent = ##t
       \once \override TextScript #'extra-offset = #'(0 . -1)
       \stopStaff s1^"Solo Vc." | \startStaff \clef bass a4 b c d | a
b c d | a b c d | }
     >>
   >>
   \new Staff {
     \set Staff.instrumentName = #"Vc. "
       a'' b c d | a b c d | a b c d | a b c d }
 >>
}

I cannot work out how to get the staff group brackets inside, anyway
hope this helps a bit.

--
--

James



reply via email to

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