Skip to content

Commit

Permalink
Merge pull request #1 from olilarkin/fixoddcharacters
Browse files Browse the repository at this point in the history
removed some odd characters causing errors
  • Loading branch information
jariseon authored Nov 10, 2017
2 parents bade560 + 452bbfd commit ce77bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dx7-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ NS.Library = function ()
// -- unpacked single voice or bank of 32 voices
if (length == 163 || length == 4960)
{
if (length == 163) { data = data.subarray(6,161); length = 155; }
if (length == 163) { data = data.subarray(6,161); length = 155; }
var N = length / 155;
for (var i=0; i<N; i++)
{
Expand All @@ -124,7 +124,7 @@ NS.Library = function ()
// -- packed bank without sysex frame, with sysex frame, or 45 patches with sysex frame
else if (length == 4096 || length == 4104 || length == 5760)
{
if (length == 4104) { data = data.subarray(6,4102); length = 4096; }
if (length == 4104) { data = data.subarray(6,4102); length = 4096; }
var N = length / 128;
for (var i=0; i<N; i++)
{
Expand Down

0 comments on commit ce77bd7

Please sign in to comment.