Jenkins builds are stalling when generating PDFs for some morris tunes. I suspect the problem
may be an empty chord "" and abc2abc's attempt to transpose it.
I've been meaning to remove the chords from the horn output, because abc2abc transposes them too,
which renders them not terribly useful. So get on and do it. Also remove "" from the morris
tunes where it occurs.
Add an <audio> tag to the bottom centre of the tune web page. Give it options for MP3 and
OGG files. Most browsers will play MP3, and the ones that won't (Firefox) will play OGG.
Since we now have to generate OGGs, add a download link as well.
This means that we can have one main web page, dottes.html, for each
book and include the intro and tunelist to make the page. This removes
the separate header and footer components.
Perhaps we should use a template engine instead to generate the output.
That means choosing one. And preferably one that isn't aimed only at
HTML so we could use it for the printed books. More research required.
That way we can include basic markup in the into text and use it in
both LaTeX and HTML.
Take advantage of this to expand the wording of the intro text in all
books.
1. Add missing two last notes in final bar of B tune.
2. Move 'no chord' marker to start of 2nd repeat in A tune.
3. Mark middle B in last line of Horse's Brawl as Bb.
4. Last note of 4th bar of King of the Fairies should be quaver.
5. 4th bar of B tune should be same as 4th bar of A tune in Plane Tree.
6. Railway has change to Fiery Clock Face.
And we get some playable tunes. We might be able to improve the transposition
further by taking the Cello approach of calculating the minimum distance outside
the comfortable range. One for the future.
Jane says: Am most comfortable between the bottom G (the bottom line of the bass clef) and top D (the note above middle C), but can play from bottom C upwards (the C string is a bit growly) and at a push can get as high as the A above middle C.
Implement the following rule:
1. If range is G to d', transpose down 2 octaves.
2. If lowest note is < C, transpose down 1 octave.
3. Otherwise calculate the distance above d for the highest note on a one
octave transposition, and the distance below G on a two octave
transposition. Find the smallest, and use the corresponding
transposition.
1. Only show tune markers when a tune change is in the middle of a line.
2. Only show repeat starts |: if the repeat start is in the middle of a line.
3. Final bar end mark must be a thick line.
The official rules for a repeat are that if there is no left repeat
marker |: then the repeat starts at the previous double bar.
That way output where the colour isn't appropriate, such as Nook or the newly introduced
A4Lulu output (which is the A4 book but with white cover page and no end coloured page, and so
suitable for using as the content on Lulu, where the cover is separate) can omit the colour.
Use tabularx to put tune title, image and any following content into
a table. This should (a) get the following content closer to the tune image,
and (b) stop LaTeX splitting them over a page.
Currently we rely on any N: field with a Change: subnotice being the first
N: field. Add --contains field to abcfield.py to remove this restriction.
Also use it to extract new subfield Credit: and add that if present
to the tune information in print and on web.