[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing tags
From: |
Michael Lauer |
Subject: |
Re: removing tags |
Date: |
Mon, 30 Apr 2007 13:44:42 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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