lilypond-user
[Top][All Lists]
Advanced

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

Two different time signatures with different tuplets in 'em


From: mclaren
Subject: Two different time signatures with different tuplets in 'em
Date: Sat, 5 Nov 2016 23:35:21 -0700 (MST)

The logical extension of that example I posted with the large time signature,
4918233/340340, involves two different simultaneous measures with different
tuplets and different time signatures, one large, the other not.

In this case, the 4918233/340340 measure (which is really a different
smaller time signature with the signature deleted and the larger meter
inserted by hand, because Lilypond can't handle a time signature this large
and crashes but Urs Liska doesn't want to admit it's a Lilypond bug) runs
simultaneously with a simple 16/8 time signature with embedded tuplets.

To get this, its turns out you have to use a time signature of 3237/224
(which approximates 4918233/340340 to 0.000007142857143094261) for both
measures. Then you erase the 3237/224 meter on the bottom staff and insert
16/8 by hand, then squash each measure of the bottom staff by the relative
ratio of 16 eighth notes to 3237/22, which turns out to be a tuplet of
16000:14451. 

Lilypond doesn't let you get rid of the tuplet and tuplet bracket on the
outer tuplet without also deleting so the inner 3:2 tuplets, so the
workaround for this example involves printing the score out and
photoshopping out the tuplets in the bottom staff. Not a big deal. 

The top part of the embedded gif shows the original Lilypond output, the
bottom part shows the photoshopped corrected version. Since Lilypond is
incapable to dealing with these issues, photoshop is needed to fix things in
the mix. 

Urs Liska's and Andrew Ho's page break code works well on most examples I've
worked through, but it doesn't work here. So the page breaks have to be
photoshopped in with a score like this. Thus the composer must enter a few
measure in landscape mode, print 'em out, and photoshop the resulting
measures down the page to produce a complete score with proper page breaks.
Such is life. Fortunately it's easy to do in a case like this, where the bar
lines line up. 

<http://lilypond.1069038.n5.nabble.com/file/n196202/EXAMPLE_50a-extensive_broken_tuplets_w_straight_eighths_polyrhythm.gif>
 

Anyway, here's the Lilypond code

\version "2.18.2"

\header { 
  tagline = ""  % removed 
} 
#(set-default-paper-size "a4" 'landscape)
indent=0
\layout {
  \context {
      \Score
     \override SpacingSpanner.uniform-stretching = ##t   
   }
  % \override Score.SpacingSpanner.strict-note-spacing = ##t
   \context {
      \Score
      proportionalNotationDuration = #(ly:make-moment 5/60)
    }
  
  \context {
    \type Engraver_group
    % Add elements that _can_ be printed
    \consists "Timing_translator"
    \consists "Time_signature_engraver"
   
    \alias "Staff"
      
  }
  \context {
    \Score
    %\accepts "TimeLine"

    \override TupletNumber.text = #tuplet-number::calc-fraction-text
    \override TupletBracket.bracket-visibility = ##t
  }
  \context {
    \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
   
  }
}
  
<<
  
% Time signature:  [2 x (9/11) + 2 x (5/8) + 2 x (11/13) + 
%  2 x (3/5) + 2 x (13/17) + 2 x (4/7) + 6 ] eighth notes =
% 11*11*13*5*17*7 = 680680, but this can be reduced by a
% factor of 2 because there's an 8 in the denominator and
% 2 in the numerator. 
  
