code: function(obj, num, chordPos) {
          if (currSlur[chordPos] === undefined) {
            // There isn't an exact match for note position, but we'll take any other open slur.
            for (x = 0; x < currSlur.length; x++) {
              if (currSlur[x] !== undefined) {
                chordPos = x;
                break;
              }
            }
            if (currSlur[chordPos] === undefined) {
              var offNum = chordPos*100+1;
              Common.each(obj.endSlur, function(x) { if (offNum === x) --offNum; });
              currSlur[chordPos] = [offNum];
            }
          }
          var slurNum;
          for (var i = 0; i < num; i++) {
            slurNum = currSlur[chordPos].pop();
            obj.endSlur.push(slurNum);
  //					lyr.syllable += '<' + slurNum;	// TODO-PER: debugging
          }
          if (currSlur[chordPos].length === 0)
            delete currSlur[chordPos];
          return slurNum;
        }
docs: var lyr = null;	// TODO-PER: debugging.