abcjs 6.4.0 → 6.4.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.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Renderer for abc music notation",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -284,8 +284,11 @@ ChordTrack.prototype.resolveChords = function (startTime, endTime) {
284
284
  firstBoom = true
285
285
  var type = thisPattern[p]
286
286
  var isBoom = type.indexOf('boom') >= 0
287
- // If we changed chords at a time when we're not expecting a bass note, then add an extra bass note in.
288
- var newBass = !isBoom && p !== 0 && (!currentChordsExpanded[p-1] || currentChordsExpanded[p-1].boom !== currentChordsExpanded[p].boom)
287
+ // If we changed chords at a time when we're not expecting a bass note, then add an extra bass note in if the first thing in the pattern is a bass note.
288
+ var newBass = !isBoom &&
289
+ p !== 0 &&
290
+ thisPattern[0].indexOf('boom') >= 0 &&
291
+ (!currentChordsExpanded[p-1] || currentChordsExpanded[p-1].boom !== currentChordsExpanded[p].boom)
289
292
  var pitches = resolvePitch(currentChordsExpanded[p], type, firstBoom, newBass)
290
293
  if (isBoom)
291
294
  firstBoom = false
@@ -127,7 +127,7 @@ function CreateSynth() {
127
127
  self.sequenceCallback = params.sequenceCallback;
128
128
  self.callbackContext = params.callbackContext;
129
129
  self.onEnded = params.onEnded;
130
- self.meterFraction = options.visualObj.getMeterFraction();
130
+ self.meterFraction = options.visualObj ? options.visualObj.getMeterFraction() : {den: 1} // If we are given a sequence instead of a regular visual obj, then don't do the swing
131
131
 
132
132
  var allNotes = {};
133
133
  var cached = [];
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
- var version = '6.4.0';
1
+ var version = '6.4.1';
2
2
 
3
3
  module.exports = version;
package/temp.txt DELETED
@@ -1,3 +0,0 @@
1
-
2
-
3
-