lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: concatenating/converting string variables ?


From: Nick Payne
Subject: Re: concatenating/converting string variables ?
Date: Fri, 17 May 2013 19:47:07 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

On 17/05/13 17:45, Paul Malcolm wrote:

excuse me, just a trivial question, but I cannot seem to find the answer.
I want to add the date variable to one element of text in my title.

I have this in the preamble

date = #(strftime "%d-%m-%Y" (localtime (current-time)))

What I want to do is somehow add/concatenate this to a text string
for the name of person doing the arranging, which appears in the
header block, i.e.

arranger = "Arr.  Maestro Smithington-Smythe"

How do I do this so I finally see

   Arr. Maestro Smithington-Smythe, 17/May/2013


Something like this:

date = #(strftime "%d-%m-%Y" (localtime (current-time)))
Arranger = "Arr.  Maestro Smithington-Smythe"

\header {
  composer = "Composer"
  title = "Title"
  arranger = \markup { \Arranger \date }
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]