lilypond-user
[Top][All Lists]
Advanced

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

issue with \transpose and \relative


From: John Doe
Subject: issue with \transpose and \relative
Date: Wed, 6 Feb 2019 09:03:20 +0800

Hi, all,

The Notation Reference section 1.1.2 says "Music inside a \transpose block is absolute unless a \relative is included in the block". I'm writing a function that uses \transpose to change a variable's pitch in a function.

How can I check if the music entered was entered in a \relative block? Can I?

Below is a minimal example showing the problem I'm having, along with a png (attached) demonstrating the output:

    \version "2.19.82"
    fall = #(define-music-function (input) (ly:music?)
        #{ $input \transpose c g, $input #})
              { \fall <e' b' e''>4 e2^"absolute"_"right"}
    \relative { \fall <e' b' e>4e,2^"relative"_"wrong" }

I hope this is clear enough—running low on sleep…

Thanks,

Randy

Attachment: transpose.png
Description: PNG image


reply via email to

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