lilypond-user
[Top][All Lists]
Advanced

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

Re: problem with addTenuto


From: Gilles
Subject: Re: problem with addTenuto
Date: Sat, 01 Sep 2012 02:26:11 +0200
User-agent: Opera Mail/12.01 (Win64)

addTenuto = #(define-music-function (parser location x) (ly:music?)
 #{
 \copyArticulations {c--} $x
  #})
The below quoted snippet shows that it works fine, every note gets it's
tenuto sign, rests are left without, but: I still searching for a
possiblity to let the second of two tied-notes without a tenuto. Has anyone

I have added a function \skipTiedNotes as a separate one, because i am not absolutely sure that it must be the default behavior.
So your function becomes :

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

addTenuto = #(define-music-function (parser location x) (ly:music?)
 #{
 \copyArticulations {c--} \skipTiedNotes $x
 #})

 \addTenuto \relative { c4 d e f g1 ~ g4 f e d r4 c d 2 }

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

As i am a good guy, i also change the line :
  skipArti = \tag #skipCurrentArticulation s1*0
by
  skipArti = \tag #skipCurrentArticulation <>

I have uploaded the new file here :
http://gillesth.free.fr/Lilypond/copyArticulations/copyArticulations.ly

--
Gilles



reply via email to

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