bug-lilypond
[Top][All Lists]
Advanced

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

layout doesn't work as I expected


From: fcorvi
Subject: layout doesn't work as I expected
Date: Sun, 2 Feb 2020 07:36:29 -0700 (MST)

Hello everybody,
I am moving the first steps into lilypond and I am currently trying to
create a musical sheet for percussions.
I would like to be able to specify different measure lenghts for each staff
independently and I am doing this in the layout options.
What is happening in that when I put the layout option after my score it
doesn't affects nothing at all, when I put it after the pdf file will not be
generated.

This is my code

    \version "2.18.2"
 \language "italiano" 
 

 
\header {
  title = "Ritmic"
}

      % rendo i due pentagrammi indipendenti
  \layout{
          \context {
                          \Score
                          \remove "Timing_translator"
                          \remove "Default_bar_line_engraver"
                         }
           \context {
                           \DrumStaff
                           \consists "Timing_translator"
                           \consists "Default_bar_line_engraver"
                          }
              }
              

rul = \drummode { \time 3/8 dc4 dc8 dc dc dc
        
      }
timp = \drummode {
        % timh4 ssh timl8 ssh r timh r4 ssh8 timl 
        \time 2/8 timh4 timl
       }

\score {
  <<
    \new DrumStaff \with {
                                          instrumentName = #"timpani"
                                          drumStyleTable = #timbales-style
                                          \override StaffSymbol.line-count =
#2
                                          \override BarLine.bar-extent =
#'(-1 . 1)
                                          }
    <<
      \timp
    >>
    \new DrumStaff \with { 
                                          instrumentName = #"rullante" 
                                           %drumStyleTable = #timbales-style
                                          \override StaffSymbol.line-count =
#1
                                          %\override BarLine.bar-extent =
#'(-1 . 1)
                                          }
    <<
    \rul 
    % \new DrumVoice { \stemUp \timp }
    %  \new DrumVoice { \stemDown \rul }
    >>
  >>
  

              
  \midi { \tempo 4 = 120 }

}



Any help will be very appreciate, even if there are some mistakes or
suggestion apart from what I've asked



--
Sent from: http://lilypond.1069038.n5.nabble.com/Bugs-f58488.html



reply via email to

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