lilypond-user
[Top][All Lists]
Advanced

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

Re: Making invisible the barline that extends between staff groups


From: Thomas Morley
Subject: Re: Making invisible the barline that extends between staff groups
Date: Wed, 1 Feb 2012 02:37:03 +0100

Hi Joey,

2012/2/1 Francisco Vila <address@hidden>:
> 2012/1/31 Joey Di Nardo <address@hidden>:
>> Hi all, I'm trying to make invisible the barline that extends between the 
>> staff groups, so that only the menstriche line are present. Here's my code:
>
> And your question is...?
>
> --
> Francisco Vila. Badajoz (Spain)
> www.paconet.org , www.csmbadajoz.com
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

I'm not sure that I understood what you want, perhaps:

\version "2.14.2"

\paper {
 #(define dump-extents #t)

 #(set-paper-size "11x17")
 %line-width = 160\mm - 2.0 * 0.4\in
 %indent = 0\mm
 %force-assignment = #""
 %line-width = #(- line-width (* mm  3.000000))

 top-margin = 2\cm
}

\layout {

}




\sourcefileline 491
#(define mydrums '((bassdrum   default #t  4)
                  (snare      default #t -4)
                  (tambourine default #t  0)))

global = {
 \time 1/1
 %\override Staff.BarLine #'transparent = ##t
 %add :
 %%\revert Staff.BarLine #'transparent
 %%\bar "|."
 %after last bar
}

drumsA = {
 \context DrumVoice <<
   { \global }
   { \drummode {
       \autoBeamOff
       \stemDown sn8 \stemUp tamb s8 |
       sn4 \stemDown sn4 |
       \stemUp tamb8 \stemDown sn8 \stemUp sn16 \stemDown sn \stemUp sn8 |
       \stemDown sn8 \stemUp tamb s8 |
       \stemUp sn4 s8 \stemUp tamb
     }
   }
 >>
}

drumsB = {
 \drummode {
   s4 bd8 s2*2 s4 bd8 s4 bd8 s8
 }
}

\layout {
 %indent = #40
}

\score {
        \new StaffGroup\with { \override SpanBar #'transparent = ##t }  <<
       \new StaffGroup \with {
     systemStartDelimiter = #'SystemStartSquare
     \override SpanBar #'transparent = ##f
   }
       <<
     \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"1a"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsA
     }

    \new DrumStaff {
           \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"1b"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsB
    }
       >>

       \new StaffGroup \with {
     systemStartDelimiter = #'SystemStartSquare
     \override SpanBar #'transparent = ##f
   }
       <<
     \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"2a"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsA
     }

    \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"2b"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsB
    }
       >>

       \new StaffGroup \with {
     systemStartDelimiter = #'SystemStartSquare
     \override SpanBar #'transparent = ##f
   }
       <<
     \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"3a"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsA
     }

    \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"3b"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsB
    }
       >>

       \new StaffGroup \with {
     systemStartDelimiter = #'SystemStartSquare
     \override SpanBar #'transparent = ##f
   }
       <<
     \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"4a"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsA
     }

    \new DrumStaff {
               \override Staff.BarLine #'transparent = ##t
       \set DrumStaff.instrumentName = #"4b"
       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
       \drumsB
    }
       >>
 >>
}

Cheers,
  Harm



reply via email to

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