]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-the-current-date-to-a-score.ly
MusicXML: src-dir rather than srcdir.
[lilypond.git] / input / lsr / adding-the-current-date-to-a-score.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.64"
4
5 \header {
6   lsrtags = "titles"
7
8   texidoces = "
9 Con algo de código de Scheme, se puede añadir fácilmente la fecha
10 actual a una partitura.
11
12 "
13   doctitlees = "Añadir la fecha actual a una partitura"
14
15   texidoc = "
16 With a little Scheme code, the current date can easily be added to a
17 score.
18
19 "
20   doctitle = "Adding the current date to a score"
21 } % begin verbatim
22
23 % first, define a variable to hold the formatted date:
24 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
25
26 % use it in the title block:
27 \header {
28   title = "Including the date!"
29   subtitle = \date
30 }
31
32 \score {
33   \relative c'' {
34     c4 c c c
35   }
36 }
37 % and use it in a \markup block:
38 \markup {
39   \date
40 }