\new Staff { \clef "treble"
  %\time 4918233/340340 
  % This is the accurate time signature, but it crashes
  % Lilypond. The solution? Use a rational approximation
  % program to find the closest time signature -- 3237/224
  % approximates 4918233/340340 to within 0.000007142857143094261
    %\time 4918233/340340 
  
 \once \override Staff.TimeSignature #'stencil = ##f  
  \time 3237/224 
  
  \override Staff.TimeSignature.stencil = #ly:text-interface::print 
  \override Staff.TimeSignature.text = 
  \markup \override #'(baseline-skip . 0) \center-column \number { 
    \concat { 
      "4918233" 
      
    } 
    "340340" 
  }
  
  \time 3237/224            
{


\relative c''

{  \tweak direction #up \tuplet 5/3 {c8[ c8]}  c8   \tweak direction #up
\tuplet 17/13 {c8[ c8]} c8 
   \tweak direction #up \tuplet 7/4 {c8[ c8]} c8 }

\relative c''

{   \tweak direction #up \tuplet 11/9 {c8[ c8]}  c8   \tweak direction #up
\tuplet 8/5 {c8[ c8]} c8   \tweak direction #up \tuplet 13/11
 {c8[ c8]} c8 }  
}
\bar "|"
\relative c''
{  \tweak direction #up \tuplet 11/9 {c8[ c8]}  c8   \tweak direction #up
\tuplet 8/5 {c8[ c8]} c8   \tweak direction #up \tuplet 13/11
 {c8[ c8]} c8 } 

\relative c''

{   \tweak direction #up \tuplet 7/4 {c8[ c8]}  c8   \tweak direction #up
\tuplet 17/13 {c8[ c8]} c8   \tweak direction #up \tuplet 5/3
 {c8[ c8]} c8 }  
\bar "|"

\relative c''
{\tweak direction #up \tuplet 5/3 {c8[ c8]}  c8 \tweak direction #up \tuplet
17/13 {c8[ c8]} c8 
 \tweak direction #up \tuplet 7/4 {c8[ c8]} c8 }

\relative c''

{ \tweak direction #up \tuplet 11/9 {c8[ c8]}  c8 \tweak direction #up
\tuplet 8/5 {c8[ c8]} c8 \tweak direction #up \tuplet 13/11
 {c8[ c8]} c8 }  
\bar "|"
\relative c''
{ \tweak direction #up \tuplet 11/9 {c8[ c8]}  c8 \tweak direction #up
\tuplet 8/5 {c8[ c8]} c8 \tweak direction #up \tuplet 13/11
 {c8[ c8]} c8 } 

\relative c''

{ \tweak direction #up \tuplet 17/13 {c8[ c8]}  c8 \tweak direction #up
\tuplet 7/4 {c8[ c8]} c8 \tweak direction #up \tuplet 5/3
 {c8[ c8]} c8 }  
\bar "|"

\relative c''

{\tweak direction #up \tuplet 5/3 {c8[ c8]}  c8 \tweak direction #up \tuplet
17/13 {c8[ c8]} c8 
 \tweak direction #up \tuplet 7/4 {c8[ c8]} c8 }

\relative c''

{\tweak direction #up  \tuplet 11/9 {c8[ c8]}  c8 \tweak direction #up
\tuplet 8/5 {c8[ c8]} c8 \tweak direction #up \tuplet 13/11
 {c8[ c8]} c8 }  
\bar "|"

}





      


\new Staff { \clef "treble"
  %\time 4918233/340340 
  
 \once \override Staff.TimeSignature #'stencil = ##f  
  \time 3237/224 
  
  \override Staff.TimeSignature.stencil = #ly:text-interface::print 
  \override Staff.TimeSignature.text = 
  \markup \override #'(baseline-skip . 0) \center-column \number { 
    \concat { 
      "16" 
      
    } 
    "8" 
  }
  

{

%\override TupletBracket.bracket-visibility = ##f

\relative c''
\tuplet 16000/14451
{c8[ c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c
c] }  
\bar "|"
%\once \omit TupletNumber
\relative c''
\tuplet 16000/14451
{c8[ c c c c c c c c c c c c c c c] }   

\bar "|"

\relative c''
\tuplet 16000/14451
{c8[ c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c
c] }  
\bar "|"

%\once \omit TupletNumber
\relative c''
\tuplet 16000/14451
{c8[ c c c c c c c c c c c c c c c] }  
\bar "|"

\relative c''
\tuplet 16000/14451
{c8[ c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c c \tuplet 3/2{c c} c c
c] }  
\bar "|"

\relative c''


\tuplet 16000/14451
{c8[ c c c c c c c c c c c c c c c] }  
  
\bar "|"
\relative c''


\tuplet 16000/14451
{c8[ c c c c c c c c c c c c c c c] }  
  
\bar "|"

\relative c''


\tuplet 16000/14451
{c8[ c c c c c c c c c c c c c c c] }  
  
\bar "|"

}


} 

>>







--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Two-different-time-signatures-with-different-tuplets-in-em-tp196202.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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