[Top][All Lists]

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

Re: scheme modalTranspose

From: Gianmaria Lari
Subject: Re: scheme modalTranspose
Date: Sat, 10 Mar 2018 08:04:19 +0100

On 10 March 2018 at 02:59, Andrew Bernard <address@hidden> wrote:
Hi Gianamari,

Add a numerical parameter.

    \version "2.19.81"
    multiModal = #(define-music-function (scale patternMelodic num) (ly:music? ly:music? number?)
                 #@(map(lambda (p)
                   #{ \modalTranspose c #(ly:make-pitch -1 p) $scale $patternMelodic #})
                 (iota num))

    scale = {c d e f g a b}

    \score {
      \multiModal \scale {c' d' c' r} 5
      \layout {}


Ahhh!!!! I did the same but with $num ..... 

Thank you Andrew!

reply via email to

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