/g;
newPatchScreen[ip] = newPatchScreen[ip].replace(regex2, '>');
}
// Setup the Preset array to be displayed on the screen
screenLine = "Filename: " + newFilename + " " + ftype; screenLine += "
-------------------
"; screenLine += "PROG# PRESET NAME
"; screenLine += "-------------------
";
document.querySelector("#display").insertAdjacentHTML('beforeend',screenLine);
if ( newPatchScreen[1] == "" )
{
screenLine = " 1 " + newPatchScreen[0] + "
Note: This *.SYX file contains only one Preset"
}
if ( newPatchScreen[1] != "" )
{
screenLine =
" 1 " + newPatchScreen[0] + "
" +
" 2 " + newPatchScreen[1] + "
" +
" 3 " + newPatchScreen[2] + "
" +
" 4 " + newPatchScreen[3] + "
" +
" 5 " + newPatchScreen[4] + "
" +
" 6 " + newPatchScreen[5] + "
" +
" 7 " + newPatchScreen[6] + "
" +
" 8 " + newPatchScreen[7] + "
" +
" 9 " + newPatchScreen[8] + "
" +
" 10 " + newPatchScreen[9] + "
" +
" 11 " + newPatchScreen[10] + "
" +
" 12 " + newPatchScreen[11] + "
" +
" 13 " + newPatchScreen[12] + "
" +
" 14 " + newPatchScreen[13] + "
" +
" 15 " + newPatchScreen[14] + "
" +
" 16 " + newPatchScreen[15] + "
" +
" 17 " + newPatchScreen[16] + "
" +
" 18 " + newPatchScreen[17] + "
" +
" 19 " + newPatchScreen[18] + "
" +
" 20 " + newPatchScreen[19] + "
" +
" 21 " + newPatchScreen[20] + "
" +
" 22 " + newPatchScreen[21] + "
" +
" 23 " + newPatchScreen[22] + "
" +
" 24 " + newPatchScreen[23] + "
" +
" 25 " + newPatchScreen[24] + "
" +
" 26 " + newPatchScreen[25] + "
" +
" 27 " + newPatchScreen[26] + "
" +
" 28 " + newPatchScreen[27] + "
" +
" 29 " + newPatchScreen[28] + "
" +
" 30 " + newPatchScreen[29] + "
" +
" 31 " + newPatchScreen[30] + "
" +
" 32 " + newPatchScreen[31] + "
"
}
document.querySelector("#display").insertAdjacentHTML('beforeend',screenLine); newk = newk + 32;
}
reader.readAsBinaryString(oneFile);
}
else
{
alert("Failed to load file");
}
}
// Send all Preset and Tone arrays to the screen //
document.getElementById('myFile').addEventListener('change',readSingleFile, false);