@effetune/dsp 0.1.0 → 0.4.0

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/dist/index.d.ts CHANGED
@@ -19,7 +19,9 @@ export type {
19
19
  AutoLevelerOptions,
20
20
  BandPassFilterOptions,
21
21
  BitCrusherOptions,
22
+ BluetoothSBCSimulatorOptions,
22
23
  BrickwallLimiterOptions,
24
+ CassetteArtifactsOptions,
23
25
  CombFilterOptions,
24
26
  CommonEffectOptions,
25
27
  CompressorOptions,
@@ -43,6 +45,8 @@ export type {
43
45
  FiveBandDynamicEQOptions,
44
46
  FiveBandFIRPEQOptions,
45
47
  FiveBandPEQOptions,
48
+ G726ADPCMSimulatorOptions,
49
+ GSMFullRateSimulatorOptions,
46
50
  GateOptions,
47
51
  GroupDelayEQOptions,
48
52
  HardClippingOptions,
@@ -55,6 +59,7 @@ export type {
55
59
  IRReverbOptions,
56
60
  LoPassFilterOptions,
57
61
  LoudnessEqualizerOptions,
62
+ MP3CodecSimulatorOptions,
58
63
  MSMatrixOptions,
59
64
  ModalResonatorOptions,
60
65
  MultibandBalanceOptions,
@@ -74,10 +79,12 @@ export type {
74
79
  StereoBlendOptions,
75
80
  SubSynthOptions,
76
81
  SWRadioSimulatorOptions,
82
+ TapeArtifactsOptions,
77
83
  TiltEQOptions,
78
84
  ToneControlOptions,
79
85
  TransientShaperOptions,
80
86
  TremoloOptions,
87
+ TubeSimulatorOptions,
81
88
  VinylArtifactsOptions,
82
89
  VinylSimulatorOptions,
83
90
  WowFlutterOptions
@@ -103,7 +110,9 @@ export {
103
110
  AutoLeveler,
104
111
  BandPassFilter,
105
112
  BitCrusher,
113
+ BluetoothSBCSimulator,
106
114
  BrickwallLimiter,
115
+ CassetteArtifacts,
107
116
  CombFilter,
108
117
  Compressor,
109
118
  CrossfeedFilter,
@@ -125,6 +134,8 @@ export {
125
134
  FiveBandDynamicEQ,
126
135
  FiveBandFIRPEQ,
127
136
  FiveBandPEQ,
137
+ G726ADPCMSimulator,
138
+ GSMFullRateSimulator,
128
139
  Gate,
129
140
  GroupDelayEQ,
130
141
  HardClipping,
@@ -136,6 +147,7 @@ export {
136
147
  IRReverb,
137
148
  LoPassFilter,
138
149
  LoudnessEqualizer,
150
+ MP3CodecSimulator,
139
151
  MSMatrix,
140
152
  ModalResonator,
141
153
  MultibandBalance,
@@ -155,10 +167,12 @@ export {
155
167
  StereoBlend,
156
168
  SubSynth,
157
169
  SWRadioSimulator,
170
+ TapeArtifacts,
158
171
  TiltEQ,
159
172
  ToneControl,
160
173
  TransientShaper,
161
174
  Tremolo,
175
+ TubeSimulator,
162
176
  VinylArtifacts,
163
177
  VinylSimulator,
164
178
  WowFlutter,
@@ -182,7 +196,9 @@ export {
182
196
  createAutoLeveler,
183
197
  createBandPassFilter,
184
198
  createBitCrusher,
199
+ createBluetoothSBCSimulator,
185
200
  createBrickwallLimiter,
201
+ createCassetteArtifacts,
186
202
  createCombFilter,
187
203
  createCompressor,
188
204
  createCrossfeedFilter,
@@ -202,6 +218,8 @@ export {
202
218
  createFiveBandDynamicEQ,
203
219
  createFiveBandFIRPEQ,
204
220
  createFiveBandPEQ,
221
+ createG726ADPCMSimulator,
222
+ createGSMFullRateSimulator,
205
223
  createGate,
206
224
  createGroupDelayEQ,
207
225
  createHardClipping,
@@ -213,6 +231,7 @@ export {
213
231
  createIRReverb,
214
232
  createLoPassFilter,
215
233
  createLoudnessEqualizer,
234
+ createMP3CodecSimulator,
216
235
  createMSMatrix,
217
236
  createModalResonator,
218
237
  createMultibandBalance,
@@ -232,10 +251,12 @@ export {
232
251
  createStereoBlend,
233
252
  createSubSynth,
234
253
  createSWRadioSimulator,
254
+ createTapeArtifacts,
235
255
  createTiltEQ,
236
256
  createToneControl,
237
257
  createTransientShaper,
238
258
  createTremolo,
259
+ createTubeSimulator,
239
260
  createVinylArtifacts,
240
261
  createVinylSimulator,
241
262
  createWowFlutter
package/dist/index.js CHANGED
@@ -27,8 +27,10 @@ export {
27
27
  AMRadioSimulator,
28
28
  AutoLeveler,
29
29
  BitCrusher,
30
+ BluetoothSBCSimulator,
30
31
  BrickwallLimiter,
31
32
  BandPassFilter,
33
+ CassetteArtifacts,
32
34
  CombFilter,
33
35
  Compressor,
34
36
  CrossfeedFilter,
@@ -50,6 +52,8 @@ export {
50
52
  FiveBandDynamicEQ,
51
53
  FiveBandFIRPEQ,
52
54
  FiveBandPEQ,
55
+ G726ADPCMSimulator,
56
+ GSMFullRateSimulator,
53
57
  Gate,
54
58
  GroupDelayEQ,
55
59
  HardClipping,
@@ -61,6 +65,7 @@ export {
61
65
  IRReverb,
62
66
  LoPassFilter,
63
67
  LoudnessEqualizer,
68
+ MP3CodecSimulator,
64
69
  MSMatrix,
65
70
  ModalResonator,
66
71
  MultibandBalance,
@@ -80,10 +85,12 @@ export {
80
85
  StereoBlend,
81
86
  SubSynth,
82
87
  SWRadioSimulator,
88
+ TapeArtifacts,
83
89
  TiltEQ,
84
90
  ToneControl,
85
91
  TransientShaper,
86
92
  Tremolo,
93
+ TubeSimulator,
87
94
  VinylArtifacts,
88
95
  VinylSimulator,
89
96
  WowFlutter,
@@ -107,7 +114,9 @@ export {
107
114
  createAutoLeveler,
108
115
  createBandPassFilter,
109
116
  createBitCrusher,
117
+ createBluetoothSBCSimulator,
110
118
  createBrickwallLimiter,
119
+ createCassetteArtifacts,
111
120
  createCombFilter,
112
121
  createCompressor,
113
122
  createCrossfeedFilter,
@@ -127,6 +136,8 @@ export {
127
136
  createFiveBandDynamicEQ,
128
137
  createFiveBandFIRPEQ,
129
138
  createFiveBandPEQ,
139
+ createG726ADPCMSimulator,
140
+ createGSMFullRateSimulator,
130
141
  createGate,
131
142
  createGroupDelayEQ,
132
143
  createHardClipping,
@@ -138,6 +149,7 @@ export {
138
149
  createIRReverb,
139
150
  createLoPassFilter,
140
151
  createLoudnessEqualizer,
152
+ createMP3CodecSimulator,
141
153
  createMSMatrix,
142
154
  createModalResonator,
143
155
  createMultibandBalance,
@@ -157,10 +169,12 @@ export {
157
169
  createStereoBlend,
158
170
  createSubSynth,
159
171
  createSWRadioSimulator,
172
+ createTapeArtifacts,
160
173
  createTiltEQ,
161
174
  createToneControl,
162
175
  createTransientShaper,
163
176
  createTremolo,
177
+ createTubeSimulator,
164
178
  createVinylArtifacts,
165
179
  createVinylSimulator,
166
180
  createWowFlutter
@@ -27,6 +27,7 @@ const REQUIRED_FUNCTION_EXPORTS = [
27
27
  'et_instance_asset_abort',
28
28
  'et_instance_asset_state',
29
29
  'et_instance_process',
30
+ 'et_instance_runtime_event',
30
31
  'et_arena_combined_ptr',
31
32
  'et_arena_bus_ptr',
32
33
  'et_arena_scratch_ptr',
@@ -552,6 +553,25 @@ export class DspEngineBinding {
552
553
  );
553
554
  }
554
555
 
556
+ instanceRuntimeEvent(instanceId) {
557
+ if (!this.engine || !this.prepared) return null;
558
+ const ptr = this.exports.et_scratch_ptr(this.engine) >>> 0;
559
+ this._refreshViews();
560
+ this._assertRange(ptr, 12, 'Runtime event state');
561
+ if (this.exports.et_instance_runtime_event(
562
+ this.engine,
563
+ instanceId,
564
+ ptr
565
+ ) !== ET_OK) {
566
+ return null;
567
+ }
568
+ return {
569
+ generation: this.dataView.getUint32(ptr, true),
570
+ latched: this.dataView.getUint32(ptr + 4, true) !== 0,
571
+ cause: this.dataView.getUint32(ptr + 8, true)
572
+ };
573
+ }
574
+
555
575
  instanceSetParamBytes(instanceId, packed, paramsHash, offsetFrames = 0) {
556
576
  if (!this.engine || !this.prepared) return ET_ERR_STATE;
557
577
  const values = toUint8View(packed, 'Structured parameter block');