]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-the-current-date-to-a-score.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / adding-the-current-date-to-a-score.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.0"
8
9 \header {
10   lsrtags = "text, titles"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
13   texidoces = "
14 Con algo de código de Scheme, se puede añadir fácilmente la fecha
15 actual a una partitura.
16 "
17   doctitlees = "Añadir la fecha actual a una partitura"
18
19
20 %% Translation of GIT committish: 05624d5147843d2fcbd6e4e126f1fd43142ac6e5
21   texidocfr = "
22 Avec un peu de code Scheme, voici comment ajouter facilement
23 la date du jour à votre partition.
24 "
25
26   doctitlefr = "Ajout de la date du jour à une partition"
27
28   texidoc = "
29 With a little Scheme code, the current date can easily be added to a
30 score.
31
32 "
33   doctitle = "Adding the current date to a score"
34 } % begin verbatim
35
36 % first, define a variable to hold the formatted date:
37 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
38
39 % use it in the title block:
40 \header {
41   title = "Including the date!"
42   subtitle = \date
43 }
44
45 \score {
46   \relative c'' {
47     c4 c c c
48   }
49 }
50 % and use it in a \markup block:
51 \markup {
52   \date
53 }
54