diff --git a/index.html b/index.html index ae518ea..11c41e2 100644 --- a/index.html +++ b/index.html @@ -80,11 +80,16 @@

Tool for converting a GrooveScribe drum notation for embedding in { const parts = e.trim().split(":"); - const encodedPart = encodeURIComponent(parts[parts.length - 1]) - return parts.slice(0, parts.length - 1).concat([encodedPart]).join(":"); + var convertedPart; + if (encode) { + convertedPart = encodeURIComponent(parts[parts.length - 1]); + } else { + convertedPart = decodeURIComponent(parts[parts.length - 1]); + } + return parts.slice(0, parts.length - 1).concat([convertedPart]).join(":"); }) .join(";") } @@ -127,7 +132,7 @@

Tool for converting a GrooveScribe drum notation for embedding in 0) { - convertedUrl += "&MeasureText=" + encodeAfterLastColon(measureText); + convertedUrl += "&MeasureText=" + encodeAfterLastColon(measureText, true); } const convertedUrlElement = document.getElementById("convertedUrl"); @@ -147,6 +152,20 @@

Tool for converting a GrooveScribe drum notation for embedding in 0) { @@ -164,6 +183,9 @@

Tool for converting a GrooveScribe drum notation for embedding in