abcjs 6.5.0 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abcjs",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "description": "Renderer for abc music notation",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -46,7 +46,7 @@ function transposeChordName(chord, steps, preferFlats, freeGCchord) {
46
46
  }
47
47
 
48
48
  var isDim = extra1 && (extra1.indexOf('dim') >= 0 || extra1.indexOf('°') >= 0)
49
- console.log(isDim, chord, extra1)
49
+ //console.log(isDim, chord, extra1)
50
50
  // We never want A#dim or D#dim
51
51
  if (isDim && chord === 'A#') chord = 'Bb'
52
52
  if (isDim && chord === 'D#') chord = 'Eb'
@@ -484,7 +484,8 @@ var parseCommon = require("../parse/abc_common");
484
484
  if(Array.isArray(elem.decoration)){
485
485
  volumesPerNotePitch = [];
486
486
  elem.decoration.forEach(d=>{
487
- volumesPerNotePitch.push(volumes[d].slice(0));
487
+ if (d in volumes)
488
+ volumesPerNotePitch.push(volumes[d].slice(0));
488
489
  });
489
490
  }
490
491
  voices[voiceNumber].push({ el_type: 'beat', beats: currentVolume.slice(0), volumesPerNotePitch: volumesPerNotePitch, });
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
- var version = '6.5.0';
1
+ var version = '6.5.1';
2
2
 
3
3
  module.exports = version;