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/RELEASE.md +8 -0
- package/dist/abcjs-basic-min.js +2 -2
- package/dist/abcjs-basic.js +7 -4
- package/dist/abcjs-basic.js.map +1 -1
- package/dist/abcjs-plugin-min.js +2 -2
- package/package.json +1 -1
- package/src/synth/chord-track.js +5 -2
- package/src/synth/create-synth.js +1 -1
- package/version.js +1 -1
- package/temp.txt +0 -3
package/package.json
CHANGED
package/src/synth/chord-track.js
CHANGED
|
@@ -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 &&
|
|
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
package/temp.txt
DELETED