[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use of variables to add lyrics
From: |
Michael Hendry |
Subject: |
Use of variables to add lyrics |
Date: |
Mon, 16 Jul 2018 10:25:58 +0100 |
Dear ‘ponders,
I’m currently cleaning up leadsheets for a few summer Dixieland jazz band gigs,
providing concert, Bb and Eb versions, along with a vocalist’s version if
necessary (just a concert-pitch version with the lyrics appended to the end).
I’m able to use variables for the Head and the Chords, which allows me to put
the production of \books in various keys into generic \include files, but the
closest I’ve been able to get with the vocalist’s version is to include a local
(song-specific) include file for each song after the generation of the staff
with the melody and chords.
Here is the generic include file for the Vocal part:
%%%%%%%%%%%%%%%
% Vocal version
#(define output-suffix "vocal")
\book {
\score {
<<
\PieceTranspose { \TheChords }
\PieceTranspose { \TheHead }
>>
\layout {
\context {
\Score
\consists #(custom-line-breaks-engraver BarLayout)
}
}
\header {
piece = \markup { \fontsize #-1 "Concert + Vocal" }
}
}
\include "TheWords.ily"
}
and here is the specific include file for the lyrics:
%%%%%%%%%%%%%
% "TheWords.ily"
\markup {
\huge
\fill-line { % spread columns across the whole page
\column {
"[1st Column of Verses]"
}
\column {
"[2nd Column of Verses]"
}
} % fill-line
} % markup
What I’d like to do is to define variables for the two columns of verses within
the body of the song file, and deal with them like \TheChords and \TheHead.
This way all the song-specific information will be in one compact file, with
generic code held in include files.
Any help would be gratefully received.
Regards,
Michael
- Use of variables to add lyrics,
Michael Hendry <=