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.
@@ -13577,8 +13577,8 @@ ChordTrack.prototype.resolveChords = function (startTime, endTime) {
13577
13577
  if (p > 0 && currentChordsExpanded[p - 1] && currentChordsExpanded[p] && currentChordsExpanded[p - 1].boom !== currentChordsExpanded[p].boom) firstBoom = true;
13578
13578
  var type = thisPattern[p];
13579
13579
  var isBoom = type.indexOf('boom') >= 0;
13580
- // If we changed chords at a time when we're not expecting a bass note, then add an extra bass note in.
13581
- var newBass = !isBoom && p !== 0 && (!currentChordsExpanded[p - 1] || currentChordsExpanded[p - 1].boom !== currentChordsExpanded[p].boom);
13580
+ // 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.
13581
+ var newBass = !isBoom && p !== 0 && thisPattern[0].indexOf('boom') >= 0 && (!currentChordsExpanded[p - 1] || currentChordsExpanded[p - 1].boom !== currentChordsExpanded[p].boom);
13582
13582
  var pitches = resolvePitch(currentChordsExpanded[p], type, firstBoom, newBass);
13583
13583
  if (isBoom) firstBoom = false;
13584
13584
  for (var oo = 0; oo < pitches.length; oo++) {
@@ -14261,7 +14261,10 @@ function CreateSynth() {
14261
14261
  self.sequenceCallback = params.sequenceCallback;
14262
14262
  self.callbackContext = params.callbackContext;
14263
14263
  self.onEnded = params.onEnded;
14264
- self.meterFraction = options.visualObj.getMeterFraction();
14264
+ self.meterFraction = options.visualObj ? options.visualObj.getMeterFraction() : {
14265
+ den: 1
14266
+ }; // If we are given a sequence instead of a regular visual obj, then don't do the swing
14267
+
14265
14268
  var allNotes = {};
14266
14269
  var cached = [];
14267
14270
  var errorNotes = [];
@@ -26376,7 +26379,7 @@ module.exports = Svg;
26376
26379
  \********************/
26377
26380
  /***/ (function(module) {
26378
26381
 
26379
- var version = '6.4.0';
26382
+ var version = '6.4.1';
26380
26383
  module.exports = version;
26381
26384
 
26382
26385
  /***/ })