If I: music = \relative c'' { \tag #'a { a a a a } \tag #'b { b b b b } }
and then: musicA = \keepWithTag #'a \music \keepWithTag gives me the equivalent of: musicA = \relative c'' { \tag #'a { a a a a } } What I want is: musicA = \relative c'' { a a a a } In other words, I'd like to find a function similar to \keepWithTag, except that the returned music expression would be entirely free of all tags. Perhaps even better would be a general function which simply strips \tag attributes from a music expression, but leaves the tagged music itself. Is this possible? Jim music = \relative c'' { \tag #'a { a a a a } \tag #'b { b b b b } } musicA = \keepWithTag #'a \music % Using \keepWithTag gives me: % musicA = \relative c'' { \tag #'a { a a a a } } % what I want is: % musicA = \relative c'' { a a a a } musicB = \keepWithTag #'b \music \markup "Music I:" \score { \music } \markup "Music II:" \score { \musicA } \markup "Music III:" \score { \keepWithTag #'aardvark \musicA } \markup "Music IV:" \score { \musicB } \markup "Music V:" \score { \keepWithTag #'beeblebrox \musicB } _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user