@toneflix/studio-wams 0.0.0-stage → 0.6.0
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/LICENSE +21 -0
- package/README.md +36 -2
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/dist/catalog.d.ts +22 -0
- package/dist/catalog.js +149 -0
- package/dist/community.d.ts +47 -0
- package/dist/community.js +180 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +68 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +2 -0
- package/package.json +49 -3
- package/plugins/plugins.json +194 -0
- package/plugins/toneflix/base.js +194 -0
- package/plugins/toneflix/chorus.js +48 -0
- package/plugins/toneflix/chorus.png +0 -0
- package/plugins/toneflix/compressor.js +35 -0
- package/plugins/toneflix/compressor.png +0 -0
- package/plugins/toneflix/drive.js +44 -0
- package/plugins/toneflix/drive.png +0 -0
- package/plugins/toneflix/echo.js +35 -0
- package/plugins/toneflix/echo.png +0 -0
- package/plugins/toneflix/eq.js +36 -0
- package/plugins/toneflix/eq.png +0 -0
- package/plugins/toneflix/gate.js +79 -0
- package/plugins/toneflix/gate.png +0 -0
- package/plugins/toneflix/kbverb.js +153 -0
- package/plugins/toneflix/kbverb.png +0 -0
- package/plugins/toneflix/limiter.js +47 -0
- package/plugins/toneflix/limiter.png +0 -0
- package/plugins/toneflix/phaser.js +47 -0
- package/plugins/toneflix/phaser.png +0 -0
- package/plugins/toneflix/reverb.js +58 -0
- package/plugins/toneflix/reverb.png +0 -0
- package/plugins/toneflix/stone-phaser.js +142 -0
- package/plugins/toneflix/stone-phaser.png +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Toneflix
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @toneflix/studio-wams
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Reviewed Web Audio Module (WAM 2) effects for [Toneflix Studio](https://toneflix.github.io/studio/), served from jsDelivr.
|
|
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, 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
|
+
|
|
7
|
+
| Plugin | Vendor | Licence |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| Echo | Toneflix | MIT |
|
|
10
|
+
| Drive | Toneflix | MIT |
|
|
11
|
+
| Reverb | Toneflix | MIT |
|
|
12
|
+
| Compressor | Toneflix | MIT |
|
|
13
|
+
| Limiter | Toneflix | MIT |
|
|
14
|
+
| Gate | Toneflix | MIT |
|
|
15
|
+
| EQ | Toneflix | MIT |
|
|
16
|
+
| Chorus | Toneflix | MIT |
|
|
17
|
+
| Phaser | Toneflix | MIT |
|
|
18
|
+
| KB Verb | Toneflix, a port of KBVerb by Corey Kereliuk | MIT |
|
|
19
|
+
| Stone Phaser | Toneflix, a port of Stone Phaser by Jean Pierre Cimalando | MIT (original CC0-1.0) |
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm add @toneflix/studio-wams
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { curatedWams, curatedWamSource } from '@toneflix/studio-wams';
|
|
27
|
+
|
|
28
|
+
// A Plugins tab in the browser, and the mixer's add menu
|
|
29
|
+
new StudioBrowser('#editor', { timeline, engine, plugins, sources: [curatedWamSource()] });
|
|
30
|
+
new StudioMixer('#editor', { timeline, engine, plugins, catalog: curatedWams() });
|
|
31
|
+
```
|
|
32
|
+
|
|
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.
|
|
34
|
+
|
|
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.
|
|
36
|
+
|
|
37
|
+
MIT License.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Two plugins in `plugins/toneflix` are JavaScript ports of Faust code:
|
|
4
|
+
|
|
5
|
+
| Plugin | Ported from | Licence | Source |
|
|
6
|
+
| --- | --- | --- | --- |
|
|
7
|
+
| `kbverb.js` | KBVerb, Copyright (c) Corey Kereliuk | MIT | `kbverb.dsp` in [wam-community](https://www.npmjs.com/package/wam-community) 0.4.9, `plugins/wimmics/kbverb` |
|
|
8
|
+
| `stone-phaser.js` | Stone Phaser 1.2.2 by Jean Pierre Cimalando | CC0-1.0 (offered as CC0-1.0 or BSL-1.0) | https://github.com/jpcima/stone-phaser |
|
|
9
|
+
|
|
10
|
+
## MIT License
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** A reviewed plugin in this package, described like the WAM community list describes plugins. */
|
|
2
|
+
export interface CuratedWam {
|
|
3
|
+
identifier: string;
|
|
4
|
+
name: string;
|
|
5
|
+
vendor: string;
|
|
6
|
+
description: string;
|
|
7
|
+
keywords: string[];
|
|
8
|
+
/** Its module, relative to the package's `plugins` folder */
|
|
9
|
+
path: string;
|
|
10
|
+
/** A picture of its editor, relative to the `plugins` folder */
|
|
11
|
+
thumbnail?: string;
|
|
12
|
+
/** The plugin's own version */
|
|
13
|
+
version: string;
|
|
14
|
+
isInstrument: false;
|
|
15
|
+
license: string;
|
|
16
|
+
homepage: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
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
|
+
*/
|
|
22
|
+
export declare const CURATED_WAMS: readonly CuratedWam[];
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
5
|
+
export const CURATED_WAMS = [
|
|
6
|
+
{
|
|
7
|
+
identifier: 'net.toneflix.studio.echo',
|
|
8
|
+
name: 'Echo',
|
|
9
|
+
vendor: 'Toneflix',
|
|
10
|
+
description: 'Tempo-synced echo with feedback and tone',
|
|
11
|
+
keywords: ['effect', 'delay', 'echo'],
|
|
12
|
+
path: 'toneflix/echo.js',
|
|
13
|
+
thumbnail: 'toneflix/echo.png',
|
|
14
|
+
version: '1.0.0',
|
|
15
|
+
isInstrument: false,
|
|
16
|
+
license: 'MIT',
|
|
17
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
identifier: 'net.toneflix.studio.drive',
|
|
21
|
+
name: 'Drive',
|
|
22
|
+
vendor: 'Toneflix',
|
|
23
|
+
description: 'Warm saturation with tone and level',
|
|
24
|
+
keywords: ['effect', 'distortion', 'saturation'],
|
|
25
|
+
path: 'toneflix/drive.js',
|
|
26
|
+
thumbnail: 'toneflix/drive.png',
|
|
27
|
+
version: '1.0.0',
|
|
28
|
+
isInstrument: false,
|
|
29
|
+
license: 'MIT',
|
|
30
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
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
|
+
thumbnail: 'toneflix/reverb.png',
|
|
40
|
+
version: '1.0.0',
|
|
41
|
+
isInstrument: false,
|
|
42
|
+
license: 'MIT',
|
|
43
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
identifier: 'net.toneflix.studio.compressor',
|
|
47
|
+
name: 'Compressor',
|
|
48
|
+
vendor: 'Toneflix',
|
|
49
|
+
description: 'Compressor with threshold, ratio, attack, release, knee and make-up gain',
|
|
50
|
+
keywords: ['effect', 'dynamics', 'compressor'],
|
|
51
|
+
path: 'toneflix/compressor.js',
|
|
52
|
+
thumbnail: 'toneflix/compressor.png',
|
|
53
|
+
version: '1.0.0',
|
|
54
|
+
isInstrument: false,
|
|
55
|
+
license: 'MIT',
|
|
56
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
identifier: 'net.toneflix.studio.limiter',
|
|
60
|
+
name: 'Limiter',
|
|
61
|
+
vendor: 'Toneflix',
|
|
62
|
+
description: 'Peak limiter with gain and a hard ceiling',
|
|
63
|
+
keywords: ['effect', 'dynamics', 'limiter', 'master'],
|
|
64
|
+
path: 'toneflix/limiter.js',
|
|
65
|
+
thumbnail: 'toneflix/limiter.png',
|
|
66
|
+
version: '1.0.0',
|
|
67
|
+
isInstrument: false,
|
|
68
|
+
license: 'MIT',
|
|
69
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
identifier: 'net.toneflix.studio.gate',
|
|
73
|
+
name: 'Gate',
|
|
74
|
+
vendor: 'Toneflix',
|
|
75
|
+
description: 'Noise gate with threshold, hold and range',
|
|
76
|
+
keywords: ['effect', 'dynamics', 'gate', 'noise'],
|
|
77
|
+
path: 'toneflix/gate.js',
|
|
78
|
+
thumbnail: 'toneflix/gate.png',
|
|
79
|
+
version: '1.0.0',
|
|
80
|
+
isInstrument: false,
|
|
81
|
+
license: 'MIT',
|
|
82
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
identifier: 'net.toneflix.studio.eq',
|
|
86
|
+
name: 'EQ',
|
|
87
|
+
vendor: 'Toneflix',
|
|
88
|
+
description: 'Three-band equalizer with a sweepable mid',
|
|
89
|
+
keywords: ['effect', 'eq', 'equalizer', 'filter'],
|
|
90
|
+
path: 'toneflix/eq.js',
|
|
91
|
+
thumbnail: 'toneflix/eq.png',
|
|
92
|
+
version: '1.0.0',
|
|
93
|
+
isInstrument: false,
|
|
94
|
+
license: 'MIT',
|
|
95
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
identifier: 'net.toneflix.studio.chorus',
|
|
99
|
+
name: 'Chorus',
|
|
100
|
+
vendor: 'Toneflix',
|
|
101
|
+
description: 'Stereo chorus with rate, depth and delay',
|
|
102
|
+
keywords: ['effect', 'modulation', 'chorus'],
|
|
103
|
+
path: 'toneflix/chorus.js',
|
|
104
|
+
thumbnail: 'toneflix/chorus.png',
|
|
105
|
+
version: '1.0.0',
|
|
106
|
+
isInstrument: false,
|
|
107
|
+
license: 'MIT',
|
|
108
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
identifier: 'net.toneflix.studio.phaser',
|
|
112
|
+
name: 'Phaser',
|
|
113
|
+
vendor: 'Toneflix',
|
|
114
|
+
description: 'Six-stage phaser with feedback',
|
|
115
|
+
keywords: ['effect', 'modulation', 'phaser'],
|
|
116
|
+
path: 'toneflix/phaser.js',
|
|
117
|
+
thumbnail: 'toneflix/phaser.png',
|
|
118
|
+
version: '1.0.0',
|
|
119
|
+
isInstrument: false,
|
|
120
|
+
license: 'MIT',
|
|
121
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
identifier: 'net.toneflix.studio.kbverb',
|
|
125
|
+
name: 'KB Verb',
|
|
126
|
+
vendor: 'Toneflix',
|
|
127
|
+
description: 'Lush allpass-loop reverb, a port of KBVerb by Corey Kereliuk',
|
|
128
|
+
keywords: ['effect', 'reverb', 'space', 'ambient'],
|
|
129
|
+
path: 'toneflix/kbverb.js',
|
|
130
|
+
thumbnail: 'toneflix/kbverb.png',
|
|
131
|
+
version: '1.0.0',
|
|
132
|
+
isInstrument: false,
|
|
133
|
+
license: 'MIT',
|
|
134
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
identifier: 'net.toneflix.studio.stone-phaser',
|
|
138
|
+
name: 'Stone Phaser',
|
|
139
|
+
vendor: 'Toneflix',
|
|
140
|
+
description: 'Four-stage analog phaser model, a port of Stone Phaser by Jean Pierre Cimalando',
|
|
141
|
+
keywords: ['effect', 'modulation', 'phaser', 'analog'],
|
|
142
|
+
path: 'toneflix/stone-phaser.js',
|
|
143
|
+
thumbnail: 'toneflix/stone-phaser.png',
|
|
144
|
+
version: '1.0.0',
|
|
145
|
+
isInstrument: false,
|
|
146
|
+
license: 'MIT',
|
|
147
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
148
|
+
},
|
|
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
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type CuratedWam } from './catalog.ts';
|
|
2
|
+
import { type CommunityWam, type CommunityWamPackage } from './community.ts';
|
|
3
|
+
export * from './catalog.ts';
|
|
4
|
+
export * from './community.ts';
|
|
5
|
+
export * from './version.ts';
|
|
6
|
+
export interface CuratedWamsOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Where the package's `plugins` folder is served, ending in a slash. By default
|
|
9
|
+
* jsDelivr, pinned to this package's version, so the code never changes under you.
|
|
10
|
+
*/
|
|
11
|
+
base?: string;
|
|
12
|
+
/** Which of the plugins to offer */
|
|
13
|
+
allow?: (plugin: CuratedWam) => boolean;
|
|
14
|
+
}
|
|
15
|
+
/** A plugin ready for the browser's plugin tabs or the mixer's catalog. */
|
|
16
|
+
export interface CuratedWamItem {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
kind: 'plugin';
|
|
20
|
+
url: string;
|
|
21
|
+
detail: string;
|
|
22
|
+
/** A picture of its editor, when it has one */
|
|
23
|
+
image?: string;
|
|
24
|
+
data: CuratedWam;
|
|
25
|
+
}
|
|
26
|
+
/** The `plugins` folder of a version of this package on jsDelivr. */
|
|
27
|
+
export declare const wamsBase: (version?: string) => string;
|
|
28
|
+
/** The curated plugins, with their module URLs under `base`. */
|
|
29
|
+
export declare const curatedWams: (options?: CuratedWamsOptions) => CuratedWamItem[];
|
|
30
|
+
export interface CuratedWamSourceOptions extends CuratedWamsOptions {
|
|
31
|
+
id?: string;
|
|
32
|
+
label?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A tab of the curated plugins for `StudioBrowser`, searched by name, vendor,
|
|
36
|
+
* description and keywords.
|
|
37
|
+
*/
|
|
38
|
+
export declare const curatedWamSource: (options?: CuratedWamSourceOptions) => {
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
list: ({ search }: {
|
|
42
|
+
search: string;
|
|
43
|
+
}) => {
|
|
44
|
+
items: CuratedWamItem[];
|
|
45
|
+
more: boolean;
|
|
46
|
+
};
|
|
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
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CURATED_WAMS } from './catalog.js';
|
|
2
|
+
import { COMMUNITY_WAM_PACKAGES, COMMUNITY_WAMS } from './community.js';
|
|
3
|
+
import { WAMS_VERSION } from './version.js';
|
|
4
|
+
export * from './catalog.js';
|
|
5
|
+
export * from './community.js';
|
|
6
|
+
export * from './version.js';
|
|
7
|
+
/** The `plugins` folder of a version of this package on jsDelivr. */
|
|
8
|
+
export const wamsBase = (version = WAMS_VERSION) => `https://cdn.jsdelivr.net/npm/@toneflix/studio-wams@${version}/plugins/`;
|
|
9
|
+
/** The curated plugins, with their module URLs under `base`. */
|
|
10
|
+
export const curatedWams = (options = {}) => {
|
|
11
|
+
const base = options.base ?? wamsBase();
|
|
12
|
+
return CURATED_WAMS.filter((plugin) => options.allow?.(plugin) ?? true).map((plugin) => ({
|
|
13
|
+
id: plugin.identifier,
|
|
14
|
+
name: plugin.name,
|
|
15
|
+
kind: 'plugin',
|
|
16
|
+
url: new URL(plugin.path, base).href,
|
|
17
|
+
detail: `${plugin.vendor} · ${plugin.description}`,
|
|
18
|
+
...(plugin.thumbnail && { image: new URL(plugin.thumbnail, base).href }),
|
|
19
|
+
data: plugin,
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
/** A browser tab over a fixed list, searched by name, detail and keywords. */
|
|
23
|
+
const searchSource = (id, label, items) => {
|
|
24
|
+
return {
|
|
25
|
+
id,
|
|
26
|
+
label,
|
|
27
|
+
list: ({ search }) => {
|
|
28
|
+
const words = search.toLowerCase().split(/\s+/).filter(Boolean);
|
|
29
|
+
const found = items.filter((item) => {
|
|
30
|
+
const text = `${item.name} ${item.detail} ${item.data.keywords.join(' ')}`.toLowerCase();
|
|
31
|
+
return words.every((word) => text.includes(word));
|
|
32
|
+
});
|
|
33
|
+
return { items: found, more: false };
|
|
34
|
+
},
|
|
35
|
+
};
|
|
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.js
ADDED