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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to