2011/10/13 Stjepan Horvat <zvanste...@gmail.com>:
> Hi..
> I have a lot of properties junk that I use to override some properties in
> each file of my song book so i was thinking that I could make some include
> files eg config.ly. In what way could i define this functions from what I
> have.
> \new ChordNames {
>   \semiGermanChords
>   \override ChordName #'font-size = #3
>   \override ChordName #'font-name = #"Free Serif"
>   \set chordRootNamer = #my-chord-name->pop-markup
>   \set chordChanges = ##t
>   \chords
>                            }
> So i whould only use something like that:
> \new ChordNames { \mySettings \chords }

Did you try simply

mySettings = {
  \semiGermanChords
  \override ChordName #'font-size = #3
  \override ChordName #'font-name = #"Free Serif"
  \set chordRootNamer = #my-chord-name->pop-markup
  \set chordChanges = ##t
}

\new ChordNames { \mySettings \chords }

?

Or alternatively you could define you settings in the layout block :

\layout {
  \context {
    \ChordNames
    % semiGermanChords
    chordRootNamer = #(chord-name->german-markup #f)
    chordNoteNamer = #note-name->german-markup

    \override ChordName #'font-size = #3
    \override ChordName #'font-name = #"Free Serif"
    chordRootNamer = #my-chord-name->pop-markup
    chordChanges = ##t
  }
}

Cheers,
Xavier

-- 
Xavier Scheuer <x.sche...@gmail.com>

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

Reply via email to