Specifying instrument changes as markups

Revision as of 22:40, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is just a small useful macro when you need to specify multiple instrument changes on a same staff. Just write \inst "Name before the note the markup should be attached to.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=349

%LSR modified by P.P.Schneider on Feb.2014

inst =
#(define-music-function (string) (string?)
  #{ <>^\markup \bold \box #string #})

\relative c' { c \inst "Horn" d e f }