lilypond-user
[Top][All Lists]
Advanced

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

Re: addFingering


From: Gilles THIBAULT
Subject: Re: addFingering
Date: Fri, 13 Jan 2017 18:50:30 +0100
User-agent: KMail/4.14.5 (Linux/4.4.39-desktop-1.mga5; KDE/4.14.5; x86_64; ; )

Le vendredi 13 janvier 2017, 14:06:23 Gianmaria Lari a écrit :
> I have a problem with (the fantastic) addFingering snippet.
> 
> Here it is my simple code.
> 
> \version "2.19.54"
> \include "addFingering.ly"
> 
> {
>   \addFingering  {a b a b} #"12"
> }
> 
> {
>   \addFingering  {\repeat unfold 2 {a b}} #"12"
> }

You can create your own repeat function :

%%%

nCopy = #(define-music-function (parser location n music)(integer? ly:music?)
(cond
  ((> n 1)(ly:music-deep-copy (make-sequential-music (make-list n music))))
  ((= n 1) music)
  (else (make-music 'Music 'void #t))))

 
 \addFingering  { \nCopy #2 {a b} } #"12"
    
%%%

David Kastrup explains how to make it work in \relative mode in this thread : 
  http://lists.gnu.org/archive/html/lilypond-user/2015-11/msg00361.html

-- 
Gilles



reply via email to

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