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.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to