@toneflix/studio-wams 0.0.0-stage → 0.5.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 +39 -2
- package/THIRD_PARTY_NOTICES.md +43 -0
- package/dist/catalog.d.ts +22 -0
- package/dist/catalog.js +272 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +38 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +2 -0
- package/licenses/MPL-2.0.txt +373 -0
- package/package.json +50 -3
- package/plugins/plugins.json +357 -0
- package/plugins/sequencer-party/delay/descriptor.json +16 -0
- package/plugins/sequencer-party/delay/index.js +247 -0
- package/plugins/sequencer-party/delay/screenshot.png +0 -0
- package/plugins/sequencer-party/distortion/descriptor.json +16 -0
- package/plugins/sequencer-party/distortion/index.js +257 -0
- package/plugins/sequencer-party/distortion/screenshot.png +0 -0
- package/plugins/sequencer-party/simple-eq/descriptor.json +16 -0
- package/plugins/sequencer-party/simple-eq/index.js +237 -0
- package/plugins/sequencer-party/simple-eq/screenshot.png +0 -0
- package/plugins/toneflix/base.js +182 -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,40 @@
|
|
|
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, 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
|
+
| Simple Delay | Sequencer Party (Tom Burns) | MIT |
|
|
21
|
+
| Simple Distortion | Sequencer Party (Tom Burns) | MIT |
|
|
22
|
+
| Simple EQ | Sequencer Party (Tom Burns) | MIT |
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
pnpm add @toneflix/studio-wams
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import { curatedWams, curatedWamSource } from '@toneflix/studio-wams';
|
|
30
|
+
|
|
31
|
+
// A Plugins tab in the browser, and the mixer's add menu
|
|
32
|
+
new StudioBrowser('#editor', { timeline, engine, plugins, sources: [curatedWamSource()] });
|
|
33
|
+
new StudioMixer('#editor', { timeline, engine, plugins, catalog: curatedWams() });
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
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
|
+
|
|
38
|
+
See `THIRD_PARTY_NOTICES.md` for where each plugin came 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
|
+
|
|
40
|
+
MIT License.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Third-party notices
|
|
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
|
+
Two plugins in `plugins/toneflix` are JavaScript ports of Faust code:
|
|
19
|
+
|
|
20
|
+
| Plugin | Ported from | Licence | Source |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| `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` |
|
|
23
|
+
| `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 |
|
|
24
|
+
|
|
25
|
+
## MIT License
|
|
26
|
+
|
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
28
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
29
|
+
in the Software without restriction, including without limitation the rights
|
|
30
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
31
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
32
|
+
furnished to do so, subject to the following conditions:
|
|
33
|
+
|
|
34
|
+
The above copyright notice and this permission notice shall be included in all
|
|
35
|
+
copies or substantial portions of the Software.
|
|
36
|
+
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
39
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
40
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
41
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
42
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43
|
+
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 a pinned copy whose licence lets
|
|
20
|
+
* it be passed on; `THIRD_PARTY_NOTICES.md` lists where each came from.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CURATED_WAMS: readonly CuratedWam[];
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reviewed plugins, all effects. Each one is a pinned copy whose licence lets
|
|
3
|
+
* it be passed on; `THIRD_PARTY_NOTICES.md` lists where each came from.
|
|
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
|
+
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
|
+
{
|
|
117
|
+
identifier: 'net.toneflix.studio.reverb',
|
|
118
|
+
name: 'Reverb',
|
|
119
|
+
vendor: 'Toneflix',
|
|
120
|
+
description: 'Room-to-hall reverb with decay, pre-delay and tone',
|
|
121
|
+
keywords: ['effect', 'reverb', 'space'],
|
|
122
|
+
path: 'toneflix/reverb.js',
|
|
123
|
+
thumbnail: 'toneflix/reverb.png',
|
|
124
|
+
version: '1.0.0',
|
|
125
|
+
isInstrument: false,
|
|
126
|
+
license: 'MIT',
|
|
127
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
identifier: 'net.toneflix.studio.compressor',
|
|
131
|
+
name: 'Compressor',
|
|
132
|
+
vendor: 'Toneflix',
|
|
133
|
+
description: 'Compressor with threshold, ratio, attack, release, knee and make-up gain',
|
|
134
|
+
keywords: ['effect', 'dynamics', 'compressor'],
|
|
135
|
+
path: 'toneflix/compressor.js',
|
|
136
|
+
thumbnail: 'toneflix/compressor.png',
|
|
137
|
+
version: '1.0.0',
|
|
138
|
+
isInstrument: false,
|
|
139
|
+
license: 'MIT',
|
|
140
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
identifier: 'net.toneflix.studio.limiter',
|
|
144
|
+
name: 'Limiter',
|
|
145
|
+
vendor: 'Toneflix',
|
|
146
|
+
description: 'Peak limiter with gain and a hard ceiling',
|
|
147
|
+
keywords: ['effect', 'dynamics', 'limiter', 'master'],
|
|
148
|
+
path: 'toneflix/limiter.js',
|
|
149
|
+
thumbnail: 'toneflix/limiter.png',
|
|
150
|
+
version: '1.0.0',
|
|
151
|
+
isInstrument: false,
|
|
152
|
+
license: 'MIT',
|
|
153
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
identifier: 'net.toneflix.studio.gate',
|
|
157
|
+
name: 'Gate',
|
|
158
|
+
vendor: 'Toneflix',
|
|
159
|
+
description: 'Noise gate with threshold, hold and range',
|
|
160
|
+
keywords: ['effect', 'dynamics', 'gate', 'noise'],
|
|
161
|
+
path: 'toneflix/gate.js',
|
|
162
|
+
thumbnail: 'toneflix/gate.png',
|
|
163
|
+
version: '1.0.0',
|
|
164
|
+
isInstrument: false,
|
|
165
|
+
license: 'MIT',
|
|
166
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
identifier: 'net.toneflix.studio.eq',
|
|
170
|
+
name: 'EQ',
|
|
171
|
+
vendor: 'Toneflix',
|
|
172
|
+
description: 'Three-band equalizer with a sweepable mid',
|
|
173
|
+
keywords: ['effect', 'eq', 'equalizer', 'filter'],
|
|
174
|
+
path: 'toneflix/eq.js',
|
|
175
|
+
thumbnail: 'toneflix/eq.png',
|
|
176
|
+
version: '1.0.0',
|
|
177
|
+
isInstrument: false,
|
|
178
|
+
license: 'MIT',
|
|
179
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
identifier: 'net.toneflix.studio.chorus',
|
|
183
|
+
name: 'Chorus',
|
|
184
|
+
vendor: 'Toneflix',
|
|
185
|
+
description: 'Stereo chorus with rate, depth and delay',
|
|
186
|
+
keywords: ['effect', 'modulation', 'chorus'],
|
|
187
|
+
path: 'toneflix/chorus.js',
|
|
188
|
+
thumbnail: 'toneflix/chorus.png',
|
|
189
|
+
version: '1.0.0',
|
|
190
|
+
isInstrument: false,
|
|
191
|
+
license: 'MIT',
|
|
192
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
identifier: 'net.toneflix.studio.phaser',
|
|
196
|
+
name: 'Phaser',
|
|
197
|
+
vendor: 'Toneflix',
|
|
198
|
+
description: 'Six-stage phaser with feedback',
|
|
199
|
+
keywords: ['effect', 'modulation', 'phaser'],
|
|
200
|
+
path: 'toneflix/phaser.js',
|
|
201
|
+
thumbnail: 'toneflix/phaser.png',
|
|
202
|
+
version: '1.0.0',
|
|
203
|
+
isInstrument: false,
|
|
204
|
+
license: 'MIT',
|
|
205
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
identifier: 'net.toneflix.studio.kbverb',
|
|
209
|
+
name: 'KB Verb',
|
|
210
|
+
vendor: 'Toneflix',
|
|
211
|
+
description: 'Lush allpass-loop reverb, a port of KBVerb by Corey Kereliuk',
|
|
212
|
+
keywords: ['effect', 'reverb', 'space', 'ambient'],
|
|
213
|
+
path: 'toneflix/kbverb.js',
|
|
214
|
+
thumbnail: 'toneflix/kbverb.png',
|
|
215
|
+
version: '1.0.0',
|
|
216
|
+
isInstrument: false,
|
|
217
|
+
license: 'MIT',
|
|
218
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
identifier: 'net.toneflix.studio.stone-phaser',
|
|
222
|
+
name: 'Stone Phaser',
|
|
223
|
+
vendor: 'Toneflix',
|
|
224
|
+
description: 'Four-stage analog phaser model, a port of Stone Phaser by Jean Pierre Cimalando',
|
|
225
|
+
keywords: ['effect', 'modulation', 'phaser', 'analog'],
|
|
226
|
+
path: 'toneflix/stone-phaser.js',
|
|
227
|
+
thumbnail: 'toneflix/stone-phaser.png',
|
|
228
|
+
version: '1.0.0',
|
|
229
|
+
isInstrument: false,
|
|
230
|
+
license: 'MIT',
|
|
231
|
+
homepage: 'https://github.com/toneflix/studio',
|
|
232
|
+
},
|
|
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
|
+
];
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type CuratedWam } from './catalog.ts';
|
|
2
|
+
export * from './catalog.ts';
|
|
3
|
+
export * from './version.ts';
|
|
4
|
+
export interface CuratedWamsOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Where the package's `plugins` folder is served, ending in a slash. By default
|
|
7
|
+
* jsDelivr, pinned to this package's version, so the code never changes under you.
|
|
8
|
+
*/
|
|
9
|
+
base?: string;
|
|
10
|
+
/** Which of the plugins to offer */
|
|
11
|
+
allow?: (plugin: CuratedWam) => boolean;
|
|
12
|
+
}
|
|
13
|
+
/** A plugin ready for the browser's plugin tabs or the mixer's catalog. */
|
|
14
|
+
export interface CuratedWamItem {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
kind: 'plugin';
|
|
18
|
+
url: string;
|
|
19
|
+
detail: string;
|
|
20
|
+
/** A picture of its editor, when it has one */
|
|
21
|
+
image?: string;
|
|
22
|
+
data: CuratedWam;
|
|
23
|
+
}
|
|
24
|
+
/** The `plugins` folder of a version of this package on jsDelivr. */
|
|
25
|
+
export declare const wamsBase: (version?: string) => string;
|
|
26
|
+
/** The curated plugins, with their module URLs under `base`. */
|
|
27
|
+
export declare const curatedWams: (options?: CuratedWamsOptions) => CuratedWamItem[];
|
|
28
|
+
export interface CuratedWamSourceOptions extends CuratedWamsOptions {
|
|
29
|
+
id?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A tab of the curated plugins for `StudioBrowser`, searched by name, vendor,
|
|
34
|
+
* description and keywords.
|
|
35
|
+
*/
|
|
36
|
+
export declare const curatedWamSource: (options?: CuratedWamSourceOptions) => {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
list: ({ search }: {
|
|
40
|
+
search: string;
|
|
41
|
+
}) => {
|
|
42
|
+
items: CuratedWamItem[];
|
|
43
|
+
more: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CURATED_WAMS } from './catalog.js';
|
|
2
|
+
import { WAMS_VERSION } from './version.js';
|
|
3
|
+
export * from './catalog.js';
|
|
4
|
+
export * from './version.js';
|
|
5
|
+
/** The `plugins` folder of a version of this package on jsDelivr. */
|
|
6
|
+
export const wamsBase = (version = WAMS_VERSION) => `https://cdn.jsdelivr.net/npm/@toneflix/studio-wams@${version}/plugins/`;
|
|
7
|
+
/** The curated plugins, with their module URLs under `base`. */
|
|
8
|
+
export const curatedWams = (options = {}) => {
|
|
9
|
+
const base = options.base ?? wamsBase();
|
|
10
|
+
return CURATED_WAMS.filter((plugin) => options.allow?.(plugin) ?? true).map((plugin) => ({
|
|
11
|
+
id: plugin.identifier,
|
|
12
|
+
name: plugin.name,
|
|
13
|
+
kind: 'plugin',
|
|
14
|
+
url: new URL(plugin.path, base).href,
|
|
15
|
+
detail: `${plugin.vendor} · ${plugin.description}`,
|
|
16
|
+
...(plugin.thumbnail && { image: new URL(plugin.thumbnail, base).href }),
|
|
17
|
+
data: plugin,
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A tab of the curated plugins for `StudioBrowser`, searched by name, vendor,
|
|
22
|
+
* description and keywords.
|
|
23
|
+
*/
|
|
24
|
+
export const curatedWamSource = (options = {}) => {
|
|
25
|
+
const items = curatedWams(options);
|
|
26
|
+
return {
|
|
27
|
+
id: options.id ?? 'curated-wams',
|
|
28
|
+
label: options.label ?? 'Plugins',
|
|
29
|
+
list: ({ search }) => {
|
|
30
|
+
const words = search.toLowerCase().split(/\s+/).filter(Boolean);
|
|
31
|
+
const found = items.filter((item) => {
|
|
32
|
+
const text = `${item.name} ${item.detail} ${item.data.keywords.join(' ')}`.toLowerCase();
|
|
33
|
+
return words.every((word) => text.includes(word));
|
|
34
|
+
});
|
|
35
|
+
return { items: found, more: false };
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/version.js
ADDED