New ./build script to compile score

Removed ./defs folder, left 'defs/naming.ily -> defs.ily' only

./build script uses commandline arguments of lilypond itself.
Possible to define external stylesheet in ./build script.
This might phase out ./makedrum
This commit is contained in:
Eric Teunis de Boone 2018-01-28 15:51:37 +01:00
parent 1ecf854c2b
commit d314f76966
7 changed files with 46 additions and 22 deletions

4
.gitignore vendored
View File

@ -1,4 +1,2 @@
to_process/
piobaireachd/
sets
tmp/
*.pdf

View File

@ -1,11 +1,24 @@
# pipeband-music
Collection of lilypond files for a pipeband.
It concerns bagpipes and three types of drums (bass, tenor and snare (or side)).
It concerns pipes and three types of drums (bass, tenor and snare (or side)).
To this end, you will need the bagpipe.ly normally included by lilypond aswell as the lilydrum package ([lyp-package](https://github.com/lyp-packages/lilydrum/) / [git](https://github.com/kastdeur/lilydrum)).
For most tunes there are at least pipe and snare scores + a 'full' score containing both.
For most tunes there are at least pipe and snare scores + a "full" score containing both.
If we play our standards for a tune, it is not included.
The same holds for tenor and bass scores.
Although this is my personal collection, quite a few tunes are used for my pipeband [The Seaforth Highlanders of Holland Memorial Pipes and Drums](https://seaforth.nl).
## How to compile a score
You can use the './build' script for this.
It is a bash wrapper script for lilypond.
Inspect this file first, to link lilydrum and review options you want.
With the '-dno-strip-output-dir' setting, files will be compiled in their respective folders.
## How to add a new score
In './templates' you can find templates for the various permutations of instruments and their scores.
These can be used as a starting point for a new score.
You will need at least './templates/config.ily' to define the title, meter, time signature, etc

26
build Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
# Wrapper script for pipeband scores
#
# It uses (standard) commandline options of lilypond
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIB=~/projects/scoring/lib
# Change the Stylesheet variable if you want different 'settings'
# It is handy to include ./defs.ily since it defines some text variables,
# it will complain otherwise about not finding variables
#STYLESHEET=$DIR/defs.ily
STYLESHEET="$LIB/styles/pipeband.sly"
# Add lilydrum to the search path
LILYDRUM="$LIB/lilydrum/"
# Add custom bagpipe.ly to search path
BAGPIPELY="$LIB/bagpipe.ly/"
# Options by this script
# 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\""
# Execute
lilypond -dinclude-settings=$STYLESHEET -I $LILYDRUM -I $BAGPIPELY $OPTIONS $@

View File

@ -1,9 +1,8 @@
% =================================================== %
% *Shorts* for Naming %
% =================================================== %
#(newline)
#(display "Short naming loaded")
%{
Some definitions for text, used throughout the repo.
Not critical if missing. But there is complaining..
%}
instrumentSide = "Side"
instrumentTenor = "Tenor"
instrumentBass = "Bass"

View File

@ -1,9 +0,0 @@
\paper {
}
\layout {
indent = 0.0
ragged-right = ##f
ragged-bottom = ##f
}

View File

@ -1,2 +0,0 @@
\paper {
}

View File

@ -1 +0,0 @@
#(ly:set-option 'point-and-click #f)