Browse Source

deal with spaces in file name

dds
Matt Bradshaw 6 years ago
parent
commit
afeca2d0ff
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/wav2sketch/wav2sketch.js

+ 1
- 1
extras/wav2sketch/wav2sketch.js View File

@@ -106,7 +106,7 @@ function processFile(file, fileName, sampleRateChoice, encodingChoice) {
var outputFileHolder = document.getElementById('outputFileHolder');
var downloadLink1 = document.createElement('a');
var downloadLink2 = document.createElement('a');
var formattedName = fileName.split('.')[0];
var formattedName = fileName.split('.')[0].split(' ').join('');
formattedName = formattedName.charAt(0).toUpperCase() + formattedName.slice(1).toLowerCase();
downloadLink1.href = generateOutputFile(generateCPPFile(fileName, formattedName, outputData, sampleRate, encoding));
downloadLink1.setAttribute('download', 'AudioSample' + formattedName + '.cpp');

Loading…
Cancel
Save