code: function convertJsonToAbc(input) {
    var outputData = "";
    outputData += "X:1\n";
    if (typeof input.id !== 'undefined') {
      outputData += "T:"
        + input.id
        + "\n";
    }
    outputData += "M:"
      + input.attributes.time.beats
      + "/"
      + input.attributes.time["beat-type"]
      + "\n";
    outputData += "L:"
      + "1/"
      + (input.attributes.divisions * 4)
      + "\n";
    outputData += "K:"
      + getAbcKey(input.attributes.key.fifths, input.attributes.key.mode)
      + "\n";
    outputData += "K:"
      + getAbcClef(input.attributes.clef.sign)
      + "\n";
  
    for (var i = 0; i < input.measures.length; i++) {
      if (i % 4 === 0 && i > 0) { // 4 measures per line
        outputData += "\n";
        outputData += "|";
      }
      var measure = input.measures[i];
      if (measure.attributes.repeat.left === true || measure.attributes.repeat.left === 'true') {
        outputData += ":";
      }
  
      for (var j = 0; j < measure.notes.length; j++) {
  
        outputData += getAbcNote(measure.notes[j-1], measure.notes[j]);
      }
  
      if (measure.attributes.repeat.right === true || measure.attributes.repeat.right === 'true') {
        outputData += ":";
      }
      outputData += "|";
  
    }
  
    return outputData;
  }
docs: Returns the abc notation string from given input
  @param {object} input - The parsed input from input file
  @returns {string}