lilypond-user
[Top][All Lists]
Advanced

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

Re: concatenating notes with a music expression


From: Malte Meyn
Subject: Re: concatenating notes with a music expression
Date: Tue, 15 May 2018 11:35:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0



Am 15.05.2018 um 10:27 schrieb Gianmaria Lari:
Thank you Gilles!!!! I have yet a problem, how can engrave the foo
generated list in a score?

You should make a music-function:

\version "2.19.81"

foo =
#(define-music-function (seq1 seq2) (ly:music? ly:music?)
   (make-sequential-music
    (map (lambda (note)
           (make-sequential-music
            (cons note (ly:music-property seq2 'elements))))
      (ly:music-property seq1 'elements))))

seqI = { c b a }
seqII = { f g }

\foo \seqI \seqII



reply via email to

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