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: Robert Schmaus
Subject: Re: Extending Lilypond's chord vocabulary PLUS Help on command definition
Date: Wed, 09 Nov 2011 15:45:59 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

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.

Could anyone please point the way?
Thanks a lot,
Robert




Am 11/9/11 8:26 AM, schrieb address@hidden:
How can I add a new chord to Lilypond's "chordmode" vocabulary?

A minor augmented triad is composed of a root, a minor third, and
an augmented fifth.  On lead sheets, I would like the markup to
be something like:

markup {
   \text "m"
   \super "aug"
}

How would I reference this chord in chordmode?  Perhaps

f:m.5+

or

f:maug

would be convenient.

I have accomplished some basic chord *naming* alterations,
following an example snippet in the documentation:

- - -
chExceptionMusic = {
   <c ees ges bes>1-\markup {
     \text "m"
     \super { "7" \musicglyph #"accidentals.flat" "5" }
   }
   <c e g b d'>1-\markup {
     \super "maj9"
   }
}

% Convert music to list and prepend to existing exceptions.
chExceptions = #( append
   ( sequential-music-to-chord-exceptions chExceptionMusic #t)
   ignatzekExceptions)
- - -

But adding a new chord (and a new chordmode identifier for it)
appears to be a whole different ball of wax.

Can someone who has done this before offer some insight on how
they did it?

Thank you!

Jim



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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