[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Markup-Command shortcut
From: |
foxfanfare |
Subject: |
Markup-Command shortcut |
Date: |
Thu, 9 Apr 2020 11:09:58 -0700 (MST) |
Hi all,
Quick question, I made the following shortcut which draw an arrow of custom
lenght:
#(define-markup-command (arrow layout props size) (number?)
(interpret-markup layout props
(markup
#:line
(#:fontsize 3
(#:general-align 0 -1
(#:override (cons (quote thickness) 2)
(#:combine
(#:draw-line (cons 0 size))
(#:arrow-head 1 -1 #f))))))))
\relative c' {
c1^\markup \arrow #2
}
---
I wonder, is it possible to skip the \markup declaration before the command
and just have to write something like c1^\arrow #1 ?
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
- Markup-Command shortcut,
foxfanfare <=