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
|
@@ -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
|
|
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
|
|