On Thu, Dec 21, 2006 at 03:05:25PM -0800, [EMAIL PROTECTED] wrote: > A define-music-function would be better than tags, then the whole library > would be inside a function where you just specify the chord name as a string > parameter then have a giant IF statement to generate the named chord, (root > and duration would also be function parameters).
Indeed > > Like this: > > \myChordLibrary c, "Maj7_2", 4 > > The above would generate a chord with a transpose root of c, with the > inversion of "Maj7_2" (version 2 of a maj7 chord), for a quarter note > duration. > > Do you know how to use define-music-function (I dont)? Would this be a hard > function to write? an unchecked stuf may be: myChord = #(define-music-function (parser location root chord duration) (ly:music? string integer) #{ \transpose c $root \keepWithTag $chord \varMyChordLibrary $duration #}) But obviously it won't work ;-) I tried to play with \displayMusic and (display-scheme-music ...) functions. It helps a lot. Just let me some time and I will have a look ater new year's day. -- Sebastien Gross _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user