spessasynth_lib 3.26.14 → 3.26.16

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": "spessasynth_lib",
3
- "version": "3.26.14",
3
+ "version": "3.26.16",
4
4
  "description": "MIDI and SoundFont2/DLS library for the browsers with no compromises",
5
5
  "browser": "index.js",
6
6
  "type": "module",
@@ -39,7 +39,7 @@ import { DEFAULT_SEQUENCER_OPTIONS } from "./default_sequencer_options.js";
39
39
  * @typedef {Object} SequencerOptions
40
40
  * @property {boolean|undefined} skipToFirstNoteOn - if true, the sequencer will skip to the first note
41
41
  * @property {boolean|undefined} autoPlay - if true, the sequencer will automatically start playing the MIDI
42
- * @property {boolean|unescape} preservePlaybackState - if true,
42
+ * @property {boolean|undefined} preservePlaybackState - if true,
43
43
  * the sequencer will stay paused when seeking or changing the playback rate
44
44
  * @property {number|undefined} initialPlaybackRate - the initial playback rate, defaults to 1.0 (normal speed)
45
45
  */
@@ -101,7 +101,7 @@ export class Sequencer
101
101
 
102
102
  /**
103
103
  * Fires on meta-event
104
- * @type {Object<string, function([number, Uint8Array, number, number])>}
104
+ * @type {Object<string, function([MIDIMessage, number])>}
105
105
  */
106
106
  onMetaEvent = {};
107
107
 
@@ -445,8 +445,7 @@ export class Sequencer
445
445
 
446
446
  /**
447
447
  * Adds a new event that gets called when a meta-event occurs
448
- * @param callback {function([number, Uint8Array, number, number])} the meta-event type,
449
- * its data, the track number and MIDI ticks
448
+ * @param callback {function([MIDIMessage, number])} the meta-event type and the track number
450
449
  * @param id {string} must be unique
451
450
  */
452
451
  addOnMetaEvent(callback, id)