That's great! Thanks a lot! Just a question, do you think it's possible to have left/right as a param instead of defining a scheme function for each one ? For example, you might want to have more option like use [ instead of ( and then you need to create two others functions and new LBC/RBC and it seems easier to have something like this in chord mode.
\set chordNameFunction = #my-parenthesis-ignatzek-chord-names \set bracket= "round" \set bracket-dir = "left" And a scheme function with some if /then/else statements. You see what I mean ? Kieren MacMillan wrote: > > Hi all, > > This may be the easiest solution? > > \version "2.12.2" > > #(define (left-parenthesis-ignatzek-chord-names in-pitches bass > inversion context) > (markup #:line ("( " (ignatzek-chord-names in-pitches bass inversion > context)))) > > #(define (right-parenthesis-ignatzek-chord-names in-pitches bass > inversion context) > (markup #:line ((ignatzek-chord-names in-pitches bass inversion > context) " )"))) > > LPC = { \set chordNameFunction = #left-parenthesis-ignatzek-chord- > names } > RPC = { \set chordNameFunction = #right-parenthesis-ignatzek-chord- > names } > NPC = { \unset chordNameFunction } > > chordset = \chordmode > { > c1:7 g1:7 > \LPC a1:7 \NPC f1:7 > c1:7 \RPC g1:7 \NPC > c1:7 g1:7 > } > > \score > { > \new ChordNames \chordset > } > > Hope this helps! > Kieren. > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://www.nabble.com/Parenthesizing-chord-names-tp22268521p22287546.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user