[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: changePitch and ties
From: |
Jakob Kühnemann |
Subject: |
Re: changePitch and ties |
Date: |
Thu, 10 Dec 2015 08:18:30 -0700 (MST) |
Gilles THIBAULT wrote
>>changePitch at http://gillesth.free.fr/Lilypond/changePitch/changePitch.ly
>>defineTransform in LSR 346
>
>>However, each has its deficiencies, and I now need to code some music
which
>>neither of these utils can handle. The rhythmic pattern to be repeated
>> >involves ties. 346 handles these but changePitch doesn't.
>
> Sorry to answer so late.
> With changePitch and ties, you can use the function \samePitch.
> It is ( shortly ) discribed in section 6) of the doc of \changePitch :
> http://gillesth.free.fr/Lilypond/changePitch/change-pitch-doc.pdf
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%
> \include "changePitch.ly"
>
> pattern = { \samePitch {c2 ~ c8} c4. }
>
> \changePitch \pattern
> { <c'e'>^\markup{Ok now} <d'f'> <e'g'> <f'a'>
> }
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%
>
> Gilles
>
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@
> http://lists.gnu.org/mailman/listinfo/lilypond-user
I just found out that changePitch is very useful to write homophonic
passages in \parallelMusic!
%%%%%%%%%%%%%%%%%%
\version "2.19.32"
\include "changePitch.ly"
\parallelMusic #'(one two three) {
\changePitch
{ 4 8 \samePitch { 8~ 8 } 8 8 8 | }
{
c'' d'' e'' f'' g'' a''
a' b' c'' d'' c'' cis''
f' g' a' b' as' ges'
}
}
<<
\one
\two
\three
>>
%%%%%%%%%%%%%%
But there is still a small problem with ties.
It's not always possible to use \samePitch.
%%%%%%%%%%%%%%%%
{ 4 4~ \tuplet 3/2 { 8 8 8 } 4 | }
%%%%%%%%%%%%%%%%
Would it be possible to tell changePitch to automatically repeat the pitch
of a tied note?
I tried to understand the scheme code to find a solution by myself. But once
again I discovered the limits of my scheme-abilities very soon..
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/changePitch-and-ties-tp35389p184634.html
Sent from the User mailing list archive at Nabble.com.
- Re: changePitch and ties,
Jakob Kühnemann <=