lilypond-devel
[Top][All Lists]
Advanced

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

problems with \cueDuring


From: Han-Wen Nienhuys
Subject: problems with \cueDuring
Date: Fri, 26 Nov 2004 01:51:14 +0100

address@hidden writes:
> 
> Right now I've found some time to study the new \cueDuring command.
> Unfortunately, it is not very useful as currently implemented: It
> fails to handle the case where the same voice is needed without cues.
> 
> What's still missing is a command which makes
> 
>   \cueDuring #"clarinet" #1 { R1 }
> 
> expand to
> 
>   R1
> 
> In TeX I would say
> 
>   \def\noCues{
>     \def\cueDuring##1##2##3{##3}
>   }
> 
> Can you provide the equivalent Scheme code?


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))
        

-- 

 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

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