smplr 0.4.0 → 0.4.1
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 +4 -18
- package/dist/index.js +268 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +269 -188
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare class Channel {
|
|
|
25
25
|
disconnect(): void;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type AudioBuffers = Record<string | number, AudioBuffer>;
|
|
28
|
+
type AudioBuffers = Record<string | number, AudioBuffer | undefined>;
|
|
29
29
|
|
|
30
30
|
type StopSample = {
|
|
31
31
|
stopId?: string | number;
|
|
@@ -69,7 +69,7 @@ declare class Sampler {
|
|
|
69
69
|
readonly buffers: AudioBuffers;
|
|
70
70
|
constructor(context: AudioContext, options: Partial<SamplerConfig>);
|
|
71
71
|
loaded(): Promise<this>;
|
|
72
|
-
start(note: SamplerNote | string | number): (time?: number) => void;
|
|
72
|
+
start(note: SamplerNote | string | number): (time?: number | undefined) => void;
|
|
73
73
|
stop(note?: StopSample | string | number): void;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -193,27 +193,13 @@ declare class ElectricPiano extends SfzSampler {
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
declare function getMalletNames():
|
|
196
|
+
declare function getMalletNames(): string[];
|
|
197
197
|
declare class Mallet extends SfzSampler {
|
|
198
198
|
constructor(context: AudioContext, options: Partial<SfzSamplerConfig> & {
|
|
199
199
|
instrument: string;
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
declare const DATA:
|
|
203
|
-
readonly "Balafon - Hard Mallet": "Struck Idiophones/balafon-hard-mallet";
|
|
204
|
-
readonly "Balafon - Keyswitch": "Struck Idiophones/balafon-keyswitch";
|
|
205
|
-
readonly "Balafon - Soft Mallet": "Struck Idiophones/balafon-soft-mallet";
|
|
206
|
-
readonly "Balafon - Traditional Mallet": "Struck Idiophones/balafon-traditional-mallet";
|
|
207
|
-
readonly "Tubular Bells 1": "Struck Idiophones/tubular-bells-1";
|
|
208
|
-
readonly "Tubular Bells 2": "Struck Idiophones/tubular-bells-2";
|
|
209
|
-
readonly "Vibraphone - Hard Mallets": "Struck Idiophones/vibraphone-hard-mallets";
|
|
210
|
-
readonly "Vibraphone - Keyswitch": "Struck Idiophones/vibraphone-keyswitch";
|
|
211
|
-
readonly "Vibraphone - Soft Mallets": "Struck Idiophones/vibraphone-soft-mallets";
|
|
212
|
-
readonly "Xylophone - Hard Mallets": "Struck Idiophones/xylophone-hard-mallets";
|
|
213
|
-
readonly "Xylophone - Keyswitch": "Struck Idiophones/xylophone-keyswitch";
|
|
214
|
-
readonly "Xylophone - Medium Mallets": "Struck Idiophones/xylophone-medium-mallets";
|
|
215
|
-
readonly "Xylophone - Soft Mallets": "Struck Idiophones/xylophone-soft-mallets";
|
|
216
|
-
};
|
|
202
|
+
declare const DATA: Record<string, string | undefined>;
|
|
217
203
|
|
|
218
204
|
declare const PARAMS: readonly ["preDelay", "bandwidth", "inputDiffusion1", "inputDiffusion2", "decay", "decayDiffusion1", "decayDiffusion2", "damping", "excursionRate", "excursionDepth", "wet", "dry"];
|
|
219
205
|
declare class Reverb {
|