lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond meter bug?


From: Thomas Morley
Subject: Re: Lilypond meter bug?
Date: Thu, 3 Nov 2016 10:11:42 +0100

2016-11-03 7:03 GMT+01:00 mclaren <address@hidden>:
> 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.

Because you told LilyPond to do so.
You exclude TimeSignatures from Staff, instead you put them in
"TimeLine" and complain lily does so.

>
> {
>
>
> <<
>   \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.
>

Please reread
http://lilypond.org/doc/v2.19/Documentation/notation/paper-size-and-automatic-scaling

Actually I have no clue what you're trying to achieve.
Do you copy something? Then please post a scan of it. Otherwise please
try to describe in words.

Cheers,
  Harm



reply via email to

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