this works:
#(define-markup-command (instruct layout props text) (markup?) (interpret-markup layout props #{ \markup \italic \magnify #0.7 #text #})) mkTenor = \markup { \instruct "tenor"} \relative c' { d1-\mkTenor } =Marc On Sat, Feb 18, 2017 at 9:52 AM, Rob Torop <rob.to...@gmail.com> wrote: > > I have a bunch of repeated things like this > > d f \mark \markup \italic \magnify #0.7 "(tenor & trp.)" r16 > > where I put a little instruction over the melody > > I'd like to have a little function to call instead of \mark \markup > \italic \magnify #0.7 "blah", with the "blah" as a parameter. > > So I tried this > > #(define-markup-command (instruct layout props text ) (markup?) > (intepret-markup layout props > #{ > \markup \italic \magnify #0.7 #text > #})) > > and then put this in my code > > d f \mark \instruct "(tenor & trp.)" r16 > > > But it doesn't like it! > > I am sure this is very easy, and maybe I should be using a music-function > instead of the markup command definition. > > Can someone help me? > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > -- -- Marc
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user