@toneflix/studio-wams 0.5.0 → 0.6.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/README.md +2 -5
- package/THIRD_PARTY_NOTICES.md +0 -15
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +2 -125
- package/dist/community.d.ts +47 -0
- package/dist/community.js +180 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +38 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -2
- package/plugins/plugins.json +0 -163
- package/plugins/toneflix/base.js +15 -3
- package/licenses/MPL-2.0.txt +0 -373
- package/plugins/sequencer-party/delay/descriptor.json +0 -16
- package/plugins/sequencer-party/delay/index.js +0 -247
- package/plugins/sequencer-party/delay/screenshot.png +0 -0
- package/plugins/sequencer-party/distortion/descriptor.json +0 -16
- package/plugins/sequencer-party/distortion/index.js +0 -257
- package/plugins/sequencer-party/distortion/screenshot.png +0 -0
- package/plugins/sequencer-party/simple-eq/descriptor.json +0 -16
- package/plugins/sequencer-party/simple-eq/index.js +0 -237
- package/plugins/sequencer-party/simple-eq/screenshot.png +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Reviewed Web Audio Module (WAM 2) effects for [Toneflix Studio](https://toneflix.github.io/studio/), served from jsDelivr.
|
|
4
4
|
|
|
5
|
-
A plugin runs as code in your page, so this package only holds plugins that were read through, whose licences allow passing them on, and that are pinned: the module URLs point at this package's exact version on jsDelivr, so the code can't change under you.
|
|
5
|
+
A plugin runs as code in your page, so this package only holds plugins that were read through, whose licences allow passing them on, that work fully (the editor with a mouse and touch, every parameter, saved settings, live playback and export), and that are pinned: the module URLs point at this package's exact version on jsDelivr, so the code can't change under you.
|
|
6
6
|
|
|
7
7
|
| Plugin | Vendor | Licence |
|
|
8
8
|
| --- | --- | --- |
|
|
@@ -17,9 +17,6 @@ A plugin runs as code in your page, so this package only holds plugins that were
|
|
|
17
17
|
| Phaser | Toneflix | MIT |
|
|
18
18
|
| KB Verb | Toneflix, a port of KBVerb by Corey Kereliuk | MIT |
|
|
19
19
|
| Stone Phaser | Toneflix, a port of Stone Phaser by Jean Pierre Cimalando | MIT (original CC0-1.0) |
|
|
20
|
-
| Simple Delay | Sequencer Party (Tom Burns) | MIT |
|
|
21
|
-
| Simple Distortion | Sequencer Party (Tom Burns) | MIT |
|
|
22
|
-
| Simple EQ | Sequencer Party (Tom Burns) | MIT |
|
|
23
20
|
|
|
24
21
|
```sh
|
|
25
22
|
pnpm add @toneflix/studio-wams
|
|
@@ -35,6 +32,6 @@ new StudioMixer('#editor', { timeline, engine, plugins, catalog: curatedWams() }
|
|
|
35
32
|
|
|
36
33
|
Pass `base` to serve the `plugins` folder yourself, for example from your own storage under a strict Content Security Policy, and `allow` to offer only some of them. `plugins/plugins.json` lists them in the WAM community list's shape, for `wamCommunitySource({ url, base })` (with `base` set to the `plugins` folder) or other hosts.
|
|
37
34
|
|
|
38
|
-
See `THIRD_PARTY_NOTICES.md` for
|
|
35
|
+
See `THIRD_PARTY_NOTICES.md` for the code two of them were ported from. It is one part of Toneflix Studio. Install [`@toneflix/studio`](https://www.npmjs.com/package/@toneflix/studio) to get every part from one import.
|
|
39
36
|
|
|
40
37
|
MIT License.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
The `plugins/sequencer-party` folder holds unchanged copies of three plugins from
|
|
4
|
-
[burns-audio-wam](https://github.com/boourns/burns-audio-wam) 0.2.54 by Tom Burns
|
|
5
|
-
(`dist/plugins/delay`, `distortion` and `simpleEQ`), published on npm as `burns-audio-wam`.
|
|
6
|
-
Each `index.js` is a bundle that also contains the code below.
|
|
7
|
-
|
|
8
|
-
| Code | Licence | Source |
|
|
9
|
-
| --- | --- | --- |
|
|
10
|
-
| burns-audio-wam (the plugins) | MIT, Copyright (c) Tom Burns | https://github.com/boourns/burns-audio-wam |
|
|
11
|
-
| @webaudiomodules/sdk and @webaudiomodules/sdk-parammgr | MIT, Copyright (c) WebAudioModules Working Group | https://github.com/webaudiomodules/sdk |
|
|
12
|
-
| `RingBuffer.js` in @webaudiomodules/sdk | Mozilla Public License 2.0, see `licenses/MPL-2.0.txt` | https://github.com/webaudiomodules/sdk/blob/main/src/RingBuffer.js |
|
|
13
|
-
| preact | MIT, Copyright (c) 2015-present Jason Miller | https://github.com/preactjs/preact |
|
|
14
|
-
| css-loader runtime | MIT, Copyright JS Foundation and other contributors | https://github.com/webpack-contrib/css-loader |
|
|
15
|
-
|
|
16
|
-
The MPL-2.0 code is distributed unchanged; its source form is available at the link above.
|
|
17
|
-
|
|
18
3
|
Two plugins in `plugins/toneflix` are JavaScript ports of Faust code:
|
|
19
4
|
|
|
20
5
|
| Plugin | Ported from | Licence | Source |
|
package/dist/catalog.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface CuratedWam {
|
|
|
16
16
|
homepage: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* The reviewed plugins, all effects. Each one is
|
|
20
|
-
*
|
|
19
|
+
* The reviewed plugins, all effects. Each one is tested to work fully: its editor
|
|
20
|
+
* with a mouse and touch, every parameter, saved settings, live playback and export.
|
|
21
21
|
*/
|
|
22
22
|
export declare const CURATED_WAMS: readonly CuratedWam[];
|
package/dist/catalog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The reviewed plugins, all effects. Each one is
|
|
3
|
-
*
|
|
2
|
+
* The reviewed plugins, all effects. Each one is tested to work fully: its editor
|
|
3
|
+
* with a mouse and touch, every parameter, saved settings, live playback and export.
|
|
4
4
|
*/
|
|
5
5
|
export const CURATED_WAMS = [
|
|
6
6
|
{
|
|
@@ -29,90 +29,6 @@ export const CURATED_WAMS = [
|
|
|
29
29
|
license: 'MIT',
|
|
30
30
|
homepage: 'https://github.com/toneflix/studio',
|
|
31
31
|
},
|
|
32
|
-
{
|
|
33
|
-
identifier: 'net.toneflix.studio.reverb',
|
|
34
|
-
name: 'Reverb',
|
|
35
|
-
vendor: 'Toneflix',
|
|
36
|
-
description: 'Room-to-hall reverb with decay, pre-delay and tone',
|
|
37
|
-
keywords: ['effect', 'reverb', 'space'],
|
|
38
|
-
path: 'toneflix/reverb.js',
|
|
39
|
-
version: '1.0.0',
|
|
40
|
-
isInstrument: false,
|
|
41
|
-
license: 'MIT',
|
|
42
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
identifier: 'net.toneflix.studio.compressor',
|
|
46
|
-
name: 'Compressor',
|
|
47
|
-
vendor: 'Toneflix',
|
|
48
|
-
description: 'Compressor with threshold, ratio, attack, release, knee and make-up gain',
|
|
49
|
-
keywords: ['effect', 'dynamics', 'compressor'],
|
|
50
|
-
path: 'toneflix/compressor.js',
|
|
51
|
-
version: '1.0.0',
|
|
52
|
-
isInstrument: false,
|
|
53
|
-
license: 'MIT',
|
|
54
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
identifier: 'net.toneflix.studio.limiter',
|
|
58
|
-
name: 'Limiter',
|
|
59
|
-
vendor: 'Toneflix',
|
|
60
|
-
description: 'Peak limiter with gain and a hard ceiling',
|
|
61
|
-
keywords: ['effect', 'dynamics', 'limiter', 'master'],
|
|
62
|
-
path: 'toneflix/limiter.js',
|
|
63
|
-
version: '1.0.0',
|
|
64
|
-
isInstrument: false,
|
|
65
|
-
license: 'MIT',
|
|
66
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
identifier: 'net.toneflix.studio.gate',
|
|
70
|
-
name: 'Gate',
|
|
71
|
-
vendor: 'Toneflix',
|
|
72
|
-
description: 'Noise gate with threshold, hold and range',
|
|
73
|
-
keywords: ['effect', 'dynamics', 'gate', 'noise'],
|
|
74
|
-
path: 'toneflix/gate.js',
|
|
75
|
-
version: '1.0.0',
|
|
76
|
-
isInstrument: false,
|
|
77
|
-
license: 'MIT',
|
|
78
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
identifier: 'net.toneflix.studio.eq',
|
|
82
|
-
name: 'EQ',
|
|
83
|
-
vendor: 'Toneflix',
|
|
84
|
-
description: 'Three-band equalizer with a sweepable mid',
|
|
85
|
-
keywords: ['effect', 'eq', 'equalizer', 'filter'],
|
|
86
|
-
path: 'toneflix/eq.js',
|
|
87
|
-
version: '1.0.0',
|
|
88
|
-
isInstrument: false,
|
|
89
|
-
license: 'MIT',
|
|
90
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
identifier: 'net.toneflix.studio.chorus',
|
|
94
|
-
name: 'Chorus',
|
|
95
|
-
vendor: 'Toneflix',
|
|
96
|
-
description: 'Stereo chorus with rate, depth and delay',
|
|
97
|
-
keywords: ['effect', 'modulation', 'chorus'],
|
|
98
|
-
path: 'toneflix/chorus.js',
|
|
99
|
-
version: '1.0.0',
|
|
100
|
-
isInstrument: false,
|
|
101
|
-
license: 'MIT',
|
|
102
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
identifier: 'net.toneflix.studio.phaser',
|
|
106
|
-
name: 'Phaser',
|
|
107
|
-
vendor: 'Toneflix',
|
|
108
|
-
description: 'Six-stage phaser with feedback',
|
|
109
|
-
keywords: ['effect', 'modulation', 'phaser'],
|
|
110
|
-
path: 'toneflix/phaser.js',
|
|
111
|
-
version: '1.0.0',
|
|
112
|
-
isInstrument: false,
|
|
113
|
-
license: 'MIT',
|
|
114
|
-
homepage: 'https://github.com/toneflix/studio',
|
|
115
|
-
},
|
|
116
32
|
{
|
|
117
33
|
identifier: 'net.toneflix.studio.reverb',
|
|
118
34
|
name: 'Reverb',
|
|
@@ -230,43 +146,4 @@ export const CURATED_WAMS = [
|
|
|
230
146
|
license: 'MIT',
|
|
231
147
|
homepage: 'https://github.com/toneflix/studio',
|
|
232
148
|
},
|
|
233
|
-
{
|
|
234
|
-
identifier: 'com.sequencerParty.simpleDelay',
|
|
235
|
-
name: 'Simple Delay',
|
|
236
|
-
vendor: 'Sequencer Party',
|
|
237
|
-
description: 'Simple stereo filtered delay',
|
|
238
|
-
keywords: ['effect', 'delay'],
|
|
239
|
-
path: 'sequencer-party/delay/index.js',
|
|
240
|
-
thumbnail: 'sequencer-party/delay/screenshot.png',
|
|
241
|
-
version: '1.0.0',
|
|
242
|
-
isInstrument: false,
|
|
243
|
-
license: 'MIT',
|
|
244
|
-
homepage: 'https://github.com/boourns/burns-audio-wam',
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
identifier: 'com.sequencerParty.simpleDistortion',
|
|
248
|
-
name: 'Simple Distortion',
|
|
249
|
-
vendor: 'Sequencer Party',
|
|
250
|
-
description: 'Simple waveshaper-based distortion with variable curve and gain',
|
|
251
|
-
keywords: ['effect', 'distortion'],
|
|
252
|
-
path: 'sequencer-party/distortion/index.js',
|
|
253
|
-
thumbnail: 'sequencer-party/distortion/screenshot.png',
|
|
254
|
-
version: '1.0.0',
|
|
255
|
-
isInstrument: false,
|
|
256
|
-
license: 'MIT',
|
|
257
|
-
homepage: 'https://github.com/boourns/burns-audio-wam',
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
identifier: 'com.sequencerParty.simpleEQ',
|
|
261
|
-
name: 'Simple EQ',
|
|
262
|
-
vendor: 'Sequencer Party',
|
|
263
|
-
description: 'Simple three-band equalizer',
|
|
264
|
-
keywords: ['effect', 'eq'],
|
|
265
|
-
path: 'sequencer-party/simple-eq/index.js',
|
|
266
|
-
thumbnail: 'sequencer-party/simple-eq/screenshot.png',
|
|
267
|
-
version: '1.0.0',
|
|
268
|
-
isInstrument: false,
|
|
269
|
-
license: 'MIT',
|
|
270
|
-
homepage: 'https://github.com/boourns/burns-audio-wam',
|
|
271
|
-
},
|
|
272
149
|
];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the vetted plugins load from, by package, pinned to the versions they were
|
|
3
|
+
* tested at. The Sequencer Party plugins come from their own package on jsDelivr. The
|
|
4
|
+
* Wimmics ones are only in `wam-community`, which is over jsDelivr's 150 MB package
|
|
5
|
+
* limit, so they come from unpkg.
|
|
6
|
+
*/
|
|
7
|
+
export declare const COMMUNITY_WAM_PACKAGES: {
|
|
8
|
+
readonly 'burns-audio-wam': 'https://cdn.jsdelivr.net/npm/burns-audio-wam@0.2.54/dist/plugins/';
|
|
9
|
+
readonly 'wam-community': 'https://unpkg.com/wam-community@0.4.9/dist/plugins/';
|
|
10
|
+
};
|
|
11
|
+
export type CommunityWamPackage = keyof typeof COMMUNITY_WAM_PACKAGES;
|
|
12
|
+
/** A plugin from the Web Audio Modules community that passed the same tests as the curated ones. */
|
|
13
|
+
export interface CommunityWam {
|
|
14
|
+
identifier: string;
|
|
15
|
+
name: string;
|
|
16
|
+
vendor: string;
|
|
17
|
+
description: string;
|
|
18
|
+
keywords: string[];
|
|
19
|
+
/** The package it loads from */
|
|
20
|
+
package: CommunityWamPackage;
|
|
21
|
+
/** Its module, relative to the package's `plugins` folder */
|
|
22
|
+
path: string;
|
|
23
|
+
/** A picture of its editor, relative to the `plugins` folder */
|
|
24
|
+
thumbnail: string;
|
|
25
|
+
isInstrument: boolean;
|
|
26
|
+
/** Its editor only answers the mouse; hosts pass touches on as mouse input */
|
|
27
|
+
mouseOnly: boolean;
|
|
28
|
+
license: string;
|
|
29
|
+
homepage: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An import map for the page, needed by the Wimmics plugins: `wam-community` 0.4.9
|
|
33
|
+
* imports two files from a folder they are not in, and the map points those imports
|
|
34
|
+
* at where the files are. Put it in a `<script type="importmap">` before any module
|
|
35
|
+
* script, since browsers only read an import map before modules load.
|
|
36
|
+
*/
|
|
37
|
+
export declare const communityWamsImportMap: (base?: string) => {
|
|
38
|
+
imports: {
|
|
39
|
+
[x: string]: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Community plugins that loaded, sounded, kept their settings, exported as heard and
|
|
44
|
+
* could be fully used with a mouse and by touch, at the versions in `COMMUNITY_WAM_PACKAGES`.
|
|
45
|
+
* They are loaded from the community's own files, not copied into this package.
|
|
46
|
+
*/
|
|
47
|
+
export declare const COMMUNITY_WAMS: readonly CommunityWam[];
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the vetted plugins load from, by package, pinned to the versions they were
|
|
3
|
+
* tested at. The Sequencer Party plugins come from their own package on jsDelivr. The
|
|
4
|
+
* Wimmics ones are only in `wam-community`, which is over jsDelivr's 150 MB package
|
|
5
|
+
* limit, so they come from unpkg.
|
|
6
|
+
*/
|
|
7
|
+
export const COMMUNITY_WAM_PACKAGES = {
|
|
8
|
+
'burns-audio-wam': 'https://cdn.jsdelivr.net/npm/burns-audio-wam@0.2.54/dist/plugins/',
|
|
9
|
+
'wam-community': 'https://unpkg.com/wam-community@0.4.9/dist/plugins/',
|
|
10
|
+
};
|
|
11
|
+
const burns = (plugin) => ({
|
|
12
|
+
package: 'burns-audio-wam',
|
|
13
|
+
vendor: 'Sequencer Party',
|
|
14
|
+
license: 'MIT',
|
|
15
|
+
homepage: 'https://github.com/boourns/burns-audio-wam',
|
|
16
|
+
mouseOnly: true,
|
|
17
|
+
thumbnail: plugin.path.replace(/index\.js$/, 'screenshot.png'),
|
|
18
|
+
...plugin,
|
|
19
|
+
});
|
|
20
|
+
const wimmics = (plugin) => ({
|
|
21
|
+
package: 'wam-community',
|
|
22
|
+
vendor: 'Wimmics',
|
|
23
|
+
license: 'Not stated',
|
|
24
|
+
homepage: 'https://github.com/webaudiomodules/wam-community',
|
|
25
|
+
mouseOnly: false,
|
|
26
|
+
isInstrument: false,
|
|
27
|
+
...plugin,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* An import map for the page, needed by the Wimmics plugins: `wam-community` 0.4.9
|
|
31
|
+
* imports two files from a folder they are not in, and the map points those imports
|
|
32
|
+
* at where the files are. Put it in a `<script type="importmap">` before any module
|
|
33
|
+
* script, since browsers only read an import map before modules load.
|
|
34
|
+
*/
|
|
35
|
+
export const communityWamsImportMap = (base = COMMUNITY_WAM_PACKAGES['wam-community']) => ({
|
|
36
|
+
imports: { [`${base}wimmics/utils/sdk-parammgr/src/sdk/`]: `${base}wimmics/utils/sdk/` },
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Community plugins that loaded, sounded, kept their settings, exported as heard and
|
|
40
|
+
* could be fully used with a mouse and by touch, at the versions in `COMMUNITY_WAM_PACKAGES`.
|
|
41
|
+
* They are loaded from the community's own files, not copied into this package.
|
|
42
|
+
*/
|
|
43
|
+
export const COMMUNITY_WAMS = [
|
|
44
|
+
burns({
|
|
45
|
+
identifier: 'com.sequencerParty.synth101',
|
|
46
|
+
name: 'Synth-101',
|
|
47
|
+
description: 'Monophonic analog-style synth with sub oscillator, filter and LFO',
|
|
48
|
+
keywords: ['instrument', 'synth', 'mono', 'bass'],
|
|
49
|
+
path: 'synth101/index.js',
|
|
50
|
+
isInstrument: true,
|
|
51
|
+
}),
|
|
52
|
+
burns({
|
|
53
|
+
identifier: 'com.sequencerParty.simpleDistortion',
|
|
54
|
+
name: 'Simple Distortion',
|
|
55
|
+
description: 'Overdrive with flavours and offset',
|
|
56
|
+
keywords: ['effect', 'distortion', 'overdrive'],
|
|
57
|
+
path: 'distortion/index.js',
|
|
58
|
+
isInstrument: false,
|
|
59
|
+
}),
|
|
60
|
+
burns({
|
|
61
|
+
identifier: 'com.sequencerParty.microverb',
|
|
62
|
+
name: 'Microverb',
|
|
63
|
+
description: 'Small reverb with a wet control',
|
|
64
|
+
keywords: ['effect', 'reverb'],
|
|
65
|
+
path: 'reverb/index.js',
|
|
66
|
+
isInstrument: false,
|
|
67
|
+
}),
|
|
68
|
+
burns({
|
|
69
|
+
identifier: 'com.sequencerParty.simpleDelay',
|
|
70
|
+
name: 'Simple Delay',
|
|
71
|
+
description: 'Delay with feedback, filters, stereo and ping-pong',
|
|
72
|
+
keywords: ['effect', 'delay', 'echo'],
|
|
73
|
+
path: 'delay/index.js',
|
|
74
|
+
isInstrument: false,
|
|
75
|
+
}),
|
|
76
|
+
burns({
|
|
77
|
+
identifier: 'com.sequencerParty.simpleEQ',
|
|
78
|
+
name: 'Simple EQ',
|
|
79
|
+
description: 'Three-band equalizer',
|
|
80
|
+
keywords: ['effect', 'eq', 'filter'],
|
|
81
|
+
path: 'simpleEQ/index.js',
|
|
82
|
+
isInstrument: false,
|
|
83
|
+
}),
|
|
84
|
+
wimmics({
|
|
85
|
+
identifier: 'com.wimmics.bigmuff',
|
|
86
|
+
name: 'Big Muff',
|
|
87
|
+
description: 'Fuzz modelled on the Big Muff pedal',
|
|
88
|
+
keywords: ['effect', 'distortion', 'fuzz'],
|
|
89
|
+
path: 'wimmics/BigMuff/index.js',
|
|
90
|
+
thumbnail: 'wimmics/BigMuff/screenshot.png',
|
|
91
|
+
}),
|
|
92
|
+
wimmics({
|
|
93
|
+
identifier: 'com.wimmics.blipper',
|
|
94
|
+
name: 'Blipper',
|
|
95
|
+
description: 'Envelope follower that plays a pitched blip with the input',
|
|
96
|
+
keywords: ['effect', 'modulation', 'synth'],
|
|
97
|
+
path: 'wimmics/blipper/index.js',
|
|
98
|
+
thumbnail: 'wimmics/blipper/default.png',
|
|
99
|
+
}),
|
|
100
|
+
wimmics({
|
|
101
|
+
identifier: 'com.wimmics.dualpitchshifter',
|
|
102
|
+
name: 'DualPitchShifter',
|
|
103
|
+
description: 'Two-channel pitch shifter',
|
|
104
|
+
keywords: ['effect', 'pitch'],
|
|
105
|
+
path: 'wimmics/DualPitchShifter/index.js',
|
|
106
|
+
thumbnail: 'wimmics/DualPitchShifter/default.png',
|
|
107
|
+
}),
|
|
108
|
+
wimmics({
|
|
109
|
+
identifier: 'com.wimmics.owldirty',
|
|
110
|
+
name: 'OwlDirty',
|
|
111
|
+
description: 'Ambient stereo reverb with distortion on its tail',
|
|
112
|
+
keywords: ['effect', 'reverb', 'distortion'],
|
|
113
|
+
path: 'wimmics/OwlDirty/index.js',
|
|
114
|
+
thumbnail: 'wimmics/OwlDirty/default.png',
|
|
115
|
+
}),
|
|
116
|
+
wimmics({
|
|
117
|
+
identifier: 'com.wimmics.owlshimmer',
|
|
118
|
+
name: 'OWLShimmer',
|
|
119
|
+
description: 'Ambient stereo reverb with shimmer',
|
|
120
|
+
keywords: ['effect', 'reverb', 'shimmer'],
|
|
121
|
+
path: 'wimmics/OwlShimmer/index.js',
|
|
122
|
+
thumbnail: 'wimmics/OwlShimmer/default.png',
|
|
123
|
+
}),
|
|
124
|
+
wimmics({
|
|
125
|
+
identifier: 'com.wimmics.pingpongdelay',
|
|
126
|
+
name: 'PingPongDelay',
|
|
127
|
+
description: 'Stereo delay bouncing between left and right',
|
|
128
|
+
keywords: ['effect', 'delay', 'stereo'],
|
|
129
|
+
path: 'wimmics/pingpongdelay/dist/index.js',
|
|
130
|
+
thumbnail: 'wimmics/pingpongdelay/dist/screenshot.png',
|
|
131
|
+
}),
|
|
132
|
+
wimmics({
|
|
133
|
+
identifier: 'com.wimmics.quadrafuzz',
|
|
134
|
+
name: 'QuadraFuzz',
|
|
135
|
+
description: 'Four-band fuzz',
|
|
136
|
+
keywords: ['effect', 'distortion', 'fuzz'],
|
|
137
|
+
path: 'wimmics/quadrafuzz/dist/index.js',
|
|
138
|
+
thumbnail: 'wimmics/quadrafuzz/dist/screenshot.png',
|
|
139
|
+
}),
|
|
140
|
+
wimmics({
|
|
141
|
+
identifier: 'com.wimmics.smoothdelay',
|
|
142
|
+
name: 'SmoothDelay',
|
|
143
|
+
description: 'Delay that changes time without clicks or pitch jumps',
|
|
144
|
+
keywords: ['effect', 'delay'],
|
|
145
|
+
path: 'wimmics/SmoothDelay/index.js',
|
|
146
|
+
thumbnail: 'wimmics/SmoothDelay/default.png',
|
|
147
|
+
}),
|
|
148
|
+
wimmics({
|
|
149
|
+
identifier: 'com.wimmics.stereofreqshifter',
|
|
150
|
+
name: 'StereoFreqShifter',
|
|
151
|
+
description: 'Twin frequency shifter for left and right',
|
|
152
|
+
keywords: ['effect', 'pitch', 'stereo'],
|
|
153
|
+
path: 'wimmics/StereoFreqShifter/index.js',
|
|
154
|
+
thumbnail: 'wimmics/StereoFreqShifter/default.png',
|
|
155
|
+
}),
|
|
156
|
+
wimmics({
|
|
157
|
+
identifier: 'com.wimmics.sweetwah',
|
|
158
|
+
name: 'SweetWah',
|
|
159
|
+
description: 'Auto-wah with modulation',
|
|
160
|
+
keywords: ['effect', 'filter', 'wah'],
|
|
161
|
+
path: 'wimmics/sweetWah/index.js',
|
|
162
|
+
thumbnail: 'wimmics/sweetWah/screenshot.png',
|
|
163
|
+
}),
|
|
164
|
+
wimmics({
|
|
165
|
+
identifier: 'com.wimmics.thruzeroflanger',
|
|
166
|
+
name: 'ThruZeroFlanger',
|
|
167
|
+
description: 'Thru-zero flanger modelling a pair of tape delays',
|
|
168
|
+
keywords: ['effect', 'flanger', 'modulation'],
|
|
169
|
+
path: 'wimmics/ThruZeroFlanger/index.js',
|
|
170
|
+
thumbnail: 'wimmics/ThruZeroFlanger/default.png',
|
|
171
|
+
}),
|
|
172
|
+
wimmics({
|
|
173
|
+
identifier: 'com.wimmics.weirdphaser',
|
|
174
|
+
name: 'WeirdPhaser',
|
|
175
|
+
description: 'Stereo phaser built on single-sideband shifting',
|
|
176
|
+
keywords: ['effect', 'phaser', 'modulation'],
|
|
177
|
+
path: 'wimmics/WeirdPhaser/index.js',
|
|
178
|
+
thumbnail: 'wimmics/WeirdPhaser/default.png',
|
|
179
|
+
}),
|
|
180
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type CuratedWam } from './catalog.ts';
|
|
2
|
+
import { type CommunityWam, type CommunityWamPackage } from './community.ts';
|
|
2
3
|
export * from './catalog.ts';
|
|
4
|
+
export * from './community.ts';
|
|
3
5
|
export * from './version.ts';
|
|
4
6
|
export interface CuratedWamsOptions {
|
|
5
7
|
/**
|
|
@@ -43,3 +45,44 @@ export declare const curatedWamSource: (options?: CuratedWamSourceOptions) => {
|
|
|
43
45
|
more: boolean;
|
|
44
46
|
};
|
|
45
47
|
};
|
|
48
|
+
export interface CommunityWamsOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Where each package's `plugins` folder is served, ending in a slash. By default
|
|
51
|
+
* the CDNs in `COMMUNITY_WAM_PACKAGES`, pinned to the versions the plugins were tested at.
|
|
52
|
+
*/
|
|
53
|
+
base?: Partial<Record<CommunityWamPackage, string>>;
|
|
54
|
+
/** Which of the plugins to offer */
|
|
55
|
+
allow?: (plugin: CommunityWam) => boolean;
|
|
56
|
+
}
|
|
57
|
+
/** A vetted community plugin with its module URL. */
|
|
58
|
+
export interface CommunityWamItem extends Omit<CuratedWamItem, 'data'> {
|
|
59
|
+
data: CommunityWam;
|
|
60
|
+
}
|
|
61
|
+
/** The vetted community plugins, effects and instruments, with their module URLs under `base`. */
|
|
62
|
+
export declare const communityWams: (options?: CommunityWamsOptions) => CommunityWamItem[];
|
|
63
|
+
/** A tab of the vetted community effects for `StudioBrowser`. */
|
|
64
|
+
export declare const communityWamSource: (options?: CommunityWamsOptions & {
|
|
65
|
+
id?: string;
|
|
66
|
+
label?: string;
|
|
67
|
+
}) => {
|
|
68
|
+
id: string;
|
|
69
|
+
label: string;
|
|
70
|
+
list: ({ search }: {
|
|
71
|
+
search: string;
|
|
72
|
+
}) => {
|
|
73
|
+
items: CommunityWamItem[];
|
|
74
|
+
more: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** The vetted community instruments, as choices for `StudioInstrumentPanel`'s `instruments`. */
|
|
78
|
+
export declare const communityWamInstruments: (options?: CommunityWamsOptions) => {
|
|
79
|
+
label: string;
|
|
80
|
+
instrument: {
|
|
81
|
+
id: string;
|
|
82
|
+
};
|
|
83
|
+
}[];
|
|
84
|
+
/**
|
|
85
|
+
* True for a vetted community plugin whose editor only answers the mouse. Pass it
|
|
86
|
+
* as `new PluginRack(engine, { mouseOnly })` so touches work on its editor.
|
|
87
|
+
*/
|
|
88
|
+
export declare const isMouseOnlyWam: (url: string, options?: Pick<CommunityWamsOptions, 'base'>) => boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CURATED_WAMS } from './catalog.js';
|
|
2
|
+
import { COMMUNITY_WAM_PACKAGES, COMMUNITY_WAMS } from './community.js';
|
|
2
3
|
import { WAMS_VERSION } from './version.js';
|
|
3
4
|
export * from './catalog.js';
|
|
5
|
+
export * from './community.js';
|
|
4
6
|
export * from './version.js';
|
|
5
7
|
/** The `plugins` folder of a version of this package on jsDelivr. */
|
|
6
8
|
export const wamsBase = (version = WAMS_VERSION) => `https://cdn.jsdelivr.net/npm/@toneflix/studio-wams@${version}/plugins/`;
|
|
@@ -17,15 +19,11 @@ export const curatedWams = (options = {}) => {
|
|
|
17
19
|
data: plugin,
|
|
18
20
|
}));
|
|
19
21
|
};
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
* description and keywords.
|
|
23
|
-
*/
|
|
24
|
-
export const curatedWamSource = (options = {}) => {
|
|
25
|
-
const items = curatedWams(options);
|
|
22
|
+
/** A browser tab over a fixed list, searched by name, detail and keywords. */
|
|
23
|
+
const searchSource = (id, label, items) => {
|
|
26
24
|
return {
|
|
27
|
-
id
|
|
28
|
-
label
|
|
25
|
+
id,
|
|
26
|
+
label,
|
|
29
27
|
list: ({ search }) => {
|
|
30
28
|
const words = search.toLowerCase().split(/\s+/).filter(Boolean);
|
|
31
29
|
const found = items.filter((item) => {
|
|
@@ -36,3 +34,35 @@ export const curatedWamSource = (options = {}) => {
|
|
|
36
34
|
},
|
|
37
35
|
};
|
|
38
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* A tab of the curated plugins for `StudioBrowser`, searched by name, vendor,
|
|
39
|
+
* description and keywords.
|
|
40
|
+
*/
|
|
41
|
+
export const curatedWamSource = (options = {}) => searchSource(options.id ?? 'curated-wams', options.label ?? 'Plugins', curatedWams(options));
|
|
42
|
+
/** The vetted community plugins, effects and instruments, with their module URLs under `base`. */
|
|
43
|
+
export const communityWams = (options = {}) => {
|
|
44
|
+
return COMMUNITY_WAMS.filter((plugin) => options.allow?.(plugin) ?? true).map((plugin) => {
|
|
45
|
+
const base = options.base?.[plugin.package] ?? COMMUNITY_WAM_PACKAGES[plugin.package];
|
|
46
|
+
return {
|
|
47
|
+
id: plugin.identifier,
|
|
48
|
+
name: plugin.name,
|
|
49
|
+
kind: 'plugin',
|
|
50
|
+
url: new URL(plugin.path, base).href,
|
|
51
|
+
detail: `${plugin.vendor} · ${plugin.description}`,
|
|
52
|
+
image: new URL(plugin.thumbnail, base).href,
|
|
53
|
+
data: plugin,
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
/** A tab of the vetted community effects for `StudioBrowser`. */
|
|
58
|
+
export const communityWamSource = (options = {}) => searchSource(options.id ?? 'community-wams', options.label ?? 'Community', communityWams({ ...options, allow: (plugin) => !plugin.isInstrument && (options.allow?.(plugin) ?? true) }));
|
|
59
|
+
/** The vetted community instruments, as choices for `StudioInstrumentPanel`'s `instruments`. */
|
|
60
|
+
export const communityWamInstruments = (options = {}) => communityWams({ ...options, allow: (plugin) => plugin.isInstrument && (options.allow?.(plugin) ?? true) }).map((item) => ({
|
|
61
|
+
label: item.name,
|
|
62
|
+
instrument: { id: item.url },
|
|
63
|
+
}));
|
|
64
|
+
/**
|
|
65
|
+
* True for a vetted community plugin whose editor only answers the mouse. Pass it
|
|
66
|
+
* as `new PluginRack(engine, { mouseOnly })` so touches work on its editor.
|
|
67
|
+
*/
|
|
68
|
+
export const isMouseOnlyWam = (url, options = {}) => communityWams(options).some((item) => item.url === url && item.data.mouseOnly);
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version; `pnpm version:set` keeps it in step with package.json. */
|
|
2
|
-
export declare const WAMS_VERSION = "0.
|
|
2
|
+
export declare const WAMS_VERSION = "0.6.1";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version; `pnpm version:set` keeps it in step with package.json. */
|
|
2
|
-
export const WAMS_VERSION = '0.
|
|
2
|
+
export const WAMS_VERSION = '0.6.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toneflix/studio-wams",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Reviewed Web Audio Module effects for Toneflix Studio, pinned and served from jsDelivr, with a browser tab and mixer catalog for them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Toneflix <code@toneflix.com.ng>",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
37
37
|
"plugins",
|
|
38
|
-
"licenses",
|
|
39
38
|
"README.md",
|
|
40
39
|
"LICENSE",
|
|
41
40
|
"THIRD_PARTY_NOTICES.md"
|