[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reducing properties junk using variables
From: |
Xavier Scheuer |
Subject: |
Re: Reducing properties junk using variables |
Date: |
Thu, 13 Oct 2011 23:22:48 +0200 |
2011/10/13 Stjepan Horvat <address@hidden>:
> 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 <address@hidden>