[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
\copyArticulations copies not only articulations
From: |
Henning Plumeyer |
Subject: |
\copyArticulations copies not only articulations |
Date: |
Wed, 03 Oct 2012 08:59:40 +0200 |
User-agent: |
Opera Mail/12.02 (Linux) |
In the following example the function \copyArticulations which can be
found at
http://gillesth.free.fr/Lilypond/copyArticulations/copyArticulations.ly
copies the _ties_ from the original music. I don't regard ties as
articulation. Can the function be improved so that it ignores ties?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.16.0"
\include "copyArticulations.ly"
{
\copyArticulations
% no articulation included but music has tied notes
{ c ~ c c ~ c }
% ties (not slurs!) get copied here
{ a' a' a' b' }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Lilypond tries to copy the second tie also which does not work as the
destination notes are not the same. You get the warning
...
tiesCopied.ly:9:10: warning: unterminated tie
{ a' a'
a' b' }
...
The reason I ask is that I have several parts with nearly the same rhythm
and articulation. But when the "master" part has tied notes where the
other parts have not I run into problems.
Henning
tiesCopied.preview.png
Description: PNG image
tiesCopied.ly
Description: Binary data