lilypond-user
[Top][All Lists]
Advanced

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

Re: \transpose not work working inside define-music-function


From: Phil Holmes
Subject: Re: \transpose not work working inside define-music-function
Date: Mon, 28 Dec 2015 11:19:34 -0000


This was answered yesterday.  Please check the list.

--
Phil Holmes
 
 
----- Original Message -----
From: John Smith
Sent: Saturday, December 26, 2015 11:01 PM
Subject: \transpose not work working inside define-music-function

I'm trying to define a music function that transposes a chord and a melody multiple times.  But for some reason, the transposition is done only once.
 
Here's my attempt:
 
repeatpattern =
#(define-music-function (parser location chord pattern) (ly:music? 
ly:music?)
  #{
  <<
  \new ChordNames {
    \transpose c d { #chord }
    \transpose c e { #chord }
  }
  \new Staff {
    \transpose c d { #pattern }
    \transpose c e { #pattern }
  }
  >>
  #})
 
\score {
  \repeatpattern { c1 } { c'4 d' e' r }
}
 
Any ideas for why this is not working and how to fix it? (i.e., it 
should transpose "c d e" into "d e f#" and "e f# g#", not into "f# g# 
a#").
 


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

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