lilypond-user
[Top][All Lists]
Advanced

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

Re: Extending Lilypond's chord vocabulary PLUS Help on command definitio


From: Tim McNamara
Subject: Re: Extending Lilypond's chord vocabulary PLUS Help on command definition
Date: Wed, 9 Nov 2011 09:49:56 -0600

On Nov 9, 2011, at 8:45 AM, Robert Schmaus wrote:

> Hi Jim & everyone,
> 
> I'm currently preparing a macro file "jazz-chords.ily" which contains (my 
> version of) common jazz chord notation. I will share that file as soon as it 
> is in a usable state.
> 
> However, right now, I just worked out how to define the markups of each chord 
> by defining the markup explicitly. I would like to do that more elegantly by 
> defining markup commands.
> If, e.g., I would like to create a command \jcRaise such that the expression
> 
> \markup{ \raise #1.5 {\tiny "Maj9"} }
> 
> would just become
> \jcRaise{ "Maj9" }
> 
> or possibly
> \markup\jcRaise{ "Maj9" }
> 
> how do I define the markup command for this? I checked the manual here
> http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Markup-construction-in-Scheme#Markup-construction-in-Scheme
> 
> and tried to build such a function accordingly, but didn't really get 
> anywhere. I guess I would need to start somewhere more basic.

Would the #(define-music-function work for this?

I am assuming that you have seen the pop-chord.ly file already and don't want 
to use that approach.


reply via email to

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