@opendaw/studio-core-wasm 0.0.2
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/WasmEngine.d.ts +14 -0
- package/dist/WasmEngine.d.ts.map +1 -0
- package/dist/WasmEngine.js +152 -0
- package/dist/boot.d.ts +14 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/boot.js +91 -0
- package/dist/device-linker.d.ts +47 -0
- package/dist/device-linker.d.ts.map +1 -0
- package/dist/device-linker.js +109 -0
- package/dist/engine-exports.d.ts +86 -0
- package/dist/engine-exports.d.ts.map +1 -0
- package/dist/engine-exports.js +13 -0
- package/dist/engine-modules.d.ts +26 -0
- package/dist/engine-modules.d.ts.map +1 -0
- package/dist/engine-modules.js +62 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/nam-bridge.d.ts +7 -0
- package/dist/nam-bridge.d.ts.map +1 -0
- package/dist/nam-bridge.js +265 -0
- package/dist/nam-loader.d.ts +4 -0
- package/dist/nam-loader.d.ts.map +1 -0
- package/dist/nam-loader.js +1 -0
- package/dist/protocol.d.ts +22 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +3 -0
- package/dist/script-bridge.d.ts +11 -0
- package/dist/script-bridge.d.ts.map +1 -0
- package/dist/script-bridge.js +343 -0
- package/dist/script-spielwerk.d.ts +24 -0
- package/dist/script-spielwerk.d.ts.map +1 -0
- package/dist/script-spielwerk.js +179 -0
- package/dist/soundfont-simplify.d.ts +28 -0
- package/dist/soundfont-simplify.d.ts.map +1 -0
- package/dist/soundfont-simplify.js +143 -0
- package/dist/sync/loopback.d.ts +8 -0
- package/dist/sync/loopback.d.ts.map +1 -0
- package/dist/sync/loopback.js +23 -0
- package/dist/sync/serialize-update-tasks.d.ts +4 -0
- package/dist/sync/serialize-update-tasks.d.ts.map +1 -0
- package/dist/sync/serialize-update-tasks.js +40 -0
- package/dist/utf8.d.ts +2 -0
- package/dist/utf8.d.ts.map +1 -0
- package/dist/utf8.js +19 -0
- package/dist/wasm/engine.wasm +0 -0
- package/dist/wasm/plugins/device_apparat.wasm +0 -0
- package/dist/wasm/plugins/device_arpeggio.wasm +0 -0
- package/dist/wasm/plugins/device_compressor.wasm +0 -0
- package/dist/wasm/plugins/device_crusher.wasm +0 -0
- package/dist/wasm/plugins/device_dattorro_reverb.wasm +0 -0
- package/dist/wasm/plugins/device_delay.wasm +0 -0
- package/dist/wasm/plugins/device_fold.wasm +0 -0
- package/dist/wasm/plugins/device_gate.wasm +0 -0
- package/dist/wasm/plugins/device_maximizer.wasm +0 -0
- package/dist/wasm/plugins/device_nano.wasm +0 -0
- package/dist/wasm/plugins/device_neural_amp.wasm +0 -0
- package/dist/wasm/plugins/device_pitch.wasm +0 -0
- package/dist/wasm/plugins/device_playfield_sample.wasm +0 -0
- package/dist/wasm/plugins/device_revamp.wasm +0 -0
- package/dist/wasm/plugins/device_reverb.wasm +0 -0
- package/dist/wasm/plugins/device_soundfont.wasm +0 -0
- package/dist/wasm/plugins/device_spielwerk.wasm +0 -0
- package/dist/wasm/plugins/device_stereo_tool.wasm +0 -0
- package/dist/wasm/plugins/device_tidal.wasm +0 -0
- package/dist/wasm/plugins/device_vaporisateur.wasm +0 -0
- package/dist/wasm/plugins/device_velocity.wasm +0 -0
- package/dist/wasm/plugins/device_vocoder.wasm +0 -0
- package/dist/wasm/plugins/device_waveshaper.wasm +0 -0
- package/dist/wasm/plugins/device_werkstatt.wasm +0 -0
- package/dist/wasm/plugins/device_zeitgeist.wasm +0 -0
- package/dist/wasm-offline-worker.js +97 -0
- package/dist/wasm-offline-worker.js.map +7 -0
- package/dist/wasm-processor.js +97 -0
- package/dist/wasm-processor.js.map +7 -0
- package/dist/worklet-scope.d.ts +2 -0
- package/dist/worklet-scope.d.ts.map +1 -0
- package/dist/worklet-scope.js +10 -0
- package/package.json +53 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worklet-scope.d.ts","sourceRoot":"","sources":["../src/worklet-scope.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// The AudioWorkletGlobalScope defines neither `self` nor `location`, but bundled worker glue expects both:
|
|
2
|
+
// vite's IIFE worker build rewrites `import.meta.url` to `self.location.href` (e.g. inside the inlined
|
|
3
|
+
// @opendaw/nam-wasm Emscripten glue), evaluated at module scope — one ReferenceError there kills the whole
|
|
4
|
+
// worklet module before `registerProcessor` runs. The href is never fetched (the nam binary arrives over
|
|
5
|
+
// RPC and `locateFile` is overridden), it only needs to exist. MUST stay the FIRST import of every worklet
|
|
6
|
+
// entry so it evaluates before any inlined glue.
|
|
7
|
+
const scope = globalThis;
|
|
8
|
+
scope.self ??= globalThis;
|
|
9
|
+
scope.location ??= { href: "/" };
|
|
10
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opendaw/studio-core-wasm",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"license": "LGPL-3.0-or-later",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./wasm-processor.js": "./dist/wasm-processor.js",
|
|
16
|
+
"./wasm-offline-worker.js": "./dist/wasm-offline-worker.js",
|
|
17
|
+
"./wasm/*": "./dist/wasm/*"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/**"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "npm run build:wasm && npm run build:bundles && npm run build:api",
|
|
24
|
+
"build:wasm": "sh ./build-wasm.sh",
|
|
25
|
+
"build:bundles": "esbuild src/processor.ts --bundle --format=esm --platform=browser --minify --sourcemap --outfile=dist/wasm-processor.js && esbuild src/offline-worker.ts --bundle --format=esm --platform=browser --minify --sourcemap --outfile=dist/wasm-offline-worker.js",
|
|
26
|
+
"build:api": "tsc --project tsconfig.build.json",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint \"**/*.ts\"",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"clean": "rm -rf dist"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@opendaw/lib-box": "^0.0.88",
|
|
34
|
+
"@opendaw/lib-dsp": "^0.0.86",
|
|
35
|
+
"@opendaw/lib-fusion": "^0.0.96",
|
|
36
|
+
"@opendaw/lib-runtime": "^0.0.81",
|
|
37
|
+
"@opendaw/lib-std": "^0.0.80",
|
|
38
|
+
"@opendaw/nam-wasm": "^1.2.0",
|
|
39
|
+
"@opendaw/studio-adapters": "^0.0.119",
|
|
40
|
+
"@opendaw/studio-boxes": "^0.0.96",
|
|
41
|
+
"@opendaw/studio-core": "^0.0.155",
|
|
42
|
+
"soundfont2": "^0.5.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@opendaw/eslint-config": "^0.0.28",
|
|
46
|
+
"@opendaw/studio-core-processors": "^0.0.125",
|
|
47
|
+
"@opendaw/typescript-config": "^0.0.32",
|
|
48
|
+
"@types/audioworklet": "^0.0.77",
|
|
49
|
+
"esbuild": "^0.25.0",
|
|
50
|
+
"vitest": "^3.1.3"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "39217ab3e0c5e488cb21ca20e1fcd673e6f60142"
|
|
53
|
+
}
|