\tripletFeel and \partial

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

\tripletFeel and \partial

Malte Meyn-3
Hi list,

\tripletFeel doesn’t automatically work with \partial. IIUC,
\tripletFeet x is just a shortcut for \applySwing x #'(2 1) and one can
use \applySwingWithOffset for music with upbeat. I tried that but cannot
get it to work properly. In the following code, left and right hand are
offset against each other. What am I (or LilyPond) doing wrong?

I’m writing this to the bug list because it’s a 2.21 feature and at
least from the existing documentation I’m not able to produce correct
output which is a program or documentation bug ;)

Cheers,
Malte

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.21.0"
\language "deutsch"
\include "swing.ly"

perdido = \new PianoStaff <<
   \new Staff \relative {
     \key b \major
     \partial 8
     c'8 es f~ 2 r8 c es f4 c8 es f4 b,8 d f~ 2 r8
     b, d f4 b,8 d f4 c8 es f~ 2 r8 c es f d' c~ 4. f,8 g b~ 2.~ 2 r4 r8
     \bar "|."
   }
   \new Staff \relative {
     \clef bass
     \key b \major
     r8 c4 c c c f, f f f b b b b d d g, g c c c c f, f f f b b b b b2 r4 r8
   }
 >>

\book {
   \bookOutputSuffix "perdido"
   \header { title = "Perdido" }
   \score { \perdido }
   \score { \applySwingWithOffset 8 #'(2 1) #(ly:make-moment 1/8)
\perdido \midi { } }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: \tripletFeel and \partial

Malte Meyn-3


Am 28.09.19 um 16:57 schrieb Malte Meyn:

> Hi list,
>
> \tripletFeel doesn’t automatically work with \partial. IIUC,
> \tripletFeet x is just a shortcut for \applySwing x #'(2 1) and one can
> use \applySwingWithOffset for music with upbeat. I tried that but cannot
> get it to work properly. In the following code, left and right hand are
> offset against each other. What am I (or LilyPond) doing wrong?
>
> I’m writing this to the bug list because it’s a 2.21 feature and at
> least from the existing documentation I’m not able to produce correct
> output which is a program or documentation bug ;)

It’s not a \partial or \applySwingWithOffset problem but a problem with
how \applySwing works: It seems to take the notes in input order instead
of sounding order/time. This means that you can have problems with
unfold repeats and simultaneous music:

\version "2.21.0"
\include "swing.ly"

% bad: all c are long, all d short
\tripletFeel 8 {
   \repeat unfold 8 c'8
   \repeat unfold 8 d'8
}

% good (even number of notes)
\tripletFeel 8 {
   \repeat unfold 8 { c'8 d' }
}

% bad (odd number of notes):
% all c and e are long, all d short
\tripletFeel 8 {
   \repeat unfold 8 { c'8 d' e' }
}

% good (even number of notes in the first staff)
\tripletFeel 8 <<
   \new Staff { c'8 8 8 8 8 8 8 8 }
   \new Staff { d'8 8 8 8 8 8 8 8 }
 >>

% bad (odd number of notes in the first staff):
% the swing is shifted in the second staff
\tripletFeel 8 <<
   \new Staff { c'8 8 8 8 8 8 8 8 8 }
   \new Staff { d'8 8 8 8 8 8 8 8 8 }
 >>

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond