]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/adding-the-current-date-to-a-score.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / adding-the-current-date-to-a-score.ly
diff --git a/Documentation/snippets/adding-the-current-date-to-a-score.ly b/Documentation/snippets/adding-the-current-date-to-a-score.ly
new file mode 100644 (file)
index 0000000..59ffd87
--- /dev/null
@@ -0,0 +1,54 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.14.0"
+
+\header {
+  lsrtags = "text, titles"
+
+%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
+  texidoces = "
+Con algo de código de Scheme, se puede añadir fácilmente la fecha
+actual a una partitura.
+"
+  doctitlees = "Añadir la fecha actual a una partitura"
+
+
+%% Translation of GIT committish: 05624d5147843d2fcbd6e4e126f1fd43142ac6e5
+  texidocfr = "
+Avec un peu de code Scheme, voici comment ajouter facilement
+la date du jour à votre partition.
+"
+
+  doctitlefr = "Ajout de la date du jour à une partition"
+
+  texidoc = "
+With a little Scheme code, the current date can easily be added to a
+score.
+
+"
+  doctitle = "Adding the current date to a score"
+} % begin verbatim
+
+% first, define a variable to hold the formatted date:
+date = #(strftime "%d-%m-%Y" (localtime (current-time)))
+
+% use it in the title block:
+\header {
+  title = "Including the date!"
+  subtitle = \date
+}
+
+\score {
+  \relative c'' {
+    c4 c c c
+  }
+}
+% and use it in a \markup block:
+\markup {
+  \date
+}
+