bug-lilypond
[Top][All Lists]
Advanced

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

Re: Articulate.ly prall & trill


From: Hans Aberg
Subject: Re: Articulate.ly prall & trill
Date: Thu, 26 Jun 2014 23:11:26 +0200

On 26 Jun 2014, at 22:27, James <address@hidden> wrote:
> http://code.google.com/p/lilypond/issues/detail?id=3975

Fine. I recall LilyPond does not have a way to indicate accidental intervals as 
operators, but one way around that would be to indicate the two notes involved 
rather than the accidental, and then compute the accidentals from that, as is 
the case in \transpose and the staff notation.

So I added to the example functions ad hoc named \Mordent, \Prall and \Turn to 
show how that might look like. It would then be possible to use this in the 
MIDI output, and it will work also for microtonality (for example, Graham 
Breed’s regular.ly file).

The expansion of \Turn I have indicated, a quintuplet, is one used in jazz, for 
example, but there are otherwise a lot of ways to execute a turn. For fun, 
instead of adding a \Reverseturn, I switched the order of the auxiliaries in 
\Turn. I have otherwise no personal preference of what the syntax might be.

----
\include "articulate.ly"

\language "english"

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


music = \new Staff = main {
  \tempo 4 = 120
  \time 2/4

  \key a \minor

  \relative c'' {
    \below a4\mordent^\markup{\sharp}  a32 gs a8. |
%   \Mordent a4 gs  a32 gs a8. |

    \above a4\prall^\markup{\flat}     a32 bf a8. |
%   \Prall a4 bf     a32 bf a8. |

    \below a4\mordent^\markup{\flat}   a32 gf a8. |
%   \Mordent a4 gf   a32 gf a8. |

    \above g4\prall^\markup{\sharp}    g32 as g8. |
%   \Prall g4 as     g32 as g8. |

%   \Turn a4 bf gs
    \tuplet 5/4 {a32 bf a gs a~} a8

    % Reverseturn by changing order of auxiliaries:
%   \Turn a4 gs bf
    \tuplet 5/4 {a32 gs a bf a~} a8 |
  }
}

\score {
  \music
        \layout {}
}

\score {
  \unfoldRepeats \articulate \music
        \midi {}
}
----




reply via email to

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