spessasynth_lib 3.21.7 → 3.21.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/index.d.ts +1 -2
- package/externals/NOTICE +1 -5
- package/index.js +1 -3
- package/package.json +1 -1
- package/sequencer/sequencer.js +0 -0
- package/sequencer/worklet_sequencer/worklet_sequencer.js +0 -0
- package/@types/externals/libvorbis/OggVorbisEncoder.min.d.ts +0 -3
- package/@types/utils/encode_vorbis.d.ts +0 -10
- package/externals/libvorbis/@types/OggVorbisEncoder.d.ts +0 -34
- package/externals/libvorbis/OggVorbisEncoder.min.js +0 -1
- package/utils/encode_vorbis.js +0 -30
package/@types/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { BasicSoundFont } from "./soundfont/basic_soundfont/basic_soundfont.js";
|
|
|
6
6
|
import { loadSoundFont } from "./soundfont/load_soundfont.js";
|
|
7
7
|
import { trimSoundfont } from "./soundfont/basic_soundfont/write_sf2/soundfont_trimmer.js";
|
|
8
8
|
import { modulatorSources } from "./soundfont/basic_soundfont/modulator.js";
|
|
9
|
-
import { encodeVorbis } from "./utils/encode_vorbis.js";
|
|
10
9
|
import { MIDI } from './midi_parser/midi_loader.js';
|
|
11
10
|
import { MIDIBuilder } from "./midi_parser/midi_builder.js";
|
|
12
11
|
import { IndexedByteArray } from './utils/indexed_array.js';
|
|
@@ -35,4 +34,4 @@ import { readBytesAsUintBigEndian } from './utils/byte_functions/big_endian.js';
|
|
|
35
34
|
import { NON_CC_INDEX_OFFSET } from "./synthetizer/worklet_system/worklet_utilities/controller_tables.js";
|
|
36
35
|
import { ALL_CHANNELS_OR_DIFFERENT_ACTION } from './synthetizer/worklet_system/message_protocol/worklet_message.js';
|
|
37
36
|
import { WORKLET_URL_ABSOLUTE } from './synthetizer/worklet_url.js';
|
|
38
|
-
export { Sequencer, Synthetizer, DEFAULT_PERCUSSION, VOICE_CAP, BasicSoundFont, loadSoundFont, trimSoundfont, modulatorSources,
|
|
37
|
+
export { Sequencer, Synthetizer, DEFAULT_PERCUSSION, VOICE_CAP, BasicSoundFont, loadSoundFont, trimSoundfont, modulatorSources, MIDI, MIDIBuilder, IndexedByteArray, writeMIDIFile, writeRMIDI, applySnapshotToMIDI, modifyMIDI, MIDIticksToSeconds, audioBufferToWav, SpessaSynthLogging, SpessaSynthGroup, SpessaSynthTable, SpessaSynthGroupEnd, SpessaSynthInfo, SpessaSynthWarn, SpessaSynthGroupCollapsed, midiControllers, messageTypes, MIDIDeviceHandler, WebMidiLinkHandler, arrayToHexString, consoleColors, formatTitle, formatTime, readBytesAsUintBigEndian, NON_CC_INDEX_OFFSET, ALL_CHANNELS_OR_DIFFERENT_ACTION, WORKLET_URL_ABSOLUTE };
|
package/externals/NOTICE
CHANGED
|
@@ -2,8 +2,4 @@ LICENSE is for stbvorbis_sync.js which is licensed under Apache-2.0
|
|
|
2
2
|
|
|
3
3
|
Modifications made to stbvorbis_sync.js
|
|
4
4
|
1. minified the code
|
|
5
|
-
2. added types declaration
|
|
6
|
-
|
|
7
|
-
OggVorbisEncoder (https://github.com/higuma/ogg-vorbis-encoder-js)
|
|
8
|
-
is licensed under MIT.
|
|
9
|
-
The file provided is a slight modification to work with es6.
|
|
5
|
+
2. added types declaration
|
package/index.js
CHANGED
|
@@ -29,8 +29,7 @@ import { modulatorSources } from "./soundfont/basic_soundfont/modulator.js";
|
|
|
29
29
|
import { NON_CC_INDEX_OFFSET } from "./synthetizer/worklet_system/worklet_utilities/controller_tables.js";
|
|
30
30
|
import { ALL_CHANNELS_OR_DIFFERENT_ACTION } from './synthetizer/worklet_system/message_protocol/worklet_message.js';
|
|
31
31
|
import { trimSoundfont} from "./soundfont/basic_soundfont/write_sf2/soundfont_trimmer.js";
|
|
32
|
-
import { WORKLET_URL_ABSOLUTE } from './synthetizer/worklet_url.js'
|
|
33
|
-
import { encodeVorbis} from "./utils/encode_vorbis.js";
|
|
32
|
+
import { WORKLET_URL_ABSOLUTE } from './synthetizer/worklet_url.js';
|
|
34
33
|
|
|
35
34
|
// Export modules
|
|
36
35
|
export {
|
|
@@ -45,7 +44,6 @@ export {
|
|
|
45
44
|
loadSoundFont,
|
|
46
45
|
trimSoundfont,
|
|
47
46
|
modulatorSources,
|
|
48
|
-
encodeVorbis,
|
|
49
47
|
|
|
50
48
|
// MIDI
|
|
51
49
|
MIDI,
|
package/package.json
CHANGED
package/sequencer/sequencer.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {function} EncodeVorbisFunction
|
|
3
|
-
* @param channelAudioData {Float32Array[]}
|
|
4
|
-
* @param sampleRate {number}
|
|
5
|
-
* @param channels {number}
|
|
6
|
-
* @param quality {number} -0.1 to 1
|
|
7
|
-
* @returns {Uint8Array}
|
|
8
|
-
*/
|
|
9
|
-
export function encodeVorbis(channelAudioData: Float32Array[], channels: number, sampleRate: number, quality: number): Uint8Array;
|
|
10
|
-
export type EncodeVorbisFunction = Function;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* initializes libvorbis
|
|
3
|
-
* @returns {null}
|
|
4
|
-
*/
|
|
5
|
-
export namespace libvorbis {
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Represents an Ogg Vorbis encoder.
|
|
9
|
-
*/
|
|
10
|
-
class OggVorbisEncoder {
|
|
11
|
-
/**
|
|
12
|
-
* Creates an instance of Encoder
|
|
13
|
-
* @param {number} sampleRate - The sample rate of the audio in Hz
|
|
14
|
-
* @param {number} channels - The number of audio channels (e.g., 1 for mono, 2 for stereo)
|
|
15
|
-
* @param {number} quality - The quality of the encoding, between -0.1 and 1
|
|
16
|
-
*/
|
|
17
|
-
constructor(sampleRate: number, channels: number, quality: number);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Encodes audio data
|
|
21
|
-
* @param {Float32Array[]} audioData - An array of Float32Arrays, where each Float32Array represents a block of audio samples
|
|
22
|
-
* @returns {null}
|
|
23
|
-
*/
|
|
24
|
-
encode(audioData: Float32Array[]): null;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Finishes the encoding process and retrieves the encoded data
|
|
28
|
-
* @returns {Uint8Array[]} An array of Uint8Arrays representing the encoded audio data
|
|
29
|
-
*/
|
|
30
|
-
finish(): Uint8Array[];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function init(): null
|
|
34
|
-
}
|