spessasynth_core 1.1.2 → 1.1.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.
- package/LICENSE +3 -26
- package/README.md +156 -474
- package/index.js +73 -8
- package/package.json +21 -8
- package/src/externals/fflate/LICENSE +21 -0
- package/src/externals/fflate/fflate.min.js +1 -0
- package/src/externals/stbvorbis_sync/@types/stbvorbis_sync.d.ts +12 -0
- package/src/externals/stbvorbis_sync/LICENSE +202 -0
- package/src/externals/stbvorbis_sync/NOTICE +6 -0
- package/src/externals/stbvorbis_sync/stbvorbis_sync.min.js +1 -0
- package/src/midi/README.md +32 -0
- package/src/midi/basic_midi.js +567 -0
- package/src/midi/midi_builder.js +202 -0
- package/src/midi/midi_loader.js +324 -0
- package/{spessasynth_core/midi_parser → src/midi}/midi_message.js +58 -35
- package/src/midi/midi_sequence.js +224 -0
- package/src/midi/midi_tools/get_note_times.js +154 -0
- package/src/midi/midi_tools/midi_editor.js +611 -0
- package/src/midi/midi_tools/midi_writer.js +99 -0
- package/src/midi/midi_tools/rmidi_writer.js +567 -0
- package/src/midi/midi_tools/used_keys_loaded.js +238 -0
- package/src/midi/xmf_loader.js +454 -0
- package/src/sequencer/README.md +5 -0
- package/src/sequencer/events.js +81 -0
- package/src/sequencer/play.js +349 -0
- package/src/sequencer/process_event.js +165 -0
- package/{spessasynth_core/sequencer/worklet_sequencer → src/sequencer}/process_tick.js +103 -84
- package/src/sequencer/sequencer_engine.js +367 -0
- package/src/sequencer/song_control.js +201 -0
- package/src/soundfont/README.md +13 -0
- package/src/soundfont/basic_soundfont/basic_instrument.js +77 -0
- package/src/soundfont/basic_soundfont/basic_preset.js +336 -0
- package/src/soundfont/basic_soundfont/basic_sample.js +206 -0
- package/src/soundfont/basic_soundfont/basic_soundfont.js +565 -0
- package/src/soundfont/basic_soundfont/basic_zone.js +64 -0
- package/src/soundfont/basic_soundfont/basic_zones.js +43 -0
- package/src/soundfont/basic_soundfont/generator.js +220 -0
- package/src/soundfont/basic_soundfont/modulator.js +378 -0
- package/src/soundfont/basic_soundfont/riff_chunk.js +149 -0
- package/src/soundfont/basic_soundfont/write_dls/art2.js +173 -0
- package/src/soundfont/basic_soundfont/write_dls/articulator.js +49 -0
- package/src/soundfont/basic_soundfont/write_dls/combine_zones.js +400 -0
- package/src/soundfont/basic_soundfont/write_dls/ins.js +103 -0
- package/src/soundfont/basic_soundfont/write_dls/lins.js +18 -0
- package/src/soundfont/basic_soundfont/write_dls/modulator_converter.js +330 -0
- package/src/soundfont/basic_soundfont/write_dls/rgn2.js +121 -0
- package/src/soundfont/basic_soundfont/write_dls/wave.js +94 -0
- package/src/soundfont/basic_soundfont/write_dls/write_dls.js +119 -0
- package/src/soundfont/basic_soundfont/write_dls/wsmp.js +78 -0
- package/src/soundfont/basic_soundfont/write_dls/wvpl.js +32 -0
- package/src/soundfont/basic_soundfont/write_sf2/ibag.js +39 -0
- package/src/soundfont/basic_soundfont/write_sf2/igen.js +80 -0
- package/src/soundfont/basic_soundfont/write_sf2/imod.js +46 -0
- package/src/soundfont/basic_soundfont/write_sf2/inst.js +34 -0
- package/src/soundfont/basic_soundfont/write_sf2/pbag.js +39 -0
- package/src/soundfont/basic_soundfont/write_sf2/pgen.js +82 -0
- package/src/soundfont/basic_soundfont/write_sf2/phdr.js +42 -0
- package/src/soundfont/basic_soundfont/write_sf2/pmod.js +46 -0
- package/src/soundfont/basic_soundfont/write_sf2/sdta.js +80 -0
- package/src/soundfont/basic_soundfont/write_sf2/shdr.js +55 -0
- package/src/soundfont/basic_soundfont/write_sf2/write.js +222 -0
- package/src/soundfont/dls/articulator_converter.js +396 -0
- package/src/soundfont/dls/dls_destinations.js +38 -0
- package/src/soundfont/dls/dls_preset.js +44 -0
- package/src/soundfont/dls/dls_sample.js +75 -0
- package/src/soundfont/dls/dls_soundfont.js +186 -0
- package/src/soundfont/dls/dls_sources.js +62 -0
- package/src/soundfont/dls/dls_zone.js +95 -0
- package/src/soundfont/dls/read_articulation.js +299 -0
- package/src/soundfont/dls/read_instrument.js +121 -0
- package/src/soundfont/dls/read_instrument_list.js +17 -0
- package/src/soundfont/dls/read_lart.js +35 -0
- package/src/soundfont/dls/read_region.js +152 -0
- package/src/soundfont/dls/read_samples.js +270 -0
- package/src/soundfont/load_soundfont.js +21 -0
- package/src/soundfont/read_sf2/generators.js +46 -0
- package/{spessasynth_core/soundfont/chunk → src/soundfont/read_sf2}/instruments.js +20 -14
- package/src/soundfont/read_sf2/modulators.js +36 -0
- package/src/soundfont/read_sf2/presets.js +80 -0
- package/src/soundfont/read_sf2/samples.js +304 -0
- package/src/soundfont/read_sf2/soundfont.js +305 -0
- package/{spessasynth_core/soundfont/chunk → src/soundfont/read_sf2}/zones.js +68 -69
- package/src/synthetizer/README.md +7 -0
- package/src/synthetizer/audio_engine/README.md +9 -0
- package/src/synthetizer/audio_engine/engine_components/compute_modulator.js +266 -0
- package/src/synthetizer/audio_engine/engine_components/controller_tables.js +88 -0
- package/src/synthetizer/audio_engine/engine_components/key_modifier_manager.js +150 -0
- package/{spessasynth_core/synthetizer/worklet_system/worklet_utilities → src/synthetizer/audio_engine/engine_components}/lfo.js +9 -6
- package/src/synthetizer/audio_engine/engine_components/lowpass_filter.js +282 -0
- package/src/synthetizer/audio_engine/engine_components/midi_audio_channel.js +467 -0
- package/src/synthetizer/audio_engine/engine_components/modulation_envelope.js +181 -0
- package/{spessasynth_core/synthetizer/worklet_system/worklet_utilities → src/synthetizer/audio_engine/engine_components}/modulator_curves.js +33 -30
- package/src/synthetizer/audio_engine/engine_components/soundfont_manager.js +221 -0
- package/src/synthetizer/audio_engine/engine_components/stereo_panner.js +120 -0
- package/{spessasynth_core/synthetizer/worklet_system/worklet_utilities → src/synthetizer/audio_engine/engine_components}/unit_converter.js +11 -4
- package/src/synthetizer/audio_engine/engine_components/voice.js +519 -0
- package/src/synthetizer/audio_engine/engine_components/volume_envelope.js +401 -0
- package/src/synthetizer/audio_engine/engine_components/wavetable_oscillator.js +263 -0
- package/src/synthetizer/audio_engine/engine_methods/controller_control/controller_change.js +132 -0
- package/src/synthetizer/audio_engine/engine_methods/controller_control/master_parameters.js +48 -0
- package/src/synthetizer/audio_engine/engine_methods/controller_control/reset_controllers.js +241 -0
- package/src/synthetizer/audio_engine/engine_methods/create_midi_channel.js +27 -0
- package/src/synthetizer/audio_engine/engine_methods/data_entry/data_entry_coarse.js +253 -0
- package/src/synthetizer/audio_engine/engine_methods/data_entry/data_entry_fine.js +66 -0
- package/src/synthetizer/audio_engine/engine_methods/mute_channel.js +17 -0
- package/src/synthetizer/audio_engine/engine_methods/note_on.js +175 -0
- package/src/synthetizer/audio_engine/engine_methods/portamento_time.js +92 -0
- package/src/synthetizer/audio_engine/engine_methods/program_change.js +61 -0
- package/src/synthetizer/audio_engine/engine_methods/render_voice.js +196 -0
- package/src/synthetizer/audio_engine/engine_methods/soundfont_management/clear_sound_font.js +30 -0
- package/src/synthetizer/audio_engine/engine_methods/soundfont_management/get_preset.js +22 -0
- package/src/synthetizer/audio_engine/engine_methods/soundfont_management/reload_sound_font.js +28 -0
- package/src/synthetizer/audio_engine/engine_methods/soundfont_management/send_preset_list.js +31 -0
- package/src/synthetizer/audio_engine/engine_methods/soundfont_management/set_embedded_sound_font.js +21 -0
- package/src/synthetizer/audio_engine/engine_methods/stopping_notes/kill_note.js +20 -0
- package/src/synthetizer/audio_engine/engine_methods/stopping_notes/note_off.js +55 -0
- package/src/synthetizer/audio_engine/engine_methods/stopping_notes/stop_all_channels.js +16 -0
- package/src/synthetizer/audio_engine/engine_methods/stopping_notes/stop_all_notes.js +30 -0
- package/src/synthetizer/audio_engine/engine_methods/stopping_notes/voice_killing.js +63 -0
- package/src/synthetizer/audio_engine/engine_methods/system_exclusive.js +776 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/channel_pressure.js +24 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/pitch_wheel.js +33 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/poly_pressure.js +31 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/set_master_tuning.js +15 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/set_modulation_depth.js +27 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/set_octave_tuning.js +19 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/set_tuning.js +27 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/transpose_all_channels.js +15 -0
- package/src/synthetizer/audio_engine/engine_methods/tuning_control/transpose_channel.js +34 -0
- package/src/synthetizer/audio_engine/main_processor.js +804 -0
- package/src/synthetizer/audio_engine/snapshot/apply_synthesizer_snapshot.js +15 -0
- package/src/synthetizer/audio_engine/snapshot/channel_snapshot.js +175 -0
- package/src/synthetizer/audio_engine/snapshot/synthesizer_snapshot.js +116 -0
- package/src/synthetizer/synth_constants.js +22 -0
- package/{spessasynth_core → src}/utils/README.md +1 -0
- package/src/utils/buffer_to_wav.js +185 -0
- package/src/utils/byte_functions/big_endian.js +32 -0
- package/src/utils/byte_functions/little_endian.js +77 -0
- package/src/utils/byte_functions/string.js +107 -0
- package/src/utils/byte_functions/variable_length_quantity.js +42 -0
- package/src/utils/fill_with_defaults.js +21 -0
- package/src/utils/indexed_array.js +52 -0
- package/{spessasynth_core → src}/utils/loggin.js +70 -78
- package/src/utils/other.js +92 -0
- package/src/utils/sysex_detector.js +58 -0
- package/src/utils/xg_hacks.js +193 -0
- package/.idea/inspectionProfiles/Project_Default.xml +0 -10
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/spessasynth_core.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/spessasynth_core/midi_parser/README.md +0 -3
- package/spessasynth_core/midi_parser/midi_loader.js +0 -386
- package/spessasynth_core/sequencer/sequencer.js +0 -202
- package/spessasynth_core/sequencer/worklet_sequencer/play.js +0 -209
- package/spessasynth_core/sequencer/worklet_sequencer/process_event.js +0 -120
- package/spessasynth_core/sequencer/worklet_sequencer/song_control.js +0 -112
- package/spessasynth_core/soundfont/README.md +0 -4
- package/spessasynth_core/soundfont/chunk/generators.js +0 -205
- package/spessasynth_core/soundfont/chunk/modulators.js +0 -232
- package/spessasynth_core/soundfont/chunk/presets.js +0 -264
- package/spessasynth_core/soundfont/chunk/riff_chunk.js +0 -46
- package/spessasynth_core/soundfont/chunk/samples.js +0 -250
- package/spessasynth_core/soundfont/soundfont_parser.js +0 -301
- package/spessasynth_core/synthetizer/README.md +0 -6
- package/spessasynth_core/synthetizer/synthesizer.js +0 -303
- package/spessasynth_core/synthetizer/worklet_system/README.md +0 -3
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/controller_control.js +0 -290
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/data_entry.js +0 -280
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/note_off.js +0 -102
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/note_on.js +0 -77
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/program_control.js +0 -140
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/system_exclusive.js +0 -266
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/tuning_control.js +0 -104
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/vibrato_control.js +0 -29
- package/spessasynth_core/synthetizer/worklet_system/worklet_methods/voice_control.js +0 -222
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/lowpass_filter.js +0 -95
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/modulation_envelope.js +0 -73
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/stereo_panner.js +0 -76
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/volume_envelope.js +0 -194
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/wavetable_oscillator.js +0 -83
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/worklet_modulator.js +0 -173
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/worklet_processor_channel.js +0 -106
- package/spessasynth_core/synthetizer/worklet_system/worklet_utilities/worklet_voice.js +0 -313
- package/spessasynth_core/utils/buffer_to_wav.js +0 -70
- package/spessasynth_core/utils/byte_functions.js +0 -141
- package/spessasynth_core/utils/other.js +0 -49
- package/spessasynth_core/utils/shiftable_array.js +0 -26
- package/spessasynth_core/utils/stbvorbis_sync.js +0 -1877
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* samples.js
|
|
3
|
+
* purpose: parses soundfont samples, resamples if needed.
|
|
4
|
+
* loads sample data, handles async loading of sf3 compressed samples
|
|
5
|
+
*/
|
|
6
|
+
import { SpessaSynthWarn } from "../../utils/loggin.js";
|
|
7
|
+
|
|
8
|
+
// should be reasonable for most cases
|
|
9
|
+
const RESAMPLE_RATE = 48000;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {function} EncodeVorbisFunction
|
|
13
|
+
* @param channelAudioData {Float32Array[]}
|
|
14
|
+
* @param sampleRate {number}
|
|
15
|
+
* @param channels {number}
|
|
16
|
+
* @param quality {number} -0.1 to 1
|
|
17
|
+
* @returns {Uint8Array}
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export class BasicSample
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The sample's name
|
|
25
|
+
* @type {string}
|
|
26
|
+
*/
|
|
27
|
+
sampleName;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Sample rate in Hz
|
|
31
|
+
* @type {number}
|
|
32
|
+
*/
|
|
33
|
+
sampleRate;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Original pitch of the sample as a MIDI note number
|
|
37
|
+
* @type {number}
|
|
38
|
+
*/
|
|
39
|
+
samplePitch;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Pitch correction, in cents. Can be negative
|
|
43
|
+
* @type {number}
|
|
44
|
+
*/
|
|
45
|
+
samplePitchCorrection;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Sample link, currently unused here
|
|
49
|
+
* @type {number}
|
|
50
|
+
*/
|
|
51
|
+
sampleLink;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Type of the sample, currently only used for SF3
|
|
55
|
+
* @type {number}
|
|
56
|
+
*/
|
|
57
|
+
sampleType;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Relative to the start of the sample in sample points
|
|
61
|
+
* @type {number}
|
|
62
|
+
*/
|
|
63
|
+
sampleLoopStartIndex;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Relative to the start of the sample in sample points
|
|
67
|
+
* @type {number}
|
|
68
|
+
*/
|
|
69
|
+
sampleLoopEndIndex;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Indicates if the sample is compressed
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
*/
|
|
75
|
+
isCompressed;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The compressed sample data if it was compressed by spessasynth
|
|
79
|
+
* @type {Uint8Array}
|
|
80
|
+
*/
|
|
81
|
+
compressedData = undefined;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The sample's use count
|
|
85
|
+
* @type {number}
|
|
86
|
+
*/
|
|
87
|
+
useCount = 0;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The sample's audio data
|
|
91
|
+
* @type {Float32Array}
|
|
92
|
+
*/
|
|
93
|
+
sampleData = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The basic representation of a soundfont sample
|
|
97
|
+
* @param sampleName {string} The sample's name
|
|
98
|
+
* @param sampleRate {number} The sample's rate in Hz
|
|
99
|
+
* @param samplePitch {number} The sample's pitch as a MIDI note number
|
|
100
|
+
* @param samplePitchCorrection {number} The sample's pitch correction in cents
|
|
101
|
+
* @param sampleLink {number} The sample's link, currently unused
|
|
102
|
+
* @param sampleType {number} The sample's type, an enum
|
|
103
|
+
* @param loopStart {number} The sample's loop start relative to the sample start in sample points
|
|
104
|
+
* @param loopEnd {number} The sample's loop end relative to the sample start in sample points
|
|
105
|
+
*/
|
|
106
|
+
constructor(
|
|
107
|
+
sampleName,
|
|
108
|
+
sampleRate,
|
|
109
|
+
samplePitch,
|
|
110
|
+
samplePitchCorrection,
|
|
111
|
+
sampleLink,
|
|
112
|
+
sampleType,
|
|
113
|
+
loopStart,
|
|
114
|
+
loopEnd
|
|
115
|
+
)
|
|
116
|
+
{
|
|
117
|
+
this.sampleName = sampleName;
|
|
118
|
+
this.sampleRate = sampleRate;
|
|
119
|
+
this.samplePitch = samplePitch;
|
|
120
|
+
this.samplePitchCorrection = samplePitchCorrection;
|
|
121
|
+
this.sampleLink = sampleLink;
|
|
122
|
+
this.sampleType = sampleType;
|
|
123
|
+
this.sampleLoopStartIndex = loopStart;
|
|
124
|
+
this.sampleLoopEndIndex = loopEnd;
|
|
125
|
+
// https://github.com/FluidSynth/fluidsynth/wiki/SoundFont3Format
|
|
126
|
+
this.isCompressed = (sampleType & 0x10) > 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @returns {Uint8Array|IndexedByteArray}
|
|
132
|
+
*/
|
|
133
|
+
getRawData()
|
|
134
|
+
{
|
|
135
|
+
const uint8 = new Uint8Array(this.sampleData.length * 2);
|
|
136
|
+
for (let i = 0; i < this.sampleData.length; i++)
|
|
137
|
+
{
|
|
138
|
+
const sample = Math.floor(this.sampleData[i] * 32768);
|
|
139
|
+
uint8[i * 2] = sample & 0xFF; // lower byte
|
|
140
|
+
uint8[i * 2 + 1] = (sample >> 8) & 0xFF; // upper byte
|
|
141
|
+
}
|
|
142
|
+
return uint8;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
resampleData(newSampleRate)
|
|
146
|
+
{
|
|
147
|
+
let audioData = this.getAudioData();
|
|
148
|
+
const ratio = newSampleRate / this.sampleRate;
|
|
149
|
+
const resampled = new Float32Array(Math.floor(audioData.length * ratio));
|
|
150
|
+
for (let i = 0; i < resampled.length; i++)
|
|
151
|
+
{
|
|
152
|
+
resampled[i] = audioData[Math.floor(i * (1 / ratio))];
|
|
153
|
+
}
|
|
154
|
+
audioData = resampled;
|
|
155
|
+
this.sampleRate = newSampleRate;
|
|
156
|
+
// adjust loop points
|
|
157
|
+
this.sampleLoopStartIndex = Math.floor(this.sampleLoopStartIndex * ratio);
|
|
158
|
+
this.sampleLoopEndIndex = Math.floor(this.sampleLoopEndIndex * ratio);
|
|
159
|
+
this.sampleData = audioData;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @param quality {number}
|
|
164
|
+
* @param encodeVorbis {EncodeVorbisFunction}
|
|
165
|
+
*/
|
|
166
|
+
compressSample(quality, encodeVorbis)
|
|
167
|
+
{
|
|
168
|
+
// no need to compress
|
|
169
|
+
if (this.isCompressed)
|
|
170
|
+
{
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
// compress, always mono!
|
|
174
|
+
try
|
|
175
|
+
{
|
|
176
|
+
// if the sample rate is too low or too high, resample
|
|
177
|
+
let audioData = this.getAudioData();
|
|
178
|
+
if (this.sampleRate < 8000 || this.sampleRate > 96000)
|
|
179
|
+
{
|
|
180
|
+
this.resampleData(RESAMPLE_RATE);
|
|
181
|
+
audioData = this.getAudioData();
|
|
182
|
+
}
|
|
183
|
+
this.compressedData = encodeVorbis([audioData], 1, this.sampleRate, quality);
|
|
184
|
+
// flag as compressed
|
|
185
|
+
this.sampleType |= 0x10;
|
|
186
|
+
this.isCompressed = true;
|
|
187
|
+
}
|
|
188
|
+
catch (e)
|
|
189
|
+
{
|
|
190
|
+
SpessaSynthWarn(`Failed to compress ${this.sampleName}. Leaving as uncompressed!`);
|
|
191
|
+
this.isCompressed = false;
|
|
192
|
+
this.compressedData = undefined;
|
|
193
|
+
// flag as uncompressed
|
|
194
|
+
this.sampleType &= 0xEF;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @returns {Float32Array}
|
|
201
|
+
*/
|
|
202
|
+
getAudioData()
|
|
203
|
+
{
|
|
204
|
+
return this.sampleData;
|
|
205
|
+
}
|
|
206
|
+
}
|