supersonic-scsynth-synthdefs 0.23.3 → 0.23.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.
Files changed (2) hide show
  1. package/README.md +4 -28
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,16 +16,11 @@ npm install supersonic-scsynth supersonic-scsynth-synthdefs
16
16
 
17
17
  ## Usage
18
18
 
19
- **Important:** SuperSonic cannot be loaded from a CDN. You must self-host the core library and serve it with COOP/COEP headers. Synthdefs can be loaded from a CDN.
20
-
21
- ### Self-hosted core with CDN synthdefs
22
-
23
19
  ```javascript
24
- // Self-hosted core library
25
- import { SuperSonic } from './dist/supersupersonic.js';
20
+ import { SuperSonic } from 'https://unpkg.com/supersonic-scsynth@latest';
26
21
 
27
22
  const supersonic = new SuperSonic({
28
- synthdefBaseURL: 'https://unpkg.com/supersonic-scsynth-synthdefs/synthdefs/'
23
+ synthdefBaseURL: 'https://unpkg.com/supersonic-scsynth-synthdefs@latest/synthdefs/'
29
24
  });
30
25
  await supersonic.init();
31
26
 
@@ -33,31 +28,12 @@ await supersonic.init();
33
28
  await supersonic.loadSynthDefs(['sonic-pi-beep', 'sonic-pi-tb303', 'sonic-pi-prophet']);
34
29
  ```
35
30
 
36
- ### Self-hosted core and synthdefs
37
-
38
- Copy synthdefs to your public directory:
39
-
40
- ```bash
41
- cp -r node_modules/supersonic-scsynth-synthdefs/synthdefs public/
42
- ```
43
-
44
- Then use:
45
-
46
- ```javascript
47
- import { SuperSonic } from './dist/supersupersonic.js';
48
-
49
- const supersonic = new SuperSonic({
50
- synthdefBaseURL: '/synthdefs/'
51
- });
52
- await supersonic.init();
53
-
54
- await supersonic.loadSynthDefs(['sonic-pi-beep', 'sonic-pi-tb303']);
55
- ```
31
+ SuperSonic works directly from CDN with zero configuration.
56
32
 
57
33
  ### Using the CDN path helper
58
34
 
59
35
  ```javascript
60
- import { SuperSonic } from './dist/supersupersonic.js';
36
+ import { SuperSonic } from 'https://unpkg.com/supersonic-scsynth@latest';
61
37
  import { SYNTHDEFS_CDN } from 'supersonic-scsynth-synthdefs';
62
38
 
63
39
  const supersonic = new SuperSonic({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersonic-scsynth-synthdefs",
3
- "version": "0.23.3",
3
+ "version": "0.23.4",
4
4
  "description": "All Sonic Pi synthdefs for SuperSonic scsynth",
5
5
  "main": "index.js",
6
6
  "type": "module",