bug-lilypond
[Top][All Lists]
Advanced

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

Re: Double transpose when in tags within music function


From: Urs Liska
Subject: Re: Double transpose when in tags within music function
Date: Thu, 09 Jan 2014 13:01:00 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Am 09.01.2014 12:55, schrieb Ole V. Villumsen:
Expected behaviour of the example below: engrave a d (transpose the c to d).
Actual behaviour: engraved an f. Seems to have done both of the
transpositions described in the two different tags in the music function
(transposed c to d, then to f, or the other way around).

\version "2.18.0"

myTranspose =
   #(define-music-function(parser location theMusic) (ly:music?)
      #{
         \tag #'cd { \transpose c d #theMusic }
         \tag #'df { \transpose d f #theMusic }
      #})

{ \keepWithTag #'cd { \myTranspose { c'1 } } }

The problem seems to be only when the tags are inside a music function (if
this is not supposed to work, an appropriate error message should be given).
The problem seems to be only with transposition; other music I put inside
the tags gets filtered as expected.




If you replace

#theMusic

with

$theMusic

it works as expected.

But I'm sure David can explain you why.

Urs



reply via email to

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