lilypond-user
[Top][All Lists]
Advanced

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

Re: removing tags


From: Graham Percival
Subject: Re: removing tags
Date: Tue, 08 May 2007 02:04:23 -0700
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

Bernard, if this helps you, could you please add it to LSR so that other people can easily find this answer?
http://lsr.dsi.unimi.it/

Cheers,
- Graham


Michael Lauer wrote:
Bernard Hurley <bernard <at> fong-hurley.org.uk> writes:

Hi all,

Is there any way of removing tags from music?

You can write a music function to do it:

stripTags = #(define-music-function (parser loc m) (ly:music?)
        (music-map (lambda (x) (ly:music-set-property! x 'tags '()) x) m))

one= {a'' \tag #'A b'' c'' \tag #'C f''}
two = {\keepWithTag #'A \one }
three = { \tag #'B \stripTags \two \tag #'E a'' }

{
d'' \keepWithTag #'B \three }

Hope this helps--
Michael



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






reply via email to

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