spessasynth_lib 3.23.3 → 3.23.8
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/@types/midi_parser/basic_midi.d.ts +41 -21
- package/@types/midi_parser/midi_builder.d.ts +0 -4
- package/@types/midi_parser/midi_data.d.ts +38 -20
- package/@types/sequencer/sequencer.d.ts +2 -1
- package/@types/soundfont/basic_soundfont/basic_sample.d.ts +5 -0
- package/@types/soundfont/basic_soundfont/basic_soundfont.d.ts +8 -0
- package/@types/soundfont/basic_soundfont/modulator.d.ts +2 -1
- package/@types/soundfont/dls/articulator_converter.d.ts +9 -0
- package/@types/soundfont/dls/dls_sample.d.ts +0 -5
- package/@types/soundfont/dls/dls_sources.d.ts +5 -0
- package/@types/soundfont/read_sf2/samples.d.ts +0 -1
- package/@types/synthetizer/synth_event_handler.d.ts +5 -0
- package/@types/utils/byte_functions/string.d.ts +5 -0
- package/midi_parser/basic_midi.js +269 -109
- package/midi_parser/midi_builder.js +1 -106
- package/midi_parser/midi_data.js +140 -90
- package/midi_parser/midi_loader.js +2 -0
- package/midi_parser/rmidi_writer.js +4 -4
- package/package.json +1 -1
- package/sequencer/sequencer.js +3 -2
- package/soundfont/basic_soundfont/basic_sample.js +15 -6
- package/soundfont/basic_soundfont/basic_soundfont.js +64 -0
- package/soundfont/basic_soundfont/modulator.js +4 -2
- package/soundfont/basic_soundfont/riff_chunk.js +1 -1
- package/soundfont/basic_soundfont/write_dls/art2.js +17 -0
- package/soundfont/basic_soundfont/write_dls/ins.js +2 -2
- package/soundfont/basic_soundfont/write_dls/modulator_converter.js +12 -6
- package/soundfont/basic_soundfont/write_dls/rgn2.js +30 -25
- package/soundfont/basic_soundfont/write_dls/wave.js +8 -3
- package/soundfont/basic_soundfont/write_dls/write_dls.js +3 -2
- package/soundfont/basic_soundfont/write_dls/wsmp.js +2 -2
- package/soundfont/dls/articulator_converter.js +12 -10
- package/soundfont/dls/dls_sample.js +9 -8
- package/soundfont/dls/dls_sources.js +36 -1
- package/soundfont/dls/read_articulation.js +3 -15
- package/soundfont/dls/read_instrument.js +3 -14
- package/synthetizer/synth_event_handler.js +38 -1
- package/synthetizer/synth_soundfont_manager.js +0 -0
- package/synthetizer/worklet_processor.min.js +10 -10
- package/utils/byte_functions/string.js +9 -0
|
@@ -66,6 +66,15 @@ export function getStringBytes(string, padLength = 0)
|
|
|
66
66
|
return arr;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @param string {string}
|
|
71
|
+
* @returns {IndexedByteArray}
|
|
72
|
+
*/
|
|
73
|
+
export function getStringBytesZero(string)
|
|
74
|
+
{
|
|
75
|
+
return getStringBytes(string, string.length + 1);
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
/**
|
|
70
79
|
* @param string {string}
|
|
71
80
|
* @param outArray {IndexedByteArray}
|