Commit Graph

15 Commits

Author SHA1 Message Date
Jim Hague ba866c5716 Try and make audio generation less chatty. 2020-02-19 12:45:04 +00:00
Jim Hague b6a4389bca Sort LC_ALL=C to get Linux sort to order Beginners as expected.
Remove other unnecessary uses of sort. When generating intermediate
files, it doesn't matter in what order it happens.
2020-02-19 11:14:40 +00:00
Jim Hague 7f09e796d9 Remove the 'already generated' checks.
Let's make sure all content gets generated.

I really, really need to do a proper build system for this lot.
2020-02-19 10:48:56 +00:00
Jim Hague 449ef19c56 Revist tempo change code when generating web audio.
Now Mac friendly.
2020-02-19 10:33:55 +00:00
Jim Hague 94aee4ec02 Changes to get Beginners booke building.
The web pages include prev and next links, so to get those right we
have to make the tune filenames distinct from the main booke names.
So fall back to taking the easy way, and just prefix all tune names with
@ or _.
2020-02-18 15:13:38 +00:00
Jim Hague aa97e0f688 Change web page layout.
Put tune contents under 'tunes/<name>' or 'tunes-<instrument>/<name>'.
That way they won't move if the tune gets moved between Bookes.

For now I have not attempted to redirect old URLs.
2019-08-05 23:25:28 +01:00
Jim Hague 51353e49b9 Correct Mac-ism. find -maxdepth n, not find -depth n. 2017-10-13 17:19:06 +01:00
Jim Hague a5b76de484 Introduce mechanism for having different tune images for compact printed output.
Sort alternate .abc in subdir 'Compact' under the booke dir. Use that as
the graphic for A5 output, assuming it will be vertically more compact.
Use Bear Dance as an example, as it has commentary that currently
overflows an A5 landscape page.

For the moment, transposed Bookes don't transpose and so don't use Compact.
2017-10-13 15:44:15 +01:00
Jim Hague 11ed898309 Have learner tunes play only the melody.
Do this by telling timidity to mute all tracks but the first.
2016-09-06 20:48:32 +01:00
Jim Hague deba133b3b First go at adding the tune learner page. 2013-09-02 11:48:16 +01:00
Jim Hague fc1d7cfc88 Make 1/4, 1/2 and 3/4 speed audio for tunes.
Name them 'veryslow', 'slow' and 'littleslow'.
2013-09-02 10:15:56 +01:00
Jim Hague 5a08c5c1b0 Make slow speed web audio files. 2013-09-01 23:13:06 +01:00
Jim Hague 3dc65395b4 Reduce size of generated audio files.
Set Timidity to produce mono output and crank up the compression on
MP3 and OGGs.
2013-09-01 22:24:58 +01:00
Jim Hague e049dc77a9 Add audio player to tune web page.
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.
2013-08-28 11:54:45 +01:00
Jim Hague 36bd2926b5 Make transposed tunes use the original audio.
The aim of MIDI and MP3 is to allow the user to hear what a tune sounds
like. For transposed bookes, I think this should be reused from the main
booke page, because hearing it at the transposed pitch isn't a major help.

And in fact given the way cello transposition is done, the sound won't
be transposed anyway. And Jane hasn't complained.

This will speed up building the bookes by removing audio generation,
the slowest process, from the transposed bookes.
2013-02-22 01:09:37 +00:00