[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macro for instrument changes
From: |
Stefan Thomas |
Subject: |
Re: macro for instrument changes |
Date: |
Sat, 29 Dec 2007 22:17:45 +0100 |
Dear Wilbert,
many thanks!
It works also on version 2.11.34!
Wilbert Berendsen schrieb am 29.12.2007:
> 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.
>