[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom markup help
From: |
Nick Payne |
Subject: |
Re: custom markup help |
Date: |
Sat, 23 May 2015 21:51:42 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 23/05/2015 21:24, Damian leGassick wrote:
\version "2.18.0"
#(define-markup-command (sd layout props sdnum) (markup?)
#:properties ((baseline-skip 0.5))
"Put a number with a carat above the note."
(interpret-markup layout props
#{\markup \override #`(baseline-skip . ,baseline-skip)
\column { \small {^ #sdnum }} #}))
{g^\markup {\sd 3}}
Don't use the name baseline-skip for the baseline-skip value. Change it
to something else and it works:
\version "2.18.0"
#(define-markup-command (sd layout props sdnum) (markup?)
#:properties ((skip 0.5))
"Put a number with a carat above the note."
(interpret-markup layout props
#{\markup \override #`(baseline-skip . ,skip)
\column { \small {^ #sdnum }} #}))
{g^\markup {\sd 3}}
skip.png
Description: PNG image