Fixed a couple of small bugs
- The '^' and '-' script directions had been flopped. (I think I've
reported this one before)
- Midi channel numbers count from 0, so the 10:th channel
has number 9 and the first channel was unused. At least
that's what timidity and playmidi tells me.
/Mats
----------------------------------------
diff ../lilypond-1.1.34/lily/parser.yy lily/parser.yy
--- ../lilypond-1.1.34/lily/parser.yy Thu Feb 25 11:15:00 1999
+++ lily/parser.yy Wed Mar 10 23:46:57 1999
@@ -1282,8 +1282,8 @@
script_dir:
'_' { $$ = DOWN; }
- | '^' { $$ = CENTER; }
- | '-' { $$ = UP; }
+ | '^' { $$ = UP; }
+ | '-' { $$ = CENTER; }
;
pre_requests:
diff -urN ../lilypond-1.1.34/lily/performance.cc lily/performance.cc
--- ../lilypond-1.1.34/lily/performance.cc Wed Mar 10 11:37:50 1999
+++ lily/performance.cc Thu Mar 11 09:23:12 1999
@@ -51,7 +51,7 @@
midi_stream << Midi_header (1, tracks_i, clocks_per_4_i);
output_header_track (midi_stream);
- int n = 1;
+ int n = 0;
for (int i =0; i < audio_staff_l_arr_.size (); i++)
{
Audio_staff *s = audio_staff_l_arr_[i];
@@ -60,7 +60,7 @@
MIDI players tend to ignore instrument settings on
channel 10, the percussion channel by default.
*/
- if (n == 10)
+ if (n == 9)
n++;
s->output (midi_stream, n++);
}