[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with \cueDuring
From: |
Werner LEMBERG |
Subject: |
Re: problems with \cueDuring |
Date: |
Fri, 26 Nov 2004 09:17:13 +0100 (CET) |
> One of the options is to traverse all music expressions recursively,
> and set the music property #'quoted-events to '() if it is defined
>
> untested code:
>
> killCues =
> #(def-music-function
> (location music) (ly:music?)
> (music-map (lambda (mus)
>
> (set! (ly:music-property mus 'quoted-events '())
> (set! (ly:music-property mus 'quoted-context-id '())
> (set! (ly:music-property mus 'quoted-context-type '())
>
>
> )) music))
Mhhm, this is indeed untested... I can't make it work :-) The number
of parentheses doesn't fit, and I couldn't find a combination which
doesn't give a Scheme error.
Am I correct that it is to be used like this?
\killCues
\new Voice {
R1*20
\cueDuring #"clarinet" #1 { R1 }
g4 g2.
}
Werner