supersonic-scsynth 0.1.3 → 0.1.5
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/supersonic.js +4 -2
- package/dist/wasm/manifest.json +3 -3
- package/dist/wasm/scsynth-nrt.wasm +0 -0
- package/package.json +1 -1
- package/dist/README.md +0 -21
package/dist/supersonic.js
CHANGED
|
@@ -1607,9 +1607,11 @@ var SuperSonic = class {
|
|
|
1607
1607
|
this.onDebugMessage = null;
|
|
1608
1608
|
this.onInitialized = null;
|
|
1609
1609
|
this.onError = null;
|
|
1610
|
+
const moduleUrl = new URL(import.meta.url);
|
|
1611
|
+
const basePath = moduleUrl.pathname.includes("/dist/") ? new URL(".", moduleUrl).href : "./dist/";
|
|
1610
1612
|
this.config = {
|
|
1611
|
-
wasmUrl: "
|
|
1612
|
-
workletUrl: "
|
|
1613
|
+
wasmUrl: new URL("wasm/scsynth-nrt.wasm", basePath).href,
|
|
1614
|
+
workletUrl: new URL("workers/scsynth_audio_worklet.js", basePath).href,
|
|
1613
1615
|
development: false,
|
|
1614
1616
|
audioContextOptions: {
|
|
1615
1617
|
latencyHint: "interactive",
|
package/dist/wasm/manifest.json
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/dist/README.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# SuperSonic - Demonstration
|
|
2
|
-
|
|
3
|
-
A working example of SuperSonic in the browser.
|
|
4
|
-
|
|
5
|
-
Send and receive OSC, view debug, built-in scope and support for loading some of the Sonic Pi synthdefs to play with.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
For this example you need Ruby on your system - this is just so we can fire up a simple http server with the correct COOP/COEP headers set. If you're familiar with web server, you can easily fire up your own - ensure the headers are set and serve this example directory and everything should just work immedisatey.
|
|
10
|
-
|
|
11
|
-
## Running
|
|
12
|
-
|
|
13
|
-
Simple start the server with `ruby server.rb` and then go to the URL printed to the terminal.
|
|
14
|
-
|
|
15
|
-
## Enjoy
|
|
16
|
-
|
|
17
|
-
Have fun!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|