Files
ioccc/2005/jetro
Landon Curt Noll d981aa2a04 revert non-canonical JSON changes from a previous commit
The PR #2662 introduced TAB characters into entry `.entry.json` files
and mal-formatted `author_handle` JSON members.

To restore canonical JSON formatting, we did:

```sh
find [12][90][89012][0-9] -name .entry.json -print | xargs -n 1 bin/jfmt-wrapper.sh -v 1
```

BTW: We have written a tool, currently untested, to do this.  We plan to also
     add a new fix JSON format rule to the top level `Makefile`.

Performed `make www` to accomplish the above and to test under macOS.
2024-08-29 19:03:28 -07:00
..
2020-12-30 16:57:03 -08:00
2023-07-06 21:49:38 -07:00
2024-08-21 23:42:28 -07:00

To build:

This entry requires SDL. See the FAQ on "SDL1 and 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.