[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with doublebreve function
From: |
Kieren MacMillan |
Subject: |
Re: help with doublebreve function |
Date: |
Thu, 9 Apr 2009 07:51:24 -0400 |
Hello,
Here's a slightly more efficient, but no less in-need-of-Scheming,
version:
\version "2.12.2"
dbreve =
#(define-music-function (parser location note) (ly:music?)
#{
\once \override ParenthesesItem #'stencil =
#ly:text-interface::print
\once \override ParenthesesItem #'text =
\markup \translate #'(-0.4 . -0.46) \override #'(thickness . 2)
{ \draw-line #'(0 . 0.92) \hspace #2.26 \draw-line #'(0 . 0.92) }
\parenthesize $note
#})
\score { { \dbreve b'\breve*2 } }
\score { \displayMusic { b'\breve } }
\score { \displayMusic { \dbreve b'\breve*2 } }
I've included the two relevant \displayMusic blocks as well, in case
anyone is able to help me turn this into the simpler function
b'\dbreve
Thanks!
Kieren.