summaryrefslogtreecommitdiff
path: root/Konzerte
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-26 08:46:49 +0200
committerErich Eckner <git@eckner.net>2018-10-26 08:48:29 +0200
commitcb26cbc0f62cbaa4c8f6186784eee3ce330b4f0a (patch)
treed4463554a134aca4dc348038f026b0faf1df0b11 /Konzerte
parentd87571de74549d0b4e7a50a5447e0368233f8b38 (diff)
downloadMusik-cb26cbc0f62cbaa4c8f6186784eee3ce330b4f0a.tar.xz
Noten für Reformationstag begonnen
Diffstat (limited to 'Konzerte')
-rw-r--r--Konzerte/2018_10_31/alles.ly15
-rwxr-xr-xKonzerte/2018_10_31/make67
2 files changed, 82 insertions, 0 deletions
diff --git a/Konzerte/2018_10_31/alles.ly b/Konzerte/2018_10_31/alles.ly
new file mode 100644
index 0000000..d0602a7
--- /dev/null
+++ b/Konzerte/2018_10_31/alles.ly
@@ -0,0 +1,15 @@
+\version "2.19.80"
+\paper {
+ first-page-number = #2
+ print-first-page-number = ##t
+}
+
+%LOOP%\include "../../%TEIL%/%TEIL-BASE%.pre"
+%LOOP%%IF '%TEIL-BASE%'='Die_beste_Zeit_im_Jahr_ist_mein'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Gott_hat_mir_laengst_einen_Engel_gesandt'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Befiehl_dem_Herren_deine_Wege'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Aennchen_von_Tharau'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Schoen_ist_die_Erde'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Ich_sing_dir_mein_Lied'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Bleib_bei_mir_Herr'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Viele_verachten_die_edele_Musik'%\pageBreak
diff --git a/Konzerte/2018_10_31/make b/Konzerte/2018_10_31/make
new file mode 100755
index 0000000..4fcb3f9
--- /dev/null
+++ b/Konzerte/2018_10_31/make
@@ -0,0 +1,67 @@
+#!/bin/bash
+
+set -e
+
+cd "$(dirname "$0")"
+
+teile=(
+ #Ein_feste_Burg_ist_unser_Gott
+ Kyrie
+ #Ist_Gott_fuer_mich_so_trete
+ Ich_sing_dir_mein_Lied
+ #Selig_seid_ihr
+ Hoere_nun_Herr_die_Bitten
+ #Verleih_uns_Frieden
+)
+
+rm -f *.pre
+
+for teil in "${teile[@]}"
+do
+ (
+ cd ../../${teil}
+ sed -n '
+ s/^[^:]*%\.pdf.*:\s*//
+ T
+ s/%/'"${teil##*/}"'/g
+ p
+ ' Makefile | \
+ tr ' ' '\n' | \
+ grep '\.pre$' | \
+ xargs -r make SPRACHEN_REGEX=/textSII/d "$@"
+ )
+done
+
+{
+ printf '\n\n'
+ cat alles.ly
+ printf '\n\n'
+} | \
+ while read -r line
+ do
+ if [[ "${line}" = '%LOOP%'* ]]
+ then
+ loopLines="${loopLines}
+${line#%LOOP%}"
+ else
+ if [ -n "${loopLines}" ]
+ then
+ for teil in "${teile[@]}"
+ do
+ echo "${loopLines}" | \
+ sed "
+ s|%TEIL%|${teil}|g
+ s|%TEIL-BASE%|${teil##*/}|g
+ /%IF \([^=%]\+\)!=\1%/d
+ s|%IF [^=%]\+!=[^=%]\+%||g
+ s|%IF \([^=%]*[^=!%]\)=\1%||g
+ /%IF [^=%]\+=[^=%]\+%/d
+ "
+ done
+ unset loopLines
+ fi
+ echo "${line}"
+ fi
+ done > alles.pre
+
+lilypond alles.pre