Compare commits

..

3 commits

Author SHA1 Message Date
b193d41c12 build: use landscape and generate previews 2023-02-02 22:34:36 +01:00
9d6c9f22b1 Old work: Thunderhead 2023-02-02 22:34:05 +01:00
e2ff610d1b Ignore book/* for json creation
Adding this file to a directory causes scores2json.py to
ignore anything in the directory.
2023-02-01 07:09:48 +01:00
4 changed files with 109 additions and 2 deletions

0
book/.ignore_scores2json Normal file
View file

View file

@ -169,6 +169,14 @@
\end{minipage}%
\vspace{.5in}
\noindent
\begin{minipage}{\columnwidth}
\noindent
\addcontentsline{toc}{subsection}{Thunderhead}
\lilypondfile{./jigs/thunderhead.ly}%
\end{minipage}%
\vspace{.5in}
%%%%%%%%%%%%
% Hornpipes
%%%%%%%%%%%%

7
build
View file

@ -4,7 +4,9 @@
# It uses (standard) commandline options of lilypond
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIB=$DIR/../lib
LIB="$(realpath "${DIR}/../lib")"
# Change the Stylesheet variable if you want different 'settings'
STYLESHEET=$LIB/styles/tinwhistle.sly
# In case tinwhistle.ily is included in file
@ -12,7 +14,8 @@ STYLESHEET=$LIB/styles/tinwhistle.sly
TINWHISTLE_DIR=$LIB/tinwhistle/
# Options by this script
OPTIONS="-dno-strip-output-dir -dno-point-and-click"
# see http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage#advanced-command-line-options-for-lilypond
OPTIONS="-dno-strip-output-dir -dno-point-and-click -dpaper-size=\"a4landscape\" -dpreview"
# Execute
lilypond -dinclude-settings=$STYLESHEET -I $TINWHISTLE_DIR $OPTIONS $@

96
jigs/thunderhead.ly Normal file
View file

@ -0,0 +1,96 @@
\version "2.19.80"
\include "tinwhistle.ily"
\header {
title = "Thunderhead"
meter = "Jig"
composer = "G. Larsen"
enteredby = "kastdeur"
}
grA = {}
grg = {}
gre = {}
grd = {}
thrwd = {}
dblb = {}
dblc = {}
dble = {}
dblg = {}
wbirl = {}
gbirl = {}
slurf = {}
global = {
\key d \major
\time 6/8
}
bpm = \tempo 4. = 100
fluteAA = \fixed c'' {
b,4.\lroll fis8 b,8 b,8 |
e8 b,8 b,8 d8 b,8 a,8 |
b,4.\lroll fis8 g8 fis8 |
e8 d8 b,8 a,8 b,8 d8 |
b,4.\lroll fis8 b,8 b,8 |
e8 b,8 b, d8 e fis |
g8 fis8 e fis8 e d8 |
e8 d8 b,
}
fluteABA = \fixed c'' {
a,8[ b,8 d8]
}
fluteABB = \fixed c'' {
a,8 [ b,8 a,8 ]
}
fluteB = \fixed c'' {
a8 fis8 d8 e8 d8 b, |
a,8 b, d cis4. |
b,4 cis8 b,4 cis8 |
d8 cis8 b,8 cis4. |
a8 fis8 d8 e8 d8 b, |
a,8 b,8 d8 cis4. |
b,16 cis16 d8 b,8 cis8 a,8 a8
g8 e8 cis8 d4.
}
flute = \relative c'' {
% Muziek volgt hier.
\global
\repeat volta 2 { \fluteAA }
\alternative {
\fluteABA
\fluteABB
}
\break
\repeat volta 2 { \fluteB }
}
flutePart = \new Staff \with {
instrumentName = "Fl."
midiInstrument = "flute"
} \flute
\score {
<<
\flutePart
>>
\layout { }
}
\score {
\unfoldRepeats \removeWithTag #'midiRemove <<
\flutePart
>>
\midi {
\bpm
}
}