@ilusiv/fyug-js 2026.11.4 → 2026.11.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/README.md +43 -1
- package/dist/FuguePlayer.d.ts +2 -1
- package/dist/FuguePlayer.d.ts.map +1 -1
- package/dist/FuguePlayer.js +21 -0
- package/dist/FuguePlayer.js.map +1 -1
- package/dist/fugue-audio-worklet.js +1 -1
- package/dist/generated/embedded-assets.d.ts.map +1 -1
- package/dist/generated/embedded-assets.js +2 -2
- package/dist/generated/embedded-assets.js.map +1 -1
- package/dist/generated/fugue.d.ts +16 -0
- package/dist/generated/fugue.js +53 -1
- package/dist/generated/fugue_bg.wasm +0 -0
- package/dist/generated/fugue_bg.wasm.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/note-preview.d.ts +5 -1
- package/dist/note-preview.d.ts.map +1 -1
- package/dist/note-preview.js +18 -0
- package/dist/note-preview.js.map +1 -1
- package/dist/samples/fugue.demo.808-kit/0.1.0/README.md +22 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/fugue.pkg.json +12 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/clap.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/cowbell.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/hat-closed.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/hat-open.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/kick.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/loop.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples/snare.wav +0 -0
- package/dist/samples/fugue.demo.808-kit/0.1.0/samples.json +52 -0
- package/dist/samples/index.json +47 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-assets.js","sourceRoot":"","sources":["../../src/generated/embedded-assets.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAW,
|
|
1
|
+
{"version":3,"file":"embedded-assets.js","sourceRoot":"","sources":["../../src/generated/embedded-assets.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAW,0idAA0id,CAAC;AAExld,MAAM,CAAC,MAAM,kBAAkB,GAAW,8k/2HAA8k/2H,CAAC"}
|
|
@@ -72,6 +72,21 @@ export class FugueEngine {
|
|
|
72
72
|
* AudioWorklet.
|
|
73
73
|
*/
|
|
74
74
|
previewNotes(json: string, request: string): Promise<any>;
|
|
75
|
+
/**
|
|
76
|
+
* Hands the engine the bytes of one file of a package (a WAV sample),
|
|
77
|
+
* named by the package id, its version and the file's path in it, and
|
|
78
|
+
* decodes it at the engine's rate. A document's package ref
|
|
79
|
+
* (`id@requirement:file`) then plays the highest provided version that
|
|
80
|
+
* meets the requirement; one with no provided match fails to load,
|
|
81
|
+
* naming the ref. Provide samples before loading the piece that plays
|
|
82
|
+
* them. Returns the source the file resolves to (`id@=version:file`).
|
|
83
|
+
* Provided samples are shared by every engine in this WebAssembly
|
|
84
|
+
* instance (an AudioWorklet's engine has an instance of its own) and
|
|
85
|
+
* stay for its lifetime. Decoding runs here, on the calling thread: in
|
|
86
|
+
* an AudioWorklet that is the render thread, so provide samples before
|
|
87
|
+
* the piece that plays them starts, not while something plays.
|
|
88
|
+
*/
|
|
89
|
+
provideSample(_package: string, version: string, path: string, bytes: Uint8Array): string;
|
|
75
90
|
/**
|
|
76
91
|
* Removes a module from the loaded graph.
|
|
77
92
|
*/
|
|
@@ -140,6 +155,7 @@ export interface InitOutput {
|
|
|
140
155
|
readonly fugueengine_loadInvention: (a: number, b: number, c: number) => [number, number];
|
|
141
156
|
readonly fugueengine_new: (a: number) => number;
|
|
142
157
|
readonly fugueengine_previewNotes: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
158
|
+
readonly fugueengine_provideSample: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
143
159
|
readonly fugueengine_removeModule: (a: number, b: number, c: number) => [number, number];
|
|
144
160
|
readonly fugueengine_renderInterleaved: (a: number, b: number) => [number, number, number, number];
|
|
145
161
|
readonly fugueengine_renderInterleavedInto: (a: number, b: any) => [number, number, number];
|
package/dist/generated/fugue.js
CHANGED
|
@@ -304,6 +304,51 @@ export class FugueEngine {
|
|
|
304
304
|
const ret = wasm.fugueengine_previewNotes(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
305
305
|
return ret;
|
|
306
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Hands the engine the bytes of one file of a package (a WAV sample),
|
|
309
|
+
* named by the package id, its version and the file's path in it, and
|
|
310
|
+
* decodes it at the engine's rate. A document's package ref
|
|
311
|
+
* (`id@requirement:file`) then plays the highest provided version that
|
|
312
|
+
* meets the requirement; one with no provided match fails to load,
|
|
313
|
+
* naming the ref. Provide samples before loading the piece that plays
|
|
314
|
+
* them. Returns the source the file resolves to (`id@=version:file`).
|
|
315
|
+
* Provided samples are shared by every engine in this WebAssembly
|
|
316
|
+
* instance (an AudioWorklet's engine has an instance of its own) and
|
|
317
|
+
* stay for its lifetime. Decoding runs here, on the calling thread: in
|
|
318
|
+
* an AudioWorklet that is the render thread, so provide samples before
|
|
319
|
+
* the piece that plays them starts, not while something plays.
|
|
320
|
+
* @param {string} _package
|
|
321
|
+
* @param {string} version
|
|
322
|
+
* @param {string} path
|
|
323
|
+
* @param {Uint8Array} bytes
|
|
324
|
+
* @returns {string}
|
|
325
|
+
*/
|
|
326
|
+
provideSample(_package, version, path, bytes) {
|
|
327
|
+
let deferred6_0;
|
|
328
|
+
let deferred6_1;
|
|
329
|
+
try {
|
|
330
|
+
const ptr0 = passStringToWasm0(_package, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
331
|
+
const len0 = WASM_VECTOR_LEN;
|
|
332
|
+
const ptr1 = passStringToWasm0(version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
333
|
+
const len1 = WASM_VECTOR_LEN;
|
|
334
|
+
const ptr2 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
335
|
+
const len2 = WASM_VECTOR_LEN;
|
|
336
|
+
const ptr3 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
337
|
+
const len3 = WASM_VECTOR_LEN;
|
|
338
|
+
const ret = wasm.fugueengine_provideSample(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
339
|
+
var ptr5 = ret[0];
|
|
340
|
+
var len5 = ret[1];
|
|
341
|
+
if (ret[3]) {
|
|
342
|
+
ptr5 = 0; len5 = 0;
|
|
343
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
344
|
+
}
|
|
345
|
+
deferred6_0 = ptr5;
|
|
346
|
+
deferred6_1 = len5;
|
|
347
|
+
return getStringFromWasm0(ptr5, len5);
|
|
348
|
+
} finally {
|
|
349
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
307
352
|
/**
|
|
308
353
|
* Removes a module from the loaded graph.
|
|
309
354
|
* @param {string} id
|
|
@@ -516,7 +561,7 @@ function __wbg_get_imports() {
|
|
|
516
561
|
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
517
562
|
},
|
|
518
563
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
519
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
564
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1588, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
520
565
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd2d6d321acd2ef74);
|
|
521
566
|
return ret;
|
|
522
567
|
},
|
|
@@ -634,6 +679,13 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
634
679
|
return real;
|
|
635
680
|
}
|
|
636
681
|
|
|
682
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
683
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
684
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
685
|
+
WASM_VECTOR_LEN = arg.length;
|
|
686
|
+
return ptr;
|
|
687
|
+
}
|
|
688
|
+
|
|
637
689
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
638
690
|
if (realloc === undefined) {
|
|
639
691
|
const buf = cachedTextEncoder.encode(arg);
|
|
Binary file
|
|
@@ -16,6 +16,7 @@ export const fugueengine_listModules: (a: number) => [number, number, number, nu
|
|
|
16
16
|
export const fugueengine_loadInvention: (a: number, b: number, c: number) => [number, number];
|
|
17
17
|
export const fugueengine_new: (a: number) => number;
|
|
18
18
|
export const fugueengine_previewNotes: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
19
|
+
export const fugueengine_provideSample: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
19
20
|
export const fugueengine_removeModule: (a: number, b: number, c: number) => [number, number];
|
|
20
21
|
export const fugueengine_renderInterleaved: (a: number, b: number) => [number, number, number, number];
|
|
21
22
|
export const fugueengine_renderInterleavedInto: (a: number, b: any) => [number, number, number];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { FuguePlayer } from "./FuguePlayer.js";
|
|
2
2
|
export { SUPPORTED_MODULES_SCHEMA, unsupportedModuleTypes, } from "./supported-modules.js";
|
|
3
3
|
export type { SupportedModule, SupportedModules } from "./supported-modules.js";
|
|
4
|
-
export type { ControlValue, FuguePlayerInstance, FuguePlayerOptions, FuguePlayerRenderer, FuguePlayerState, NotePreview, NotePreviewRequest, PreviewedNote, RuntimeConnection, RuntimeControlGroup, RuntimeModule, RuntimeStatus, } from "./types.js";
|
|
4
|
+
export type { ControlValue, FuguePlayerInstance, FuguePlayerOptions, FuguePlayerRenderer, FuguePlayerState, NotePreview, NotePreviewRequest, PackageSample, PreviewedNote, RuntimeConnection, RuntimeControlGroup, RuntimeModule, RuntimeStatus, } from "./types.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GACd,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GACd,MAAM,YAAY,CAAC"}
|
package/dist/note-preview.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InitOutput } from "./generated/fugue.js";
|
|
2
|
-
import type { NotePreview, NotePreviewRequest } from "./types.js";
|
|
2
|
+
import type { NotePreview, NotePreviewRequest, PackageSample } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* The engine a player lists notes on: its own instance on the page's main
|
|
5
5
|
* thread, made on the first call. The engine that plays is never asked, so a
|
|
@@ -12,6 +12,8 @@ export declare class NotePreviewer {
|
|
|
12
12
|
private readonly sampleRate;
|
|
13
13
|
private engine?;
|
|
14
14
|
private disposed;
|
|
15
|
+
/** Samples the player was given, not yet handed to this engine. */
|
|
16
|
+
private samples;
|
|
15
17
|
/**
|
|
16
18
|
* `load` makes the wasm module ready on this thread (the bytes the player
|
|
17
19
|
* already uses); `sampleRate` is the player's, so the engine's frame limit
|
|
@@ -19,6 +21,8 @@ export declare class NotePreviewer {
|
|
|
19
21
|
*/
|
|
20
22
|
constructor(load: () => Promise<InitOutput>, sampleRate: number);
|
|
21
23
|
preview(json: string, request: NotePreviewRequest): Promise<NotePreview>;
|
|
24
|
+
/** Gives `sample` to this engine before its next preview. */
|
|
25
|
+
provide(sample: PackageSample): void;
|
|
22
26
|
/**
|
|
23
27
|
* Frees the engine, without waiting for one still loading (it frees
|
|
24
28
|
* itself). A preview already running still settles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note-preview.d.ts","sourceRoot":"","sources":["../src/note-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"note-preview.d.ts","sourceRoot":"","sources":["../src/note-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB;;;;;;GAMG;AACH,qBAAa,aAAa;IAYtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAZ7B,OAAO,CAAC,MAAM,CAAC,CAAuB;IACtC,OAAO,CAAC,QAAQ,CAAS;IACzB,mEAAmE;IACnE,OAAO,CAAC,OAAO,CAAuB;IAEtC;;;;OAIG;gBAEgB,IAAI,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,EAC/B,UAAU,EAAE,MAAM;IAG/B,OAAO,CACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,WAAW,CAAC;IAiCvB,6DAA6D;IAC7D,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAIpC;;;OAGG;IACH,OAAO,IAAI,IAAI;IASf,OAAO,CAAC,KAAK;CAyBd"}
|
package/dist/note-preview.js
CHANGED
|
@@ -12,6 +12,8 @@ export class NotePreviewer {
|
|
|
12
12
|
sampleRate;
|
|
13
13
|
engine;
|
|
14
14
|
disposed = false;
|
|
15
|
+
/** Samples the player was given, not yet handed to this engine. */
|
|
16
|
+
samples = [];
|
|
15
17
|
/**
|
|
16
18
|
* `load` makes the wasm module ready on this thread (the bytes the player
|
|
17
19
|
* already uses); `sampleRate` is the player's, so the engine's frame limit
|
|
@@ -23,6 +25,18 @@ export class NotePreviewer {
|
|
|
23
25
|
}
|
|
24
26
|
async preview(json, request) {
|
|
25
27
|
const engine = await this.ready();
|
|
28
|
+
// Providing the same bytes again changes nothing, so a sample a
|
|
29
|
+
// main-thread player already gave this WebAssembly instance is fine.
|
|
30
|
+
// One at a time: a sample that fails is dropped and the rest stay queued.
|
|
31
|
+
while (this.samples.length > 0) {
|
|
32
|
+
const sample = this.samples.shift();
|
|
33
|
+
try {
|
|
34
|
+
engine.provideSample(sample.package, sample.version, sample.path, sample.bytes);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
throw error instanceof Error ? error : new Error(String(error));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
26
40
|
// Fields left null or undefined are left out: the engine refuses a null
|
|
27
41
|
// cursor, which is what the last page's answer carries.
|
|
28
42
|
const fields = JSON.stringify(request, (_key, value) => value === null ? undefined : value);
|
|
@@ -36,6 +50,10 @@ export class NotePreviewer {
|
|
|
36
50
|
}
|
|
37
51
|
return parseJson("previewNotes", answer);
|
|
38
52
|
}
|
|
53
|
+
/** Gives `sample` to this engine before its next preview. */
|
|
54
|
+
provide(sample) {
|
|
55
|
+
this.samples.push(sample);
|
|
56
|
+
}
|
|
39
57
|
/**
|
|
40
58
|
* Frees the engine, without waiting for one still loading (it frees
|
|
41
59
|
* itself). A preview already running still settles.
|
package/dist/note-preview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note-preview.js","sourceRoot":"","sources":["../src/note-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"note-preview.js","sourceRoot":"","sources":["../src/note-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAOhD;;;;;;GAMG;AACH,MAAM,OAAO,aAAa;IAYL;IACA;IAZX,MAAM,CAAwB;IAC9B,QAAQ,GAAG,KAAK,CAAC;IACzB,mEAAmE;IAC3D,OAAO,GAAoB,EAAE,CAAC;IAEtC;;;;OAIG;IACH,YACmB,IAA+B,EAC/B,UAAkB;QADlB,SAAI,GAAJ,IAAI,CAA2B;QAC/B,eAAU,GAAV,UAAU,CAAQ;IAClC,CAAC;IAEJ,KAAK,CAAC,OAAO,CACX,IAAY,EACZ,OAA2B;QAE3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QAClC,gEAAgE;QAChE,qEAAq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drum kit — the reference `sample-pack` for the
|
|
4
|
+
`samples.json` entry schema (see `src/pkg/SAMPLE_PACK.md` in the `fugue`
|
|
5
|
+
repository).
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
Six one-shots (`kick`, `snare`, `clap`, `hat-closed`, `hat-open`,
|
|
10
|
+
`cowbell`) and a one-bar 120 BPM loop assembled from them. The loop
|
|
11
|
+
declares eighth-note slice points (`beat-1` … `and-4`) for slicing
|
|
12
|
+
modules.
|
|
13
|
+
|
|
14
|
+
All audio is 48 kHz, 16-bit mono WAV, peak-normalized to −1 dBFS with
|
|
15
|
+
faded tails.
|
|
16
|
+
|
|
17
|
+
## Provenance and licensing
|
|
18
|
+
|
|
19
|
+
Every sample is synthesized from scratch using classic analog drum-machine
|
|
20
|
+
recipes (sine-sweep kick, tone-plus-noise snare, square-bank metals,
|
|
21
|
+
noise-burst clap). No third-party recordings are included. Released under
|
|
22
|
+
CC0-1.0, per the manifest.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "fugue.demo.808-kit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"kind": "sample-pack",
|
|
5
|
+
"license": "CC0-1.0",
|
|
6
|
+
"authors": [{ "name": "Grant Damron", "url": "https://github.com/gdamron" }],
|
|
7
|
+
"description": "A synthesized 808-style drum kit: six one-shots and a sliced one-bar loop.",
|
|
8
|
+
"homepage": "https://github.com/gdamron/fugue-packs",
|
|
9
|
+
"targets": ["external-agent", "in-graph-agent"],
|
|
10
|
+
"requires": { "capabilities": ["fs:read:samples/"] },
|
|
11
|
+
"entry": { "samples": "samples.json" }
|
|
12
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"license": "CC0-1.0",
|
|
3
|
+
"attribution": [
|
|
4
|
+
{ "name": "Grant Damron", "url": "https://github.com/gdamron" }
|
|
5
|
+
],
|
|
6
|
+
"sample_rate": [48000],
|
|
7
|
+
"tags": {
|
|
8
|
+
"genre": "electronic",
|
|
9
|
+
"instrument": "drum kit",
|
|
10
|
+
"character": "808-style synthesized"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "samples/kick.wav",
|
|
15
|
+
"tags": { "instrument": "kick drum" }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "samples/snare.wav",
|
|
19
|
+
"tags": { "instrument": "snare drum" }
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "samples/clap.wav",
|
|
23
|
+
"tags": { "instrument": "hand clap" }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "samples/hat-closed.wav",
|
|
27
|
+
"tags": { "instrument": "closed hi-hat" }
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "samples/hat-open.wav",
|
|
31
|
+
"tags": { "instrument": "open hi-hat" }
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "samples/cowbell.wav",
|
|
35
|
+
"tags": { "instrument": "cowbell" }
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "samples/loop.wav",
|
|
39
|
+
"tags": { "instrument": "drum loop", "bpm": "120", "meter": "4/4" },
|
|
40
|
+
"slices": [
|
|
41
|
+
{ "start_frames": 0, "end_frames": 12000, "name": "beat-1" },
|
|
42
|
+
{ "start_frames": 12000, "end_frames": 24000, "name": "and-1" },
|
|
43
|
+
{ "start_frames": 24000, "end_frames": 36000, "name": "beat-2" },
|
|
44
|
+
{ "start_frames": 36000, "end_frames": 48000, "name": "and-2" },
|
|
45
|
+
{ "start_frames": 48000, "end_frames": 60000, "name": "beat-3" },
|
|
46
|
+
{ "start_frames": 60000, "end_frames": 72000, "name": "and-3" },
|
|
47
|
+
{ "start_frames": 72000, "end_frames": 84000, "name": "beat-4" },
|
|
48
|
+
{ "start_frames": 84000, "end_frames": 96000, "name": "and-4" }
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "fyug.engine-samples/1",
|
|
3
|
+
"packages": [
|
|
4
|
+
{
|
|
5
|
+
"id": "fugue.demo.808-kit",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"license": "CC0-1.0",
|
|
8
|
+
"samples": [
|
|
9
|
+
{
|
|
10
|
+
"path": "samples/clap.wav",
|
|
11
|
+
"bytes": 33644,
|
|
12
|
+
"sha256": "692c6688343e578580bdea14045baa7f9b87107eefe0f0cd1fccef3abff2fc89"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "samples/cowbell.wav",
|
|
16
|
+
"bytes": 43244,
|
|
17
|
+
"sha256": "f13dedbc195ecd7ce519d4d01af24d133896e0ce0a3547e299937909efd1bc3d"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "samples/hat-closed.wav",
|
|
21
|
+
"bytes": 11564,
|
|
22
|
+
"sha256": "5ce4a54c0e83de697d909f0d0a9ce273a7d9f53db6ca1fc98c24a2bab3aaf621"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "samples/hat-open.wav",
|
|
26
|
+
"bytes": 57644,
|
|
27
|
+
"sha256": "c5bfa8fa191510c4efc878f8bf393efd037079700e9c0fa9a04dd3a1c0e6a248"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "samples/kick.wav",
|
|
31
|
+
"bytes": 67244,
|
|
32
|
+
"sha256": "fc84f14cf97a9a387d15ef314cc17a9aee9cf6103f63d32448e155edfc6c4803"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "samples/loop.wav",
|
|
36
|
+
"bytes": 192044,
|
|
37
|
+
"sha256": "3ef8754653573fd0f37df62990f87819ed51700f6f6426d79fe7d0791b8e9fbc"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "samples/snare.wav",
|
|
41
|
+
"bytes": 28844,
|
|
42
|
+
"sha256": "b835af6c3209c8155afab74896650045e8c2ca8fcc79cad154361c6a303499f0"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -30,6 +30,17 @@ export type FuguePlayerInstance = {
|
|
|
30
30
|
listControls(moduleId?: string): Promise<RuntimeControlGroup[]>;
|
|
31
31
|
getControl(moduleId: string, key: string): Promise<unknown>;
|
|
32
32
|
setControl(moduleId: string, key: string, value: ControlValue): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Hands the engine one file of a package (a WAV sample), so a piece that
|
|
35
|
+
* names it by package ref (`id@requirement:file`) can play it. Provide a
|
|
36
|
+
* piece's samples before `loadInvention`: a ref with no provided file
|
|
37
|
+
* meeting it fails the load, naming the ref. The bytes decode at once, and
|
|
38
|
+
* bytes that do not decode reject naming the sample. `previewNotes` gets
|
|
39
|
+
* every sample provided here too. Decoding runs where the engine renders
|
|
40
|
+
* (an AudioWorklet's render thread), so provide samples before the piece
|
|
41
|
+
* starts, not while one plays, and only the files the piece plays.
|
|
42
|
+
*/
|
|
43
|
+
provideSample(sample: PackageSample): Promise<void>;
|
|
33
44
|
/**
|
|
34
45
|
* Lists the notes `json` (a complete invention document, as
|
|
35
46
|
* `loadInvention` takes it) plays over a range of bars, without playing it.
|
|
@@ -40,6 +51,17 @@ export type FuguePlayerInstance = {
|
|
|
40
51
|
previewNotes(json: string, request: NotePreviewRequest): Promise<NotePreview>;
|
|
41
52
|
dispose(): Promise<void>;
|
|
42
53
|
};
|
|
54
|
+
/** One file of a package, as `provideSample` takes it. */
|
|
55
|
+
export type PackageSample = {
|
|
56
|
+
/** Package id (`fugue.demo.808-kit`). */
|
|
57
|
+
package: string;
|
|
58
|
+
/** The package's version (`0.1.0`), not a requirement. */
|
|
59
|
+
version: string;
|
|
60
|
+
/** The file's `/`-separated path in the package (`samples/kick.wav`). */
|
|
61
|
+
path: string;
|
|
62
|
+
/** The file's bytes. */
|
|
63
|
+
bytes: Uint8Array;
|
|
64
|
+
};
|
|
43
65
|
/** What `previewNotes` lists. Fields as core's `docs/preview-notes.md`. */
|
|
44
66
|
export type NotePreviewRequest = {
|
|
45
67
|
/** How many bars the range spans, 1 to 64. */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,aAAa,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,uCAAuC;IACvC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;I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WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilusiv/fyug-js",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.5",
|
|
4
4
|
"description": "Browser JavaScript player for the Fyug runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"./fugue-audio-worklet.js": "./dist/fugue-audio-worklet.js",
|
|
26
26
|
"./fugue-worklet-utf8.js": "./dist/fugue-worklet-utf8.js",
|
|
27
|
-
"./fugue_bg.wasm": "./dist/generated/fugue_bg.wasm"
|
|
27
|
+
"./fugue_bg.wasm": "./dist/generated/fugue_bg.wasm",
|
|
28
|
+
"./samples/*": "./dist/samples/*"
|
|
28
29
|
},
|
|
29
30
|
"types": "./dist/index.d.ts",
|
|
30
31
|
"scripts": {
|
|
@@ -33,9 +34,10 @@
|
|
|
33
34
|
"build:embedded": "node scripts/generate-embedded-assets.mjs",
|
|
34
35
|
"build:ts": "tsc -p tsconfig.json",
|
|
35
36
|
"copy:assets": "node scripts/copy-assets.mjs",
|
|
36
|
-
"build": "pnpm run clean && pnpm run build:wasm && pnpm run build:embedded && pnpm run build:ts && pnpm run copy:assets",
|
|
37
|
+
"build": "pnpm run clean && pnpm run build:wasm && pnpm run build:embedded && pnpm run build:ts && pnpm run copy:assets && pnpm run copy:samples",
|
|
37
38
|
"typecheck": "pnpm run build:wasm && pnpm run build:embedded && tsc --noEmit -p tsconfig.json && tsc -p preview/tsconfig.json",
|
|
38
|
-
"test": "pnpm run build:wasm && pnpm run build:embedded && vitest run"
|
|
39
|
+
"test": "pnpm run build:wasm && pnpm run build:embedded && vitest run",
|
|
40
|
+
"copy:samples": "node scripts/copy-samples.mjs"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@types/node": "^20.17.0",
|