lilypond-user
[Top][All Lists]
Advanced

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

Re: modaltranspose & scheme function


From: Aaron Hill
Subject: Re: modaltranspose & scheme function
Date: Thu, 19 Mar 2020 04:27:23 -0700
User-agent: Roundcube Webmail/1.4.2

On 2020-03-19 4:20 am, Gianmaria Lari wrote:
multiModal =
#(define-music-function (scale patternRhytmic patternMelodic) (ly:music?
ly:music? ly:music?)
   #{
     #@(map(lambda (p)
#{ \changePitch $patternRhytmic \modalTranspose c #(ly:make-pitch -1
p) $scale $patternMelodic #})
     (iota 8))
   #})

I would like to modify it so that the generated output would be:

c4 d8 e
b'4 c8 d
a'4 b'8 c

(iota 8) produces (0 1 2 3 4 5 6 7).
(iota 8 0 -1) would produce (0 -1 -2 -3 -4 -5 -6 -7).


-- Aaron Hill



reply via email to

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