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