# HG changeset patch # User Matti Hamalainen # Date 1425414747 -7200 # Node ID 654602d3d5a54c56356f35ec8d6932e66f0d92e2 # Parent f309a382d6e7b3bb997831f0f92c44d33fb012f5 Improve comments. diff -r f309a382d6e7 -r 654602d3d5a5 tools/xm2jss.c --- a/tools/xm2jss.c Tue Mar 03 22:15:26 2015 +0200 +++ b/tools/xm2jss.c Tue Mar 03 22:32:27 2015 +0200 @@ -684,6 +684,7 @@ // // Find out all actually used patterns and ext.instruments + // by going through all patterns specified in the order list // for (i = 0; i < m->norders; i++) { @@ -696,10 +697,10 @@ int row, channel; JSSNote *n = p->data; - // Mark pattern as used + // Mark this pattern as used usedPatterns[pattern] = TRUE; - // Check all notes + // Check all notes in this pattern to see what instruments are used for (row = 0; row < p->nrows; row++) for (channel = 0; channel < p->nchannels; channel++, n++) if (n->instrument != jsetNotSet) @@ -734,7 +735,7 @@ } // - // Find used instruments + // Find used sample instruments // for (i = 0; i < jsetMaxInstruments; i++) if (usedExtInstruments[i] && m->extInstruments[i] != NULL)