Changed 'description of entry in JSON' to 'entry summary and manifest in JSON'. Changed 'how to run' (for try scripts) to 'script to try entry'. Changed 'how to run if you have the primes utility' to 'script to try entry if you have the primes utility'. Changed 'how to run alternative code' to 'script to try alternative code'. A number of other more specific (to particular entries or maybe even a single entry, 2019/ciura if not any others) descriptions were also changed. Rebuilt index.html and .entry.json files.
To build:
This entry requires SDL. See 3.8 - How do I compile an IOCCC entry that requires SDL1 or SDL2? for information on how to install it if you haven't already.
If you have SDL installed:
make
To use:
./jetro
Judges' remarks:
We have seen entries with SDL graphics in the past, now it's time for SDL sound. This entry can even be run on a computer without a sound card with an appropriate setting of an environment variable - for that you'll have to dig into the SDL documentation.
Can you figure out how the notes are encoded and program a different melody?
Author's remarks:
To compile the entry you need SDL library, which is used only for audio
output. To run the entry make sure you have audio output available. The entry
plays 22KHz 16 bit mono music with a small softsynth. When the music plays,
you can stop the application by pressing enter, as the code will just wait
with one call to getchar() before it quits.