lilypond-user
[Top][All Lists]
Advanced

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

Lilypond meter bug?


From: mclaren
Subject: Lilypond meter bug?
Date: Wed, 2 Nov 2016 23:03:42 -0700 (MST)

I'm no Lilypond expert, so could be I'm just doing something wrong.  Don't
want to call it a bug if it's a case of user error.

Anyway, this is a dead-simple polyrhythm. Nothing special here, just 4
simultaneous different meters working at once in the duration of the same
barlength.

The (possible) bug is that the meters get printed above the staves, and
waste space. It would be nice to get rid of this and put the meters where
they belong, on the staves. Haven't found a way to do that.

Any suggestions?

Here's a link to the score (png file, 300 dpi):
http://imgur.com/YRKAgYe

And here's the Lilypond code:

\version "2.18.2"

\header { 
  tagline = ""  % removed 
} 
        

\layout {
  % Create time signature context
  % Source: http://lsr.di.unimi.it/LSR/Snippet?id=272
  % (modified)
  \context {
    
%    \paper  #(set-default-paper-size "a4" 'landscape)}
%indent=0
    \type Engraver_group
    % Add elements that _can_ be printed
    \consists "Timing_translator"
    \consists "Time_signature_engraver"
    \consists "Axis_group_engraver"
    \name "TimeLine"
    \alias "Staff"
    
    % Align time signatures on barlines
    \override TimeSignature.X-offset =
      #ly:self-alignment-interface::x-aligned-on-self
    \override TimeSignature.self-alignment-X = #CENTER
  }
  \context {
    \Score
    \accepts "TimeLine"
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"
    \override TupletNumber.text = #tuplet-number::calc-fraction-text
  }
  \context {
    \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
    \remove "Time_signature_engraver"
  }
}

% Lilypond bug #1 (?) -- Time signatures appear above the staves instead of
on them. Not sure why.

{
  
  
<<
  \new TimeLine {
    \time 5/8

  }

\new Staff { \clef "treble"
             \relative c''
{


\override Staff.TimeSignature #'stencil = ##f 

 \scaleDurations 8/5 { c8 d f e b c d16 f e8  b c d16 f e8 b c16 d f8   }
 
}  
}

  \new TimeLine {
    \time 9/8

  }

\new Staff { \clef "treble"
             \relative c''
{


\override Staff.TimeSignature #'stencil = ##f 

 \scaleDurations 8/9 { c8 d f e b c d16 f e8  b c[ d16 f e8 b c16 d f8 e b
c] d f e b16 c d8 f e b16 c  d8  }
 
}  
}

  \new TimeLine {
    \time 11/8

  }

\new Staff { \clef "treble"
             \relative c''
{
  \override Staff.TimeSignature #'stencil = ##f
 
 
\scaleDurations 8/11 { e8 b c d16 f e8 b c d16 f e8 b c16 d f8 e b c d f e
b16 c d8 f e b16 c d8 f e16 b c8 d f e b c d   }

}

}

\new TimeLine {
    \time 13/8

  }

\new Staff { \clef "treble"
             \relative c''
{
  \override Staff.TimeSignature #'stencil = ##f
 
 
\scaleDurations 8/13 { e8 b c d16 f a,8 b8 e8 b c d16 f e8 b c16 d f8 e b c
d f e b16 c d8 f e b16 c d8 f, e16 b' c8 d f e b c d b g e c  }

}

}
>>
     
}
%\layout {
%        \paper  {#(set-default-paper-size "a4" 'landscape)}
%indent=0

% Lilypond bug #2 -- placing the \paper command anywhere else fails to
%  produce the desired output, but placing it here generates an EXITED WITH
%  ERROR CODE 1 message even though the score output looks correct and is
%  as desired, provide you compile first with these lines commented out. 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypond-meter-bug-tp196031.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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