I have pitch names defined as a alist in Lilypond as below and it works fine. \version "2.18.2"
pitchname = #`(
(saa . , (ly:make-pitch -1 0 NATURAL))
(raa . , (ly:make-pitch -1 1 FLAT))
(sa . , (ly:make-pitch -1 0 NATURAL))
(ri . , (ly:make-pitch -1 1 FLAT))
(ga . , (ly:make-pitch -1 2 NATURAL))
)
#(ly:parser-set-note-names parser pitchname)
musicA = \relative sa' { sa4 ri ga sa ri ga sa ri ga ri saa ga ri sa ga raa }
\score {\musicA}
I would like to define the variable pitchname as sum/join/append/cons of two a lists, as below:
firstpart = #`(
(saa . , (ly:make-pitch -1 0 NATURAL))
(raa . , (ly:make-pitch -1 1 FLAT))
)
secondpart = #'(
(sa . , (ly:make-pitch -1 0 NATURAL))
(ri . , (ly:make-pitch -1 1 FLAT))
(ga . , (ly:make-pitch -1 2 NATURAL))
)
and combine the two, say:
pitchname = (cons #firstpart #secondpart)
The last statement combining the two parts is not working. Can someone tell me what I am doing wrong here?