nodejs-audio-visualizer 5.5.3 → 5.6.4
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 -21
- package/README.md +84 -83
- package/dist/audio.d.ts +13 -13
- package/dist/audio.js +128 -128
- package/dist/beats.d.ts +39 -39
- package/dist/beats.js +220 -220
- package/dist/bpmEncoder.d.ts +14 -14
- package/dist/bpmEncoder.js +97 -97
- package/dist/config.d.ts +81 -80
- package/dist/config.js +392 -391
- package/dist/config.js.map +1 -1
- package/dist/dsp.d.ts +16 -16
- package/dist/dsp.js +76 -76
- package/dist/highlight.d.ts +91 -91
- package/dist/highlight.js +606 -606
- package/dist/image.d.ts +107 -97
- package/dist/image.js +614 -545
- package/dist/image.js.map +1 -1
- package/dist/index.d.ts +98 -96
- package/dist/index.js +673 -667
- package/dist/index.js.map +1 -1
- package/dist/subtitleConvert.d.ts +3 -3
- package/dist/subtitleConvert.js +61 -61
- package/dist/video.d.ts +171 -171
- package/dist/video.js +743 -743
- package/dist/waitForEventLoop.d.ts +1 -1
- package/dist/waitForEventLoop.js +5 -5
- package/package.json +62 -62
- package/src/audio.ts +129 -129
- package/src/beats.ts +279 -279
- package/src/bpmEncoder.ts +97 -97
- package/src/config.ts +504 -501
- package/src/dsp.ts +95 -95
- package/src/highlight.ts +617 -617
- package/src/image.ts +791 -707
- package/src/index.ts +896 -885
- package/src/subtitleConvert.ts +63 -63
- package/src/tests/audio.test.ts +102 -102
- package/src/tests/beats.test.ts +134 -134
- package/src/tests/config.test.ts +568 -553
- package/src/tests/dsp.test.ts +24 -24
- package/src/tests/highlight.test.ts +397 -397
- package/src/tests/image.test.ts +371 -319
- package/src/tests/index.test.ts +180 -180
- package/src/tests/subtitleConvert.test.ts +23 -23
- package/src/tests/video.test.ts +652 -652
- package/src/typings.d.ts +28 -28
- package/src/video.ts +947 -947
- package/src/waitForEventLoop.ts +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import { Config } from './index';
|
|
2
|
-
export declare const defaults: {
|
|
3
|
-
fps: number;
|
|
4
|
-
spectrumWidth: string;
|
|
5
|
-
spectrumHeight: number;
|
|
6
|
-
spectrumX: string;
|
|
7
|
-
spectrumY: string;
|
|
8
|
-
spectrumRotation: string;
|
|
9
|
-
spectrumBusMargin: number;
|
|
10
|
-
spectrumOpacity: string;
|
|
11
|
-
polarX: string;
|
|
12
|
-
polarY: string;
|
|
13
|
-
polarInnerRadius: number;
|
|
14
|
-
polarMaxBarLength: number;
|
|
15
|
-
polarBarWidth: number;
|
|
16
|
-
timeouts: {
|
|
17
|
-
readVideoFrame: number;
|
|
18
|
-
waitDrain: number;
|
|
19
|
-
waitForProcessExit: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare type SpectrumEffect = 'volume' | 'smooth';
|
|
23
|
-
export declare const rotationAliasValues: readonly ["up", "down", "mirror"];
|
|
24
|
-
export declare const checkIsPercentValue: (value: string) => boolean;
|
|
25
|
-
export declare const getAudioFilePath: (config: Config) => string;
|
|
26
|
-
export declare const getAudioAutoHighlight: (config: Config) => boolean;
|
|
27
|
-
export declare const getAudioAutoHighlightCount: (config: Config) => number;
|
|
28
|
-
export declare const getBackgroundImagePath: (config: Config) => string | undefined;
|
|
29
|
-
export declare const getBackgroundVideoPaths: (config: Config) => string[] | undefined;
|
|
30
|
-
export declare const getHookVideoPath: (config: Config) => string | undefined;
|
|
31
|
-
export declare const getAutoEditVideo: (config: Config) => boolean;
|
|
32
|
-
export declare const getCameraShakeEnabled: (config: Config) => boolean;
|
|
33
|
-
export declare const
|
|
34
|
-
export declare
|
|
35
|
-
export declare type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare const
|
|
47
|
-
export declare const
|
|
48
|
-
export declare const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export declare const
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const
|
|
57
|
-
export declare const
|
|
58
|
-
export declare const
|
|
59
|
-
export declare const
|
|
60
|
-
export declare const
|
|
61
|
-
export declare const
|
|
62
|
-
export declare const
|
|
63
|
-
export declare const
|
|
64
|
-
export declare const
|
|
65
|
-
export declare const
|
|
66
|
-
export declare const
|
|
67
|
-
export declare const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export declare const
|
|
74
|
-
export declare const
|
|
75
|
-
export declare const
|
|
76
|
-
export declare const
|
|
77
|
-
export declare const
|
|
78
|
-
export declare const
|
|
79
|
-
export declare const
|
|
80
|
-
export declare const
|
|
1
|
+
import { Config } from './index';
|
|
2
|
+
export declare const defaults: {
|
|
3
|
+
fps: number;
|
|
4
|
+
spectrumWidth: string;
|
|
5
|
+
spectrumHeight: number;
|
|
6
|
+
spectrumX: string;
|
|
7
|
+
spectrumY: string;
|
|
8
|
+
spectrumRotation: string;
|
|
9
|
+
spectrumBusMargin: number;
|
|
10
|
+
spectrumOpacity: string;
|
|
11
|
+
polarX: string;
|
|
12
|
+
polarY: string;
|
|
13
|
+
polarInnerRadius: number;
|
|
14
|
+
polarMaxBarLength: number;
|
|
15
|
+
polarBarWidth: number;
|
|
16
|
+
timeouts: {
|
|
17
|
+
readVideoFrame: number;
|
|
18
|
+
waitDrain: number;
|
|
19
|
+
waitForProcessExit: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type SpectrumEffect = 'volume' | 'smooth';
|
|
23
|
+
export declare const rotationAliasValues: readonly ["up", "down", "mirror"];
|
|
24
|
+
export declare const checkIsPercentValue: (value: string) => boolean;
|
|
25
|
+
export declare const getAudioFilePath: (config: Config) => string;
|
|
26
|
+
export declare const getAudioAutoHighlight: (config: Config) => boolean;
|
|
27
|
+
export declare const getAudioAutoHighlightCount: (config: Config) => number;
|
|
28
|
+
export declare const getBackgroundImagePath: (config: Config) => string | undefined;
|
|
29
|
+
export declare const getBackgroundVideoPaths: (config: Config) => string[] | undefined;
|
|
30
|
+
export declare const getHookVideoPath: (config: Config) => string | undefined;
|
|
31
|
+
export declare const getAutoEditVideo: (config: Config) => boolean;
|
|
32
|
+
export declare const getCameraShakeEnabled: (config: Config) => boolean;
|
|
33
|
+
export declare const getCutZoomEnabled: (config: Config) => boolean;
|
|
34
|
+
export declare const getOutVideoPath: (config: Config) => string;
|
|
35
|
+
export declare type SubtitleAlignment = 'top' | 'middle' | 'bottom';
|
|
36
|
+
export declare type SubtitleRenderSpec = {
|
|
37
|
+
source: {
|
|
38
|
+
kind: 'file';
|
|
39
|
+
path: string;
|
|
40
|
+
} | {
|
|
41
|
+
kind: 'inline';
|
|
42
|
+
text: string;
|
|
43
|
+
};
|
|
44
|
+
alignment: SubtitleAlignment;
|
|
45
|
+
};
|
|
46
|
+
export declare const subtitleAlignmentToAss: (alignment: "top" | "middle" | "bottom") => number;
|
|
47
|
+
export declare const getSubtitleRenderSpec: (config: Config) => SubtitleRenderSpec | undefined;
|
|
48
|
+
export declare const getFPS: (config: Config) => number;
|
|
49
|
+
export declare const getOutputResolution: (config: Config) => {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
} | undefined;
|
|
53
|
+
export declare const getEnhanceFilters: (config: Config) => boolean;
|
|
54
|
+
export declare const getSpectrumBusMargin: () => number;
|
|
55
|
+
export declare const getSpectrumEffect: (config: Config) => "smooth" | "volume" | undefined;
|
|
56
|
+
export declare const getSpectrumWidthAbsolute: (config: Config, backgroundImageWidth: number) => number;
|
|
57
|
+
export declare const getSpectrumHeightAbsolute: (config: Config, backgroundImageHeight: number) => number;
|
|
58
|
+
export declare const getSpectrumXAbsolute: (config: Config, spectrumWidth: number, backgroundImageWidth: number) => number;
|
|
59
|
+
export declare const getSpectrumYAbsolute: (config: Config, spectrumHeight: number, backgroundImageHeight: number) => number;
|
|
60
|
+
export declare const checkIsValidRotationAlias: (aliasName: string) => boolean;
|
|
61
|
+
export declare const getSpectrumRotation: (config: Config) => "up" | "down" | "mirror";
|
|
62
|
+
export declare const getSpectrumColor: (config: Config) => string | import("./image").Color | undefined;
|
|
63
|
+
export declare const getSpectrumOpacity: (config: Config) => string;
|
|
64
|
+
export declare const getSpectrumOpacityParsed: (config: Config) => number;
|
|
65
|
+
export declare const getFfmpeg_cfr: (config: Config) => string | undefined;
|
|
66
|
+
export declare const getFfmpeg_preset: (config: Config) => string | undefined;
|
|
67
|
+
export declare const getFrame_processing_delay: (config: Config) => number | undefined;
|
|
68
|
+
export declare const getVideoTimeouts: (config: Config) => {
|
|
69
|
+
readVideoFrame: number;
|
|
70
|
+
waitDrain: number;
|
|
71
|
+
waitForProcessExit: number;
|
|
72
|
+
};
|
|
73
|
+
export declare const getPolarXAbsolute: (config: Config, backgroundImageWidth: number) => number;
|
|
74
|
+
export declare const getPolarYAbsolute: (config: Config, backgroundImageHeight: number) => number;
|
|
75
|
+
export declare const getPolarInnerRadius: (config: Config) => number;
|
|
76
|
+
export declare const getPolarMaxBarLength: (config: Config) => number;
|
|
77
|
+
export declare const getPolarBarWidth: (config: Config) => number;
|
|
78
|
+
export declare const getPolarEffect: (config: Config) => "smooth" | "volume" | undefined;
|
|
79
|
+
export declare const getPolarColor: (config: Config) => string | import("./image").Color | undefined;
|
|
80
|
+
export declare const getPolarOpacity: (config: Config) => string;
|
|
81
|
+
export declare const getPolarOpacityParsed: (config: Config) => number;
|