From 8c47ddfd12dd2e97229f24f892aa9ce2ba341169 Mon Sep 17 00:00:00 2001 From: Len Shustek Date: Sat, 1 Oct 2016 10:25:52 -0700 Subject: [PATCH] Suppress unnecessary "stop note" commands so the byestream file is smaller --- README.txt | 7 +++---- miditones.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.txt b/README.txt index 2411c09..7f4fe8a 100644 --- a/README.txt +++ b/README.txt @@ -125,9 +125,9 @@ * If the high-order bit of the byte is 1, then it is one of the following commands: * * 9t nn [vv] -* Start playing note nn on tone generator t. Generators are numbered -* starting with 0. The note numbers are the MIDI numbers for the chromatic -* scale, with decimal 60 being Middle C, and decimal 69 being Middle A (440 Hz). +* Start playing note nn on tone generator t, replacing any previous note. +* Generators are numbered starting with 0. The note numbers are the MIDI +* numbers for the chromatic scale, with decimal 69 being Middle A (440 Hz). * If the -v option was given, a second byte is added to indicate note volume. * * 8t Stop playing the note on tone generator t. @@ -138,7 +138,6 @@ * F0 End of score; stop playing. * * E0 End of score; start playing again from the beginning. -* (Shown for completeness; MIDITONES won't generate this.) * * If the high-order bit of the byte is 0, it is a command to delay for a while until * the next note change. The other 7 bits and the 8 bits of the following byte are diff --git a/miditones.c b/miditones.c index c805129..1d62585 100644 --- a/miditones.c +++ b/miditones.c @@ -126,9 +126,9 @@ * If the high-order bit of the byte is 1, then it is one of the following commands: * * 9t nn [vv] -* Start playing note nn on tone generator t. Generators are numbered -* starting with 0. The note numbers are the MIDI numbers for the chromatic -* scale, with decimal 60 being Middle C, and decimal 69 being Middle A (440 Hz). +* Start playing note nn on tone generator t, replacing any previous note. +* Generators are numbered starting with 0. The note numbers are the MIDI +* numbers for the chromatic scale, with decimal 69 being Middle A (440 Hz). * If the -v option was given, a second byte is added to indicate note volume. * * 8t Stop playing the note on tone generator t. @@ -139,7 +139,6 @@ * F0 End of score; stop playing. * * E0 End of score; start playing again from the beginning. -* (Shown for completeness; MIDITONES won't generate this.) * * If the high-order bit of the byte is 0, it is a command to delay for a while until * the next note change. The other 7 bits and the 8 bits of the following byte are