supersonic-scsynth-bundle 0.7.2 → 0.8.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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,13 +26,13 @@ This installs all three packages as dependencies.
|
|
|
26
26
|
import { SuperSonic } from './dist/supersonic.js';
|
|
27
27
|
|
|
28
28
|
// Synthdefs and samples can use CDN
|
|
29
|
-
const
|
|
29
|
+
const supersonic = new SuperSonic({
|
|
30
30
|
sampleBaseURL: 'https://unpkg.com/supersonic-scsynth-samples@latest/samples/',
|
|
31
31
|
synthdefBaseURL: 'https://unpkg.com/supersonic-scsynth-synthdefs@latest/synthdefs/'
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
await
|
|
35
|
-
await
|
|
34
|
+
await supersonic.init();
|
|
35
|
+
await supersonic.loadSynthDefs(['sonic-pi-beep', 'sonic-pi-tb303']);
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## When to Use This
|