supersonic-scsynth-bundle 0.2.1 → 0.2.3
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 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,11 +20,12 @@ This installs all three packages as dependencies.
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Important:** SuperSonic cannot be loaded from a CDN. You must self-host the core library and serve it with COOP/COEP headers. See the [main README](https://github.com/samaaron/supersonic#cdn-usage) for details.
|
|
24
24
|
|
|
25
25
|
```javascript
|
|
26
|
-
import { SuperSonic } from 'supersonic
|
|
26
|
+
import { SuperSonic } from './dist/supersonic.js';
|
|
27
27
|
|
|
28
|
+
// Synthdefs and samples can use CDN
|
|
28
29
|
const sonic = new SuperSonic({
|
|
29
30
|
sampleBaseURL: 'https://unpkg.com/supersonic-scsynth-samples@latest/samples/',
|
|
30
31
|
synthdefBaseURL: 'https://unpkg.com/supersonic-scsynth-synthdefs@latest/synthdefs/'
|