spessasynth_lib 3.24.2 → 3.24.4

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.
Files changed (155) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/external_midi/README.md +0 -0
  4. package/external_midi/midi_handler.js +0 -0
  5. package/external_midi/web_midi_link.js +0 -0
  6. package/externals/stbvorbis_sync/@types/stbvorbis_sync.d.ts +0 -0
  7. package/externals/stbvorbis_sync/LICENSE +0 -0
  8. package/externals/stbvorbis_sync/stbvorbis_sync.min.js +0 -0
  9. package/midi_parser/README.md +0 -0
  10. package/midi_parser/midi_message.js +0 -0
  11. package/midi_parser/midi_writer.js +0 -0
  12. package/midi_parser/used_keys_loaded.js +0 -0
  13. package/package.json +1 -2
  14. package/sequencer/README.md +0 -0
  15. package/sequencer/worklet_sequencer/worklet_sequencer.js +6 -0
  16. package/soundfont/README.md +0 -0
  17. package/soundfont/basic_soundfont/basic_instrument.js +0 -0
  18. package/soundfont/basic_soundfont/write_sf2/ibag.js +0 -0
  19. package/soundfont/basic_soundfont/write_sf2/imod.js +0 -0
  20. package/soundfont/basic_soundfont/write_sf2/inst.js +0 -0
  21. package/soundfont/basic_soundfont/write_sf2/pbag.js +0 -0
  22. package/soundfont/basic_soundfont/write_sf2/phdr.js +0 -0
  23. package/soundfont/basic_soundfont/write_sf2/pmod.js +0 -0
  24. package/soundfont/basic_soundfont/write_sf2/sdta.js +0 -0
  25. package/soundfont/basic_soundfont/write_sf2/shdr.js +0 -0
  26. package/soundfont/basic_soundfont/write_sf2/soundfont_trimmer.js +0 -0
  27. package/soundfont/dls/dls_destinations.js +0 -0
  28. package/soundfont/dls/dls_preset.js +0 -0
  29. package/soundfont/dls/dls_sources.js +0 -0
  30. package/soundfont/dls/read_instrument_list.js +0 -0
  31. package/soundfont/load_soundfont.js +0 -0
  32. package/soundfont/read_sf2/generators.js +0 -0
  33. package/soundfont/read_sf2/instruments.js +0 -0
  34. package/soundfont/read_sf2/modulators.js +0 -0
  35. package/soundfont/read_sf2/presets.js +0 -0
  36. package/soundfont/read_sf2/zones.js +0 -0
  37. package/synthetizer/README.md +0 -0
  38. package/synthetizer/audio_effects/effects_config.js +10 -6
  39. package/synthetizer/audio_effects/fancy_chorus.js +9 -16
  40. package/synthetizer/audio_effects/reverb.js +1 -1
  41. package/synthetizer/synthetizer.js +43 -37
  42. package/synthetizer/worklet_processor.min.js +6 -6
  43. package/synthetizer/worklet_system/README.md +0 -0
  44. package/synthetizer/worklet_system/message_protocol/message_sending.js +0 -0
  45. package/synthetizer/worklet_system/snapshot/snapshot.js +1 -1
  46. package/synthetizer/worklet_system/worklet_methods/data_entry.js +0 -0
  47. package/synthetizer/worklet_system/worklet_methods/note_on.js +5 -2
  48. package/synthetizer/worklet_system/worklet_methods/system_exclusive.js +0 -0
  49. package/synthetizer/worklet_system/worklet_methods/tuning_control.js +0 -0
  50. package/synthetizer/worklet_system/worklet_methods/vibrato_control.js +0 -0
  51. package/synthetizer/worklet_system/worklet_methods/worklet_soundfont_manager/sfman_message.js +0 -0
  52. package/synthetizer/worklet_system/worklet_processor.js +0 -0
  53. package/synthetizer/worklet_system/worklet_utilities/controller_tables.js +0 -0
  54. package/synthetizer/worklet_system/worklet_utilities/lfo.js +0 -0
  55. package/synthetizer/worklet_system/worklet_utilities/modulator_curves.js +0 -0
  56. package/synthetizer/worklet_system/worklet_utilities/unit_converter.js +0 -0
  57. package/synthetizer/worklet_system/worklet_utilities/volume_envelope.js +0 -0
  58. package/synthetizer/worklet_system/worklet_utilities/wavetable_oscillator.js +0 -0
  59. package/synthetizer/worklet_url.js +0 -0
  60. package/utils/README.md +0 -0
  61. package/utils/byte_functions/big_endian.js +0 -0
  62. package/utils/byte_functions/little_endian.js +0 -0
  63. package/utils/byte_functions/variable_length_quantity.js +0 -0
  64. package/utils/indexed_array.js +0 -0
  65. package/utils/loggin.js +0 -0
  66. package/@types/external_midi/midi_handler.d.ts +0 -39
  67. package/@types/external_midi/web_midi_link.d.ts +0 -12
  68. package/@types/externals/stbvorbis_sync/stbvorbis_sync.min.d.ts +0 -1
  69. package/@types/index.d.ts +0 -44
  70. package/@types/midi_parser/basic_midi.d.ts +0 -36
  71. package/@types/midi_parser/midi_builder.d.ts +0 -68
  72. package/@types/midi_parser/midi_data.d.ts +0 -46
  73. package/@types/midi_parser/midi_editor.d.ts +0 -89
  74. package/@types/midi_parser/midi_loader.d.ts +0 -30
  75. package/@types/midi_parser/midi_message.d.ts +0 -155
  76. package/@types/midi_parser/midi_sequence.d.ts +0 -135
  77. package/@types/midi_parser/midi_writer.d.ts +0 -6
  78. package/@types/midi_parser/rmidi_writer.d.ts +0 -85
  79. package/@types/midi_parser/used_keys_loaded.d.ts +0 -10
  80. package/@types/sequencer/sequencer.d.ts +0 -277
  81. package/@types/sequencer/worklet_sequencer/sequencer_message.d.ts +0 -31
  82. package/@types/soundfont/basic_soundfont/basic_instrument.d.ts +0 -29
  83. package/@types/soundfont/basic_soundfont/basic_preset.d.ts +0 -86
  84. package/@types/soundfont/basic_soundfont/basic_sample.d.ts +0 -88
  85. package/@types/soundfont/basic_soundfont/basic_soundfont.d.ts +0 -102
  86. package/@types/soundfont/basic_soundfont/basic_zone.d.ts +0 -58
  87. package/@types/soundfont/basic_soundfont/basic_zones.d.ts +0 -22
  88. package/@types/soundfont/basic_soundfont/generator.d.ts +0 -102
  89. package/@types/soundfont/basic_soundfont/modulator.d.ts +0 -92
  90. package/@types/soundfont/basic_soundfont/riff_chunk.d.ts +0 -45
  91. package/@types/soundfont/basic_soundfont/write_dls/art2.d.ts +0 -6
  92. package/@types/soundfont/basic_soundfont/write_dls/articulator.d.ts +0 -28
  93. package/@types/soundfont/basic_soundfont/write_dls/combine_zones.d.ts +0 -8
  94. package/@types/soundfont/basic_soundfont/write_dls/ins.d.ts +0 -7
  95. package/@types/soundfont/basic_soundfont/write_dls/lins.d.ts +0 -5
  96. package/@types/soundfont/basic_soundfont/write_dls/modulator_converter.d.ts +0 -11
  97. package/@types/soundfont/basic_soundfont/write_dls/rgn2.d.ts +0 -8
  98. package/@types/soundfont/basic_soundfont/write_dls/wave.d.ts +0 -6
  99. package/@types/soundfont/basic_soundfont/write_dls/write_dls.d.ts +0 -6
  100. package/@types/soundfont/basic_soundfont/write_dls/wsmp.d.ts +0 -12
  101. package/@types/soundfont/basic_soundfont/write_dls/wvpl.d.ts +0 -8
  102. package/@types/soundfont/basic_soundfont/write_sf2/ibag.d.ts +0 -6
  103. package/@types/soundfont/basic_soundfont/write_sf2/igen.d.ts +0 -6
  104. package/@types/soundfont/basic_soundfont/write_sf2/imod.d.ts +0 -6
  105. package/@types/soundfont/basic_soundfont/write_sf2/inst.d.ts +0 -6
  106. package/@types/soundfont/basic_soundfont/write_sf2/pbag.d.ts +0 -6
  107. package/@types/soundfont/basic_soundfont/write_sf2/pgen.d.ts +0 -6
  108. package/@types/soundfont/basic_soundfont/write_sf2/phdr.d.ts +0 -6
  109. package/@types/soundfont/basic_soundfont/write_sf2/pmod.d.ts +0 -6
  110. package/@types/soundfont/basic_soundfont/write_sf2/sdta.d.ts +0 -11
  111. package/@types/soundfont/basic_soundfont/write_sf2/shdr.d.ts +0 -8
  112. package/@types/soundfont/basic_soundfont/write_sf2/soundfont_trimmer.d.ts +0 -6
  113. package/@types/soundfont/basic_soundfont/write_sf2/write.d.ts +0 -21
  114. package/@types/soundfont/dls/articulator_converter.d.ts +0 -19
  115. package/@types/soundfont/dls/dls_destinations.d.ts +0 -29
  116. package/@types/soundfont/dls/dls_preset.d.ts +0 -13
  117. package/@types/soundfont/dls/dls_sample.d.ts +0 -19
  118. package/@types/soundfont/dls/dls_soundfont.d.ts +0 -31
  119. package/@types/soundfont/dls/dls_sources.d.ts +0 -27
  120. package/@types/soundfont/dls/dls_zone.d.ts +0 -23
  121. package/@types/soundfont/dls/read_articulation.d.ts +0 -12
  122. package/@types/soundfont/dls/read_instrument.d.ts +0 -5
  123. package/@types/soundfont/dls/read_instrument_list.d.ts +0 -5
  124. package/@types/soundfont/dls/read_lart.d.ts +0 -7
  125. package/@types/soundfont/dls/read_region.d.ts +0 -7
  126. package/@types/soundfont/dls/read_samples.d.ts +0 -5
  127. package/@types/soundfont/load_soundfont.d.ts +0 -6
  128. package/@types/soundfont/read_sf2/generators.d.ts +0 -16
  129. package/@types/soundfont/read_sf2/instruments.d.ts +0 -29
  130. package/@types/soundfont/read_sf2/modulators.d.ts +0 -15
  131. package/@types/soundfont/read_sf2/presets.d.ts +0 -30
  132. package/@types/soundfont/read_sf2/samples.d.ts +0 -55
  133. package/@types/soundfont/read_sf2/soundfont.d.ts +0 -28
  134. package/@types/soundfont/read_sf2/zones.d.ts +0 -99
  135. package/@types/synthetizer/audio_effects/effects_config.d.ts +0 -29
  136. package/@types/synthetizer/audio_effects/fancy_chorus.d.ts +0 -97
  137. package/@types/synthetizer/audio_effects/reverb.d.ts +0 -7
  138. package/@types/synthetizer/key_modifier_manager.d.ts +0 -56
  139. package/@types/synthetizer/synth_event_handler.d.ts +0 -263
  140. package/@types/synthetizer/synth_soundfont_manager.d.ts +0 -52
  141. package/@types/synthetizer/synthetizer.d.ts +0 -364
  142. package/@types/synthetizer/worklet_system/message_protocol/worklet_message.d.ts +0 -98
  143. package/@types/synthetizer/worklet_system/worklet_methods/worklet_key_modifier.d.ts +0 -77
  144. package/@types/synthetizer/worklet_system/worklet_methods/worklet_soundfont_manager/sfman_message.d.ts +0 -7
  145. package/@types/synthetizer/worklet_system/worklet_utilities/controller_tables.d.ts +0 -23
  146. package/@types/synthetizer/worklet_system/worklet_utilities/worklet_processor_channel.d.ts +0 -155
  147. package/@types/synthetizer/worklet_url.d.ts +0 -5
  148. package/@types/utils/buffer_to_wav.d.ts +0 -31
  149. package/@types/utils/byte_functions/big_endian.d.ts +0 -13
  150. package/@types/utils/byte_functions/little_endian.d.ts +0 -35
  151. package/@types/utils/byte_functions/string.d.ts +0 -27
  152. package/@types/utils/byte_functions/variable_length_quantity.d.ts +0 -12
  153. package/@types/utils/indexed_array.d.ts +0 -21
  154. package/@types/utils/loggin.d.ts +0 -26
  155. package/@types/utils/other.d.ts +0 -37
