]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-the-current-date-to-a-score.ly
Merge branch 'master' into lilypond/translation
[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: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
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: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4
21   texidocfr = "
22 Avec un peu de code Scheme, voici comment ajouter facilement
23 la date du jour à votre partition.
24 "
25   doctitlefr = "Ajout de la date du jour à une partition"
26
27   texidoc = "
28 With a little Scheme code, the current date can easily be added to a
29 score.
30
31 "
32   doctitle = "Adding the current date to a score"
33 } % begin verbatim
34
35 % first, define a variable to hold the formatted date:
36 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
37
38 % use it in the title block:
39 \header {
40   title = "Including the date!"
41   subtitle = \date
42 }
43
44 \score {
45   \relative c'' {
46     c4 c c c
47   }
48 }
49 % and use it in a \markup block:
50 \markup {
51   \date
52 }
53