@open-audio-stack/core 0.0.2 → 0.0.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/README.md +30 -6
- package/build/Config.d.ts +1 -1
- package/build/Config.js +1 -1
- package/build/FileSystem.d.ts +1 -1
- package/build/FileSystem.js +1 -1
- package/build/Registry.d.ts +1 -1
- package/build/Registry.js +1 -1
- package/build/index-browser.js +1 -0
- package/build/types/Package.d.ts +2 -0
- package/build/types/Plugin.d.ts +1 -1
- package/build/types/PluginFormat.d.ts +4 -1
- package/build/types/PluginFormat.js +18 -0
- package/build/types/Preset.d.ts +1 -1
- package/build/types/Project.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
# open-audio-stack-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Common methods package shared across Open Audio Stack compatible registries, command-line tools, apps and websites for handling installing DAW VST plugin dependencies.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Config - Get types, formats, values, paths and urls.
|
|
10
|
+
- FileSystem - Perform operations on directories and files.
|
|
11
|
+
- Registry - Create an audio registry with packages and files.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
To install the common package, run the command:
|
|
16
|
+
|
|
17
|
+
npm install @open-audio-stack/core
|
|
18
|
+
|
|
19
|
+
Import the package using:
|
|
20
|
+
|
|
21
|
+
import { Registry } from '@open-audio-stack/core';
|
|
22
|
+
|
|
23
|
+
Then use the available methods as normal.
|
|
24
|
+
|
|
25
|
+
## Developer information
|
|
26
|
+
|
|
27
|
+
Open Audio Stack Core was built using:
|
|
4
28
|
|
|
5
29
|
- NodeJS 20.x
|
|
6
30
|
- TypeScript 5.x
|
|
@@ -8,13 +32,13 @@ Open-source audio plugin management software using:
|
|
|
8
32
|
- prettier 3.x
|
|
9
33
|
- vitest 1.x
|
|
10
34
|
|
|
11
|
-
##
|
|
35
|
+
## Developer installation
|
|
12
36
|
|
|
13
|
-
|
|
37
|
+
To install, build and run code locally, first install dependencies:
|
|
14
38
|
|
|
15
39
|
npm install
|
|
16
40
|
|
|
17
|
-
##
|
|
41
|
+
## Developer usage
|
|
18
42
|
|
|
19
43
|
Run dev commands using:
|
|
20
44
|
|
|
@@ -23,11 +47,11 @@ Run dev commands using:
|
|
|
23
47
|
npm run dev
|
|
24
48
|
npm test
|
|
25
49
|
|
|
26
|
-
Create a build using:
|
|
50
|
+
Create a production build using:
|
|
27
51
|
|
|
28
52
|
npm run build
|
|
29
53
|
|
|
30
|
-
##
|
|
54
|
+
## Developer deployment
|
|
31
55
|
|
|
32
56
|
This package is versioned using git tags:
|
|
33
57
|
|
package/build/Config.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { PresetType } from './types/PresetType.js';
|
|
|
10
10
|
import { ProjectFormat } from './types/ProjectFormat.js';
|
|
11
11
|
import { ProjectType } from './types/ProjectType.js';
|
|
12
12
|
import { SystemType } from './types/SystemType.js';
|
|
13
|
-
export
|
|
13
|
+
export declare class Config {
|
|
14
14
|
config: ConfigInterface;
|
|
15
15
|
constructor(config: ConfigInterface);
|
|
16
16
|
get(): ConfigInterface;
|
package/build/Config.js
CHANGED
|
@@ -9,7 +9,7 @@ import { presetTypes } from './types/PresetType.js';
|
|
|
9
9
|
import { projectFormats } from './types/ProjectFormat.js';
|
|
10
10
|
import { projectTypes } from './types/ProjectType.js';
|
|
11
11
|
import { systemTypes } from './types/SystemType.js';
|
|
12
|
-
export
|
|
12
|
+
export class Config {
|
|
13
13
|
config;
|
|
14
14
|
constructor(config) {
|
|
15
15
|
this.config = config;
|
package/build/FileSystem.d.ts
CHANGED
package/build/FileSystem.js
CHANGED
package/build/Registry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PackageInterface, PackageValidationError, PackageVersions, PackageVersionType } from './types/Package.js';
|
|
2
2
|
import { RegistryInterface } from './types/Registry.js';
|
|
3
|
-
export
|
|
3
|
+
export declare class Registry {
|
|
4
4
|
registry: RegistryInterface;
|
|
5
5
|
constructor(registry: RegistryInterface);
|
|
6
6
|
packageAdd(slug: string): {
|
package/build/Registry.js
CHANGED
package/build/index-browser.js
CHANGED
package/build/types/Package.d.ts
CHANGED
|
@@ -11,10 +11,12 @@ export interface PackageVersions {
|
|
|
11
11
|
[version: string]: PackageVersionType;
|
|
12
12
|
}
|
|
13
13
|
export interface PackageVersion {
|
|
14
|
+
audio: string;
|
|
14
15
|
author: string;
|
|
15
16
|
changes: string;
|
|
16
17
|
date: string;
|
|
17
18
|
description: string;
|
|
19
|
+
image: string;
|
|
18
20
|
license: License;
|
|
19
21
|
name: string;
|
|
20
22
|
tags: string[];
|
package/build/types/Plugin.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export declare enum PluginFormat {
|
|
|
3
3
|
AvidAudioExtension = "aax",
|
|
4
4
|
CleverAudioPlugin = "clap",
|
|
5
5
|
LADSPAVersion2 = "lv2",
|
|
6
|
+
LinuxStandalone = "elf",
|
|
7
|
+
MacStandalone = "app",
|
|
6
8
|
RealTimeAudioSuite = "rta",
|
|
7
9
|
SoundFont2 = "sf2",
|
|
8
10
|
SFZ = "sfz",
|
|
@@ -10,7 +12,8 @@ export declare enum PluginFormat {
|
|
|
10
12
|
VSTLinux = "so",
|
|
11
13
|
VSTMac = "vst",
|
|
12
14
|
VSTWin = "dll",
|
|
13
|
-
VST3 = "vst3"
|
|
15
|
+
VST3 = "vst3",
|
|
16
|
+
WinStandalone = "exe"
|
|
14
17
|
}
|
|
15
18
|
export interface PluginFormatOption {
|
|
16
19
|
description: string;
|
|
@@ -4,6 +4,8 @@ export var PluginFormat;
|
|
|
4
4
|
PluginFormat["AvidAudioExtension"] = "aax";
|
|
5
5
|
PluginFormat["CleverAudioPlugin"] = "clap";
|
|
6
6
|
PluginFormat["LADSPAVersion2"] = "lv2";
|
|
7
|
+
PluginFormat["LinuxStandalone"] = "elf";
|
|
8
|
+
PluginFormat["MacStandalone"] = "app";
|
|
7
9
|
PluginFormat["RealTimeAudioSuite"] = "rta";
|
|
8
10
|
PluginFormat["SoundFont2"] = "sf2";
|
|
9
11
|
PluginFormat["SFZ"] = "sfz";
|
|
@@ -12,6 +14,7 @@ export var PluginFormat;
|
|
|
12
14
|
PluginFormat["VSTMac"] = "vst";
|
|
13
15
|
PluginFormat["VSTWin"] = "dll";
|
|
14
16
|
PluginFormat["VST3"] = "vst3";
|
|
17
|
+
PluginFormat["WinStandalone"] = "exe";
|
|
15
18
|
})(PluginFormat || (PluginFormat = {}));
|
|
16
19
|
export const pluginFormats = [
|
|
17
20
|
{
|
|
@@ -39,6 +42,16 @@ export const pluginFormats = [
|
|
|
39
42
|
value: PluginFormat.LADSPAVersion2,
|
|
40
43
|
name: 'LADSPA Version 2',
|
|
41
44
|
},
|
|
45
|
+
{
|
|
46
|
+
description: 'Linux standalone application.',
|
|
47
|
+
value: PluginFormat.LinuxStandalone,
|
|
48
|
+
name: 'Linux Standalone',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: 'MacOS standalone application.',
|
|
52
|
+
value: PluginFormat.MacStandalone,
|
|
53
|
+
name: 'MacOS Standalone',
|
|
54
|
+
},
|
|
42
55
|
{
|
|
43
56
|
description: 'Widely used format for sound samples in musical instruments.',
|
|
44
57
|
value: PluginFormat.SoundFont2,
|
|
@@ -74,4 +87,9 @@ export const pluginFormats = [
|
|
|
74
87
|
value: PluginFormat.VST3,
|
|
75
88
|
name: 'Virtual Studio Technology 3',
|
|
76
89
|
},
|
|
90
|
+
{
|
|
91
|
+
description: 'Windows standalone application.',
|
|
92
|
+
value: PluginFormat.WinStandalone,
|
|
93
|
+
name: 'Windows Standalone',
|
|
94
|
+
},
|
|
77
95
|
];
|
package/build/types/Preset.d.ts
CHANGED
package/build/types/Project.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface ProjectInterface extends PackageVersion {
|
|
|
8
8
|
type: ProjectType;
|
|
9
9
|
}
|
|
10
10
|
export interface ProjectFile extends FileInterface {
|
|
11
|
-
|
|
11
|
+
contains: ProjectFormat[];
|
|
12
12
|
}
|
|
13
13
|
export interface ProjectPlugins {
|
|
14
14
|
[slug: string]: string;
|