spessasynth_lib 3.26.26 → 3.26.28

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.26",
3
+ "version": "3.26.28",
4
4
  "description": "MIDI and SoundFont2/DLS library for the browsers with no compromises",
5
5
  "browser": "index.js",
6
6
  "type": "module",
@@ -34,7 +34,7 @@ export class MIDIData extends MIDISequenceData
34
34
  * Temporary MIDI data used when the MIDI is not loaded.
35
35
  * @type {MIDIData}
36
36
  */
37
- export const DUMMY_MIDI_DATA = {
37
+ export const DUMMY_MIDI_DATA = Object.assign({
38
38
  duration: 99999,
39
39
  firstNoteOn: 0,
40
40
  loop: {
@@ -44,11 +44,13 @@ export const DUMMY_MIDI_DATA = {
44
44
 
45
45
  lastVoiceEventTick: 123456,
46
46
  lyrics: [],
47
+ lyricsTicks: [],
47
48
  copyright: "",
48
49
  midiPorts: [],
49
50
  midiPortChannelOffsets: [],
50
51
  tracksAmount: 0,
51
52
  tempoChanges: [{ ticks: 0, tempo: 120 }],
53
+ trackNames: [],
52
54
  fileName: "NOT_LOADED.mid",
53
55
  midiName: "Loading...",
54
56
  rawMidiName: new Uint8Array([76, 111, 97, 100, 105, 110, 103, 46, 46, 46]), // "Loading..."
@@ -56,8 +58,10 @@ export const DUMMY_MIDI_DATA = {
56
58
  timeDivision: 0,
57
59
  keyRange: { min: 0, max: 127 },
58
60
  isEmbedded: false,
61
+ isKaraokeFile: false,
62
+ isMultiPort: false,
59
63
  RMIDInfo: {},
60
64
  bankOffset: 0,
61
65
  midiNameUsesFileName: false,
62
66
  format: 0
63
- };
67
+ }, MIDIData.prototype);
@@ -23,7 +23,7 @@ These core components are wrapped in the AudioWorkletProcessor, which is receivi
23
23
  through the message port, and sends data back (events, time changes, status changes, etc.).
24
24
 
25
25
  For example,
26
- the playback to WebMIDIAPI is actually the sequencer in the worklet thread
26
+ the playback to WebMIDI API is actually the sequencer in the worklet thread
27
27
  playing back the sequence and then postMessaging the commands through the synthesizer to the sequencer
28
28
  which actually sends them to the specified output.
29
29
 
@@ -875,7 +875,7 @@ export class Synthetizer
875
875
  }
876
876
 
877
877
  /**
878
- * Reloads the sounfont.
878
+ * Reloads the soundfont.
879
879
  * THIS IS DEPRECATED!
880
880
  * USE soundfontManager instead.
881
881
  * @param soundFontBuffer {ArrayBuffer} the new soundfont file array buffer.
@@ -68,6 +68,7 @@ export const workletMessageType = {
68
68
  * |ArrayBuffer
69
69
  * |{messageType: SpessaSynthSequencerMessageType, messageData: any}
70
70
  * |{messageType: workletKeyModifierMessageType, messageData: any}
71
+ * |Uint8Array
71
72
  * )
72
73
  * }} WorkletMessage
73
74
  */