@audio/neural-timbre 0.1.0 → 0.1.1
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/package.json +2 -2
- package/timbre.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audio/neural-timbre",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Timbre recognition: a small encoder maps one note to a vector, a catalog of preset vectors names the sound (Yamaha DX7 first), ranked by cosine through @audio/neural-runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"scripts/*.py"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@audio/neural-runtime": "^0.
|
|
24
|
+
"@audio/neural-runtime": "^0.2.0",
|
|
25
25
|
"@audio/resample-sinc": "^1.1.2",
|
|
26
26
|
"fourier-transform": "^2.4.1"
|
|
27
27
|
},
|
package/timbre.js
CHANGED
|
@@ -29,7 +29,7 @@ export const catalogs = {
|
|
|
29
29
|
'dx7-all': new URL(FILES['dx7-all'].file, HOSTED),
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
const isNode =
|
|
32
|
+
const isNode = globalThis.process?.release?.name === 'node' // Node, Bun, Deno: not a process polyfill (esm.sh's, a bundler's), whose versions.node is set
|
|
33
33
|
// a URL scheme has two characters at least, so a Windows drive (C:\) stays a path
|
|
34
34
|
const isUrl = s => /^[a-z][a-z0-9+.-]+:/i.test(s)
|
|
35
35
|
|