@@ -1,155 +0,0 @@
1
- /**
2
- * @typedef {Object} WorkletProcessorChannel
3
- * @property {Int16Array} midiControllers - array of MIDI controller values + the values used by modulators as source (pitch bend, bend range etc.)
4
- * @property {boolean[]} lockedControllers - array indicating if a controller is locked
5
- * @property {Float32Array} customControllers - array of custom (not sf2) control values such as RPN pitch tuning, transpose, modulation depth, etc.
6
- *
7
- * @property {number} channelTransposeKeyShift - key shift of the channel
8
- * @property {Int8Array} channelOctaveTuning - the tuning for octave on this channel
9
- * @property {Int16Array} keyCentTuning - tuning of individual keys in cents
10
- * @property {boolean} holdPedal - indicates whether the hold pedal is active
11
- * @property {boolean} drumChannel - indicates whether the channel is a drum channel
12
- * @property {number} velocityOverride - overrides velocity if > 0 otherwise disabled
13
- *
14
- * @property {dataEntryStates} dataEntryState - the current state of the data entry
15
- * @property {number} NRPCoarse - the current coarse value of the Non-Registered Parameter
16
- * @property {number} NRPFine - the current fine value of the Non-Registered Parameter
17
- * @property {number} RPValue - the current value of the Registered Parameter
18
- *
19
- * @property {number} bank - the channel's bank number
20
- * @property {BasicPreset} preset - the channel's preset
21
- * @property {boolean} lockPreset - indicates whether the program on the channel is locked
22
- * @property {boolean} presetUsesOverride - indcates if the channel uses a preset from the override soundfont.
23
- *
24
- * @property {boolean} lockGSNRPNParams - indicates whether the GS NRPN parameters are enabled
25
- * @property {Object} channelVibrato - vibrato settings for the channel
26
- * @property {number} channelVibrato.depth - depth of the vibrato effect (cents)
27
- * @property {number} channelVibrato.delay - delay before the vibrato effect starts (seconds)
28
- * @property {number} channelVibrato.rate - rate of the vibrato oscillation (Hz)
29
-
30
- * @property {boolean} isMuted - indicates whether the channel is muted
31
- * @property {WorkletVoice[]} voices - array of voices currently active on the channel
32
- * @property {WorkletVoice[]} sustainedVoices - array of voices that are sustained on the channel
33
- * @property {WorkletVoice[][][]} cachedVoices - first is midi note, second is velocity. output is an array of WorkletVoices
34
- */
35
- /**
36
- * @param sendEvent {boolean}
37
- * @this {SpessaSynthProcessor}
38
- */
39
- export function createWorkletChannel(this: SpessaSynthProcessor, sendEvent?: boolean): void;
40
- /**
41
- * @param channel {WorkletProcessorChannel}
42
- * @param bank {number}
43
- */
44
- export function setBankSelect(channel: WorkletProcessorChannel, bank: number): void;
45
- /**
46
- * @param channel {WorkletProcessorChannel}
47
- * @returns {number}
48
- */
49
- export function getBankSelect(channel: WorkletProcessorChannel): number;
50
- /**
51
- * This is a channel configuration enum, it is internally sent from Synthetizer via controller change
52
- */
53
- export type channelConfiguration = number;
54
- export namespace channelConfiguration {
55
- let velocityOverride: number;
56
- }
57
- export type WorkletProcessorChannel = {
58
- /**
59
- * - array of MIDI controller values + the values used by modulators as source (pitch bend, bend range etc.)
60
- */
61
- midiControllers: Int16Array;
62
- /**
63
- * - array indicating if a controller is locked
64
- */
65
- lockedControllers: boolean[];
66
- /**
67
- * - array of custom (not sf2) control values such as RPN pitch tuning, transpose, modulation depth, etc.
68
- */
69
- customControllers: Float32Array;
70
- /**
71
- * - key shift of the channel
72
- */
73
- channelTransposeKeyShift: number;
74
- /**
75
- * - the tuning for octave on this channel
76
- */
77
- channelOctaveTuning: Int8Array;
78
- /**
79
- * - tuning of individual keys in cents
80
- */
81
- keyCentTuning: Int16Array;
82
- /**
83
- * - indicates whether the hold pedal is active
84
- */
85
- holdPedal: boolean;
86
- /**
87
- * - indicates whether the channel is a drum channel
88
- */
89
- drumChannel: boolean;
90
- /**
91
- * - overrides velocity if > 0 otherwise disabled
92
- */
93
- velocityOverride: number;
94
- /**
95
- * - the current state of the data entry
96
- */
97
- dataEntryState: dataEntryStates;
98
- /**
99
- * - the current coarse value of the Non-Registered Parameter
100
- */
101
- NRPCoarse: number;
102
- /**
103
- * - the current fine value of the Non-Registered Parameter
104
- */
105
- NRPFine: number;
106
- /**
107
- * - the current value of the Registered Parameter
108
- */
109
- RPValue: number;
110
- /**
111
- * - the channel's bank number
112
- */
113
- bank: number;
114
- /**
115
- * - the channel's preset
116
- */
117
- preset: BasicPreset;
118
- /**
119
- * - indicates whether the program on the channel is locked
120
- */
121
- lockPreset: boolean;
122
- /**
123
- * - indcates if the channel uses a preset from the override soundfont.
124
- */
125
- presetUsesOverride: boolean;
126
- /**
127
- * - indicates whether the GS NRPN parameters are enabled
128
- */
129
- lockGSNRPNParams: boolean;
130
- /**
131
- * - vibrato settings for the channel
132
- */
133
- channelVibrato: {
134
- depth: number;
135
- delay: number;
136
- rate: number;
137
- };
138
- /**
139
- * - indicates whether the channel is muted
140
- */
141
- isMuted: boolean;
142
- /**
143
- * - array of voices currently active on the channel
144
- */
145
- voices: WorkletVoice[];
146
- /**
147
- * - array of voices that are sustained on the channel
148
- */
149
- sustainedVoices: WorkletVoice[];
150
- /**
151
- * - first is midi note, second is velocity. output is an array of WorkletVoices
152
- */
153
- cachedVoices: WorkletVoice[][][];
154
- };
155
- import { dataEntryStates } from "./controller_tables.js";
@@ -1,5 +0,0 @@
1
- /**
2
- * The absolute path (from the spessasynth_lib folder) to the worklet module
3
- * @type {string}
4
- */
5
- export const WORKLET_URL_ABSOLUTE: string;
@@ -1,31 +0,0 @@
1
- /**
2
- *
3
- * @param audioBuffer {AudioBuffer}
4
- * @param normalizeAudio {boolean} find the max sample point and set it to 1, and scale others with it
5
- * @param channelOffset {number} channel offset and channel offset + 1 get saved
6
- * @param metadata {WaveMetadata}
7
- * @param loop {{start: number, end: number}} loop start and end points in seconds. Undefined if no loop
8
- * @returns {Blob}
9
- */
10
- export function audioBufferToWav(audioBuffer: AudioBuffer, normalizeAudio?: boolean, channelOffset?: number, metadata?: WaveMetadata, loop?: {
11
- start: number;
12
- end: number;
13
- }): Blob;
14
- export type WaveMetadata = {
15
- /**
16
- * - the song's title
17
- */
18
- title: string | undefined;
19
- /**
20
- * - the song's artist
21
- */
22
- artist: string | undefined;
23
- /**
24
- * - the song's album
25
- */
26
- album: string | undefined;
27
- /**
28
- * - the song's genre
29
- */
30
- genre: string | undefined;
31
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Reads as Big endian
3
- * @param dataArray {IndexedByteArray}
4
- * @param bytesAmount {number}
5
- * @returns {number}
6
- */
7
- export function readBytesAsUintBigEndian(dataArray: IndexedByteArray, bytesAmount: number): number;
8
- /**
9
- * @param number {number}
10
- * @param bytesAmount {number}
11
- * @returns {number[]}
12
- */
13
- export function writeBytesAsUintBigEndian(number: number, bytesAmount: number): number[];
@@ -1,35 +0,0 @@
1
- /**
2
- * Reads as little endian
3
- * @param dataArray {IndexedByteArray}
4
- * @param bytesAmount {number}
5
- * @returns {number}
6
- */
7
- export function readLittleEndian(dataArray: IndexedByteArray, bytesAmount: number): number;
8
- /**
9
- * Writes a number as little endian seems to also work for negative numbers so yay?
10
- * @param dataArray {IndexedByteArray}
11
- * @param number {number}
12
- * @param byteTarget {number}
13
- */
14
- export function writeLittleEndian(dataArray: IndexedByteArray, number: number, byteTarget: number): void;
15
- /**
16
- * @param dataArray {IndexedByteArray}
17
- * @param word {number}
18
- */
19
- export function writeWord(dataArray: IndexedByteArray, word: number): void;
20
- /**
21
- * @param dataArray {IndexedByteArray}
22
- * @param dword {number}
23
- */
24
- export function writeDword(dataArray: IndexedByteArray, dword: number): void;
25
- /**
26
- * @param byte1 {number}
27
- * @param byte2 {number}
28
- * @returns {number}
29
- */
30
- export function signedInt16(byte1: number, byte2: number): number;
31
- /**
32
- * @param byte {number}
33
- * @returns {number}
34
- */
35
- export function signedInt8(byte: number): number;
@@ -1,27 +0,0 @@
1
- /**
2
- * @param dataArray {IndexedByteArray}
3
- * @param bytes {number}
4
- * @param encoding {string} the textElement encoding
5
- * @param trimEnd {boolean} if we should trim once we reach an invalid byte
6
- * @returns {string}
7
- */
8
- export function readBytesAsString(dataArray: IndexedByteArray, bytes: number, encoding?: string, trimEnd?: boolean): string;
9
- /**
10
- * @param string {string}
11
- * @param padLength {number}
12
- * @returns {IndexedByteArray}
13
- */
14
- export function getStringBytes(string: string, padLength?: number): IndexedByteArray;
15
- /**
16
- * @param string {string}
17
- * @returns {IndexedByteArray}
18
- */
19
- export function getStringBytesZero(string: string): IndexedByteArray;
20
- /**
21
- * @param string {string}
22
- * @param outArray {IndexedByteArray}
23
- * @param padLength {number}
24
- * @returns {IndexedByteArray} modified IN PLACE
25
- */
26
- export function writeStringAsBytes(outArray: IndexedByteArray, string: string, padLength?: number): IndexedByteArray;
27
- import { IndexedByteArray } from "../indexed_array.js";
@@ -1,12 +0,0 @@
1
- /**
2
- * Reads VLQ From a MIDI byte array
3
- * @param MIDIbyteArray {IndexedByteArray}
4
- * @returns {number}
5
- */
6
- export function readVariableLengthQuantity(MIDIbyteArray: IndexedByteArray): number;
7
- /**
8
- * Write a VLQ from a number to a byte array
9
- * @param number {number}
10
- * @returns {number[]}
11
- */
12
- export function writeVariableLengthQuantity(number: number): number[];
@@ -1,21 +0,0 @@
1
- /**
2
- * @param arrs {(IndexedByteArray|Uint8Array)[]}
3
- * @returns {IndexedByteArray|Uint8Array}
4
- */
5
- export function combineArrays(arrs: (IndexedByteArray | Uint8Array)[]): IndexedByteArray | Uint8Array;
6
- /**
7
- * indexed_array.js
8
- * purpose: exteds Uint8Array with a currentIndex property
9
- */
10
- export class IndexedByteArray extends Uint8Array<ArrayBuffer> {
11
- /**
12
- * Creates a new instance of an Uint8Array with a currentIndex property
13
- * @param args {any} same as for Uint8Array
14
- */
15
- constructor(args: any);
16
- /**
17
- * The current index of the array
18
- * @type {number}
19
- */
20
- currentIndex: number;
21
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * Enables or disables looging
3
- * @param enableInfo {boolean} - enables info
4
- * @param enableWarn {boolean} - enables warning
5
- * @param enableGroup {boolean} - enables groups
6
- * @param enableTable {boolean} - enables tables
7
- */
8
- export function SpessaSynthLogging(enableInfo: boolean, enableWarn: boolean, enableGroup: boolean, enableTable: boolean): void;
9
- /**
10
- * @param message {...any}
11
- */
12
- export function SpessaSynthInfo(...message: any[]): void;
13
- /**
14
- * @param message {...any}
15
- */
16
- export function SpessaSynthWarn(...message: any[]): void;
17
- export function SpessaSynthTable(...args: any[]): void;
18
- /**
19
- * @param message {...any} the message
20
- */
21
- export function SpessaSynthGroup(...message: any[]): void;
22
- /**
23
- * @param message {...any} the message
24
- */
25
- export function SpessaSynthGroupCollapsed(...message: any[]): void;
26
- export function SpessaSynthGroupEnd(): void;
@@ -1,37 +0,0 @@
1
- /**
2
- * other.js
3
- * purpose: contains some useful functions that don't belong in any specific category
4
- */
5
- /**
6
- * Formats the given seconds to nice readable time
7
- * @param totalSeconds {number} time in seconds
8
- * @return {{seconds: number, minutes: number, time: string}}
9
- */
10
- export function formatTime(totalSeconds: number): {
11
- seconds: number;
12
- minutes: number;
13
- time: string;
14
- };
15
- /**
16
- * @param fileName {string}
17
- * @returns {string}
18
- */
19
- export function formatTitle(fileName: string): string;
20
- /**
21
- * Does what it says
22
- * @param arr {number[]}
23
- * @returns {string}
24
- */
25
- export function arrayToHexString(arr: number[]): string;
26
- /**
27
- * @param eventData {Uint8Array}
28
- * @returns {Uint8Array}
29
- */
30
- export function sanitizeKarLyrics(eventData: Uint8Array): Uint8Array;
31
- export namespace consoleColors {
32
- let warn: string;
33
- let unrecognized: string;
34
- let info: string;
35
- let recognized: string;
36
- let value: string;
37
- }