lilypond-user
[Top][All Lists]
Advanced

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

Re: macro for instrument changes


From: Nicolas Sceaux
Subject: Re: macro for instrument changes
Date: Thu, 27 Dec 2007 17:25:46 +0100


Le 27 déc. 07 à 17:13, Nicolas Sceaux a écrit :


Le 27 déc. 07 à 16:40, Stefan Thomas a écrit :

Dear Lilypond-users,
I am sure there is an easy way to create a macro for the layout of
the two markup-commands in the below quoted example:

\relative c' {
c1^\markup {\bold \box "Englischhorn" }
c1^\markup {\bold \box "Heckelphon" } }

I would like to write something like
{ c1\change "Englischhorn" c1 \change "Heckelphon" }
How can I do it?

You want to define a new markup command, see:
<http://lilypond.org/doc/v2.11/Documentation/user/lilypond/New-markup-command-definition >

oops, this answer is not complete.
Defining a markup command will make it possible to write eg:

  c1^\markup \change Englischhorn"

which may be still too verbose.

Less verbose would be a music command expanding from:
  \changeInstrument "Englischhorn" c1
to:
  << c1 s4*0^\markup \bold \box "Englischhorn" >>

See:
<http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Music-functions >

nicolas





reply via email to

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