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.
@@ -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: "./dist/wasm/scsynth-nrt.wasm",
1612
- workletUrl: "./dist/workers/scsynth_audio_worklet.js",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "wasmFile": "scsynth-nrt.wasm",
3
- "buildId": "20251104-125406",
4
- "buildTime": "2025-11-04T12:54:06Z",
5
- "gitHash": "003a9a0"
3
+ "buildId": "20251104-221531",
4
+ "buildTime": "2025-11-04T22:15:31Z",
5
+ "gitHash": "451c8a9"
6
6
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersonic-scsynth",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "SuperCollider scsynth WebAssembly port for AudioWorklet - Run SuperCollider synthesis in the browser",
5
5
  "main": "dist/supersonic.js",
6
6
  "unpkg": "dist/supersonic.js",
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
-