lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Suite de notes répétées


From: Olivier Miakinen
Subject: Re: Suite de notes répétées
Date: Sun, 24 Nov 2019 10:57:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Le 24/11/2019 08:55, martial a écrit :
> 
> Voilà, mais je ne pense pas qu'on y gagne en temps de frappe :-)
> %pour version "2.19." 
> %==================
> \version "2.19.83" 
> repeatNote = #(define-music-function (note) (ly:music?)
>          (let ((note2 (ly:music-deep-copy note)))
>            (set! (ly:music-property note 'NoteEvent)
>                  (cons (make-music 'NoteEvent )
>                        (ly:music-property note 'NoteEvent)))
>            (make-music 'SequentialMusic 'elements (list note note2))))
>            
> \relative c' { \repeatNote c \repeatNote e \repeatNote g \repeatNote a }      
> %==================

Haha ! Je suis persuadé qu'en Scheme il est possible d'écrire une
fonction \repeatNotes que l'on appellerait comme ceci :

\relative c' { \repeatNotes { c e g a } }




reply via email to

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