lilypond-user
[Top][All Lists]
Advanced

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

Re: \tag can't follow \lyricsto


From: Roman Stawski
Subject: Re: \tag can't follow \lyricsto
Date: Wed, 16 Jul 2008 13:31:23 +0200


Trevor Daniels wrote

OK, I see what you are trying to do.  The error is that
the order of the commands in the lyrics line is wrong,
and the \new Lyrics command should be followed by { .. }
just like \new Staff is.  Then it works fine, like this:


\new Staff { \new Voice = "dirge" { c''1 } }
\new Lyrics { \lyricsto "dirge" { Whoops } }
\tag #'harmony \new Staff {a'1}

Right.

The command order I'm using is from a really old template that I've
been using for years without problems. I came across your formulation
when checking an answer to another post on the bugs list.

Looks as if I'll have to update my templates. (Who's got the sed user
guide?)

However, there is an easier way to include or exclude
the harmony, without using tags, like this:


harmony = { \new Staff {a'1} }
<<
\new Staff { \new Voice = "dirge" { c''1 } }
\lyricsto "dirge" \new Lyrics { Whoops }
%\harmony %uncomment to include harmony
>>

That doesn't convince me.

Ideally, I want to produce different output from the same score
_without_ touching the contents. My idea (dream?) of using tags was
to eventually write a dollop of scheme that would be able to look at
the command line arguments and set \keepWithTag or \removeWithTag as
appropriate. However, the way that tags are implemented today isn't
powerful enough for what I want to do... they can only be used to filter
music expressions -- I'd like to be able to filter out markup, scores and
anything else in the input file. (Well, I did say 'dream'!).

At the moment I'm using a cobbled together solution partly based on tags,
and partly based on a perl preprocessor that does the filtering before
passing the input onto to Lilypond -- but pretty it ain't.

Tags are usually used for short sections of music.

You might find section 3.3.2 Different editions
from one source in the most recent version of the
2.11 docs worth a read - it was recently rewritten.

Yes, I have. That's where I found out about tags in the first place.

Thanks for your input, anyway.




reply via email to

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