lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is it called and can I do it?


From: Guy Stalnaker
Subject: Re: What is it called and can I do it?
Date: Sun, 15 Dec 2013 21:42:53 -0600

Oh my god! I do a lot with lilypond, but it's moments like these when I learn just how much I do not know about it. Amusing there appears to be stuff you don't understand, too. LOL I know it's all relative, but still.

Thank you. I'm headed to bed here in Wisconsin. Will try it out tomorrow.

Guy

-- 
"There is only love, and then oblivion. Love is all we have
to set against hatred." (paraphrased) Ian McEwan

Guy Stalnaker

On Dec 15, 2013, at 8:33 PM, Alex Loomis <address@hidden> wrote:

Disclaimer: the override inside of the relative block comes from this thread, I have no idea how it works.


\version "2.17.29"


reminder =

#(define-music-function

(parser location note)

(ly:music?)

#{

\once \override ParenthesesItem #'font-size = #3

\once \override NoteColumn #'X-offset = #1

\grace { \parenthesize $note }

\once \override NoteColumn #'X-offset = #1

#}

)


\relative c' {

\override ParenthesesItem #'stencil = #(lambda (grob)

(let* ((acc (ly:grob-object (ly:grob-parent grob Y) 'accidental-grob))

(dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))

(if (not (null? acc)) (ly:pointer-group-interface::add-grob grob 'elements acc))

(if (not (null? dot)) (ly:pointer-group-interface::add-grob grob 'elements dot))

(parentheses-item::print grob)))

dis \reminder e! f

}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]