@audio/spatial-channelsplit 1.0.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.
Files changed (2) hide show
  1. package/channelsplit.js +11 -0
  2. package/package.json +29 -0
@@ -0,0 +1,11 @@
1
+ // Channel split/combine — planes ↔ channel array (FFmpeg channelsplit class).
2
+
3
+ export function split (channels) {
4
+ return channels.map(ch => Float32Array.from(ch))
5
+ }
6
+
7
+ export function combine (planes) {
8
+ return planes
9
+ }
10
+
11
+ export default split
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@audio/spatial-channelsplit",
3
+ "version": "1.0.0",
4
+ "description": "Channel split/combine — multichannel ↔ mono planes (FFmpeg channelsplit)",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "channelsplit.js",
8
+ "exports": {
9
+ ".": "./channelsplit.js",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "channelsplit.js"
14
+ ],
15
+ "keywords": [
16
+ "audio",
17
+ "dsp",
18
+ "spatial",
19
+ "channelsplit"
20
+ ],
21
+ "license": "MIT",
22
+ "author": "Dmitry Iv. <dfcreative@gmail.com>",
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ }
29
+ }