@audio/spectral 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 (4) hide show
  1. package/LICENSE +40 -0
  2. package/README.md +7 -0
  3. package/index.js +16 -0
  4. package/package.json +58 -0
package/LICENSE ADDED
@@ -0,0 +1,40 @@
1
+ Kṛṣnized
2
+
3
+ This is a reminder that, in the absolute sense, all results of work belong to the Supreme.
4
+
5
+ While software and intellectual property (IP) require a formal license to define authorship,
6
+ responsibilities, or distribution limitations, these are temporary material designations.
7
+ The origin and destination of all ideas, as well as the ultimate owner of all results,
8
+ is the Supreme. The most meaningful action is to dedicate these results to the Supreme.
9
+ This process is known as Karma-Yoga and is described in BG 3.9, BG 12.10 and BG 18.46.
10
+
11
+ "Work done as a sacrifice for the Supreme must be performed;
12
+ otherwise, work binds one to the material world."
13
+
14
+ This license does not override or alter the terms specified by the material-level license below.
15
+
16
+
17
+
18
+ ---
19
+
20
+ MIT License
21
+
22
+ Copyright (c) Dmitry Iv
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ of this software and associated documentation files (the "Software"), to deal
26
+ in the Software without restriction, including without limitation the rights
27
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ copies of the Software, and to permit persons to whom the Software is
29
+ furnished to do so, subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in all
32
+ copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @audio/spectral
2
+
3
+ > Spectral features — centroid, spread, flatness, rolloff, flux, slope, crest. All planned.
4
+
5
+ Also planned: `spectral-mfcc` (librosa parity), `spectral-ltas` (adaptive/match-EQ substrate), `spectral-edit` (time×frequency region editing — Audacity/afftfilt class).
6
+
7
+ Reference implementations exist in the `audio` package stats (`centroid`, `flatness`, `crest` shipped there — extract, don't rewrite). Parity: FFmpeg `aspectralstats`, MIREX spectral features. LTAS / spectral-stats for the Auto-Chain analyser build on these atoms.
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ // @audio/spectral — spectral features & editing umbrella re-exporting every @audio/spectral-* atom.
2
+
3
+ export { default as centroid } from '@audio/spectral-centroid'
4
+ export { default as spread } from '@audio/spectral-spread'
5
+ export { default as flatness } from '@audio/spectral-flatness'
6
+ export { default as rolloff } from '@audio/spectral-rolloff'
7
+ export { default as flux } from '@audio/spectral-flux'
8
+ export { default as slope } from '@audio/spectral-slope'
9
+ export { default as crest } from '@audio/spectral-crest'
10
+ export { default as mfcc } from '@audio/spectral-mfcc'
11
+ export { default as ltas } from '@audio/spectral-ltas'
12
+ export { default as edit } from '@audio/spectral-edit'
13
+ export { default as freeze } from '@audio/spectral-freeze'
14
+ export { default as contrast } from '@audio/spectral-contrast'
15
+ export { default as harmonics } from '@audio/spectral-harmonics'
16
+ export { default as cqt } from '@audio/spectral-cqt'
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@audio/spectral",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "description": "Spectral features — umbrella for @audio/spectral-* atoms (centroid, spread, flatness, rolloff, flux, slope, crest)",
7
+ "workspaces": [
8
+ "packages/*"
9
+ ],
10
+ "keywords": [
11
+ "audio",
12
+ "dsp",
13
+ "spectral",
14
+ "features",
15
+ "mir"
16
+ ],
17
+ "license": "MIT",
18
+ "author": "Dmitry Iv. <dfcreative@gmail.com>",
19
+ "engines": {
20
+ "node": ">=18"
21
+ },
22
+ "main": "index.js",
23
+ "exports": {
24
+ ".": "./index.js",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "index.js"
29
+ ],
30
+ "scripts": {
31
+ "test": "node test.js",
32
+ "test:all": "npm test --workspaces --if-present && npm test",
33
+ "publish:all": "npm publish --workspaces && npm publish"
34
+ },
35
+ "dependencies": {
36
+ "@audio/spectral-centroid": "^1.0.0",
37
+ "@audio/spectral-spread": "^1.0.0",
38
+ "@audio/spectral-flatness": "^1.0.0",
39
+ "@audio/spectral-rolloff": "^1.0.0",
40
+ "@audio/spectral-flux": "^1.0.0",
41
+ "@audio/spectral-slope": "^1.0.0",
42
+ "@audio/spectral-crest": "^1.0.0",
43
+ "@audio/spectral-mfcc": "^1.0.0",
44
+ "@audio/spectral-ltas": "^1.0.0",
45
+ "@audio/spectral-edit": "^1.0.0",
46
+ "@audio/spectral-freeze": "^1.0.0",
47
+ "@audio/spectral-contrast": "^1.0.0",
48
+ "@audio/spectral-harmonics": "^1.0.0",
49
+ "@audio/spectral-cqt": "^1.0.0"
50
+ },
51
+ "devDependencies": {
52
+ "tst": "^9.4.0",
53
+ "fourier-transform": "^2.2.0"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ }
58
+ }