lilypond-user
[Top][All Lists]
Advanced

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

How to get irrational tuplets inside a regular meter like 9/8


From: mclaren
Subject: How to get irrational tuplets inside a regular meter like 9/8
Date: Tue, 8 Nov 2016 00:28:52 -0700 (MST)

An alternative method involves simply adding in the required rests, rather
than squishing or stretching the entire measure with a large tuplet. Since
this method is easy to calculate exactly because you're just adding and
subtracting various integer fractions, it always produces guaranteed
results. With very large tuplets, there seem to sometimes be floating point
inaccuracies in the calculations done inside Lilypond, so sometimes the
large tuplet method doesn't work exactly and barlines don't precisely add
up. But with this method, barlines always line up exactly and no extreme
unction is required to add barlines or to fiddle with any kind of
make-moment value to get the barlines right.

<http://lilypond.1069038.n5.nabble.com/file/n196323/EXAMPLE_102-square_root_tuplets_in_9-8_meter.gif>
 

Here's the Lilypond code:

\version "2.18.2"

above = { \once \override Script #'script-priority = #-100 } 
below = { \once \override TextScript #'script-priority = #-100 } 


irrtupleta = \once \override TupletNumber.text = 
 \markup \concat { 
    
   \tiny "√" 
   \hspace #-0.15 
   \override #'(offset . -16) 
   \override #'(thickness . 1.6) 
   \underline "7"
   ":"
  
    "1"
 } 
 
 irrtupletb = \once \override TupletNumber.text = 
 \markup \concat { 
    
   \tiny "√" 
   \hspace #-0.15 
   \override #'(offset . -16) 
   \override #'(thickness . 1.6) 
   \underline "11"
   ":"
  
   "1"
 } 
 
 irrtupletc = \once \override TupletNumber.text = 
 \markup \concat { 
    
   \tiny "√" 
   \hspace #-0.15 
   \override #'(offset . -16) 
   \override #'(thickness . 1.6) 
   \underline "13"
   ":"
  
    "1"
 } 

<<
   
   \new Staff { \clef "treble"
\time 9/8
\relative c'
  \override TupletNumber #'text = #tuplet-number::calc-fraction-text

{

\tweak direction #up \tuplet 250/132 {r32} \irrtupleta \tuplet 1000/378{c''4
c''4 c''4 c''4.} \tweak direction #up \tuplet 250/132 {r32}
\irrtupletb \tuplet 1000/301{c''4 c''4 c''4 c''4.} \tweak direction #up
\tuplet 250/132 {r32}
\irrtupletc \tuplet 1000/277{c''4 c''4 c''4 c''4.}

\tweak direction #up \tuplet 250/132 {r32} \irrtupleta \tuplet 1000/378{c''4
c''4 c''4 c''4.} \tweak direction #up \tuplet 250/132 {r32}
\irrtupletb \tuplet 1000/301{c''4 c''4 c''4 c''4.} \tweak direction #up
\tuplet 250/132 {r32}
\irrtupletc \tuplet 1000/277{c''4 c''4 c''4 c''4.}
                                                                                
                                                                                
                             
}

}

\new Staff { \clef "bass"
             \override TupletNumber #'text =
#tuplet-number::calc-fraction-text

\time 9/8
\relative c
\tuplet 8/5{r8 c8 c8} \tuplet 7/5{r8 c8 c8} \tweak direction #down \tuplet
28/27{r8}
\tuplet 8/5{r8 c8 c8} \tuplet 7/5{r8 c8 c8}

\tuplet 8/5{r8 c8 c8} \tuplet 7/5{r8 c8 c8} \tweak direction #down \tuplet
28/27{r8}
\tuplet 8/5{r8 c8 c8} \tuplet 7/5{r8 c8 c8}
 
 
}


>>



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-get-irrational-tuplets-inside-a-regular-meter-like-9-8-tp196323.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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