lilypond-user
[Top][All Lists]
Advanced

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

Re: macro for instrument changes


From: Wilbert Berendsen
Subject: Re: macro for instrument changes
Date: Sat, 29 Dec 2007 20:42:52 +0100
User-agent: KMail/1.9.7

Op vrijdag 28 december 2007, schreef Valentin Villenave:
> So, who's up for writing a snippet? :)

I wrote this, which works well in 2.11.36:

changeInstrument =
#(define-music-function (parser location string) (string?)
        (make-music
                'TextScriptEvent
                'direction UP
                'text (markup #:bold (#:box string))))

inst = #changeInstrument % a more convenient name

{ c \inst "Horn" d e f }

Write \inst "Name" (or \changeInstrument "Name") before the note the markup 
should be attached to.

Of course you could also do:
englishHorn = \markup \box \bold "English Horn"
etc.


Met vriendelijke groet,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
"You must be the change you wish to see in the world."
        -- Mahatma Gandi




reply via email to

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