bug-lilypond
[Top][All Lists]
Advanced

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

Re: tuplet, tremolo and cross staff


From: Philippe Raynaud
Subject: Re: tuplet, tremolo and cross staff
Date: Mon, 20 Aug 2007 20:17:14 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> I'm not top posting.
Hi Graham,

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Here you are the three tries until I've come to a solution
 (which is not musically correct, but the Midi output (with \unfoldRepeats)
 is apparently correct and sounds identical for the three tries !).
   The three tries concern the lower staff only:
   1. the first try seemed to me logical, but there was no cross staff:
on each staff, a quarter note dotted
   2. the second one allows the stem to cross the staff, but the lower note
   is not correct (a half note dotted on the lower staff sharing
   the same stem with a quarter note dotted on the upper staff)
   3. the third step gives a correct output (a quarter note dotted
   on each staff sharing the same stem), but the notation "fa16 s16",
   needed because of the brackets, is not musically correct.
   Before coming to that solution, I have tried many things,
   the three steps above are the main ones I remember. %}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.11.27"
\paper{ ragged-right=##t }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DEFINITIONS

% TUPLET ON TWO STAVES
crossingTuplet = {
 \stemUp
 \once \override Stem #'length = #16
 \once \override Stem #'cross-staff = ##t
 \once \override Stem #'flag-style = #'no-flag
}
% END DEFINITIONS


%%%%%%   1. PIANO RIGHT HAND: Notes

pianoUpNote = \relative c' {
 \clef treble
 \time 1/4
 \key c \major

 \stemUp

% 1
 \times 2/3 { \repeat "tremolo" 3 f8 } \break
% 2
 \times 2/3 { \repeat "tremolo" 3 f8 } \break
% 3
 \times 2/3 { \repeat "tremolo" 3 f8 }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%   2. PIANO LEFT HAND: Notes

pianoDownNote = \relative c {
 \clef bass
 \time 1/4
 \key c \major
 
% 1
 \times 2/3 { \crossingTuplet \repeat "tremolo" 3 f8 }
% 2
 \times 2/3 { \repeat "tremolo" 3 { \crossingTuplet f8 } }
% 3
 \times 2/3 { \crossingTuplet \repeat "tremolo" 3 { f16 s16 } }
}

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

%%%%%%% SCORE OUTPUT
\score {
 <<
  \new PianoStaff <<
   \new Staff = "up" << \autoBeamOff \pianoUpNote >>
   \new Staff = "down" << \autoBeamOff \pianoDownNote >>
  >>
 >>
 \layout { }
}







Graham Percival <gpermus <at> gmail.com> writes:

> 
> Hi Philippe,
> 
> Yes, please send a complete example -- complete, yet still small.  We 
> have some guidelines here:
> http://lilypond.org/web/devel/participating/bugs
> 
> (you may also want to check that this bug has not already been reported)
> 
> Cheers,
> - Graham








reply via email to

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