@jeffy-g/live-midi-types 0.1.1 → 0.2.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/dist/midi-clip.d.ts +0 -8
- package/dist/project.d.ts +21 -2
- package/package.json +1 -1
package/dist/midi-clip.d.ts
CHANGED
|
@@ -34,14 +34,6 @@ export type TMidiClipData = {
|
|
|
34
34
|
* Time adjustment for tempo mapping (in beats).
|
|
35
35
|
*/
|
|
36
36
|
adjustTimeOftempee: number;
|
|
37
|
-
/**
|
|
38
|
-
* color for visualization (Color table index)
|
|
39
|
-
*/
|
|
40
|
-
color: string;
|
|
41
|
-
/**
|
|
42
|
-
* Disabled property for the clip.
|
|
43
|
-
*/
|
|
44
|
-
disabled: boolean;
|
|
45
37
|
/**
|
|
46
38
|
* Array of extracted note events.
|
|
47
39
|
*/
|
package/dist/project.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* @file src/project.ts
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type TClipSummary<T extends Record<string, any>> = {
|
|
12
12
|
/**
|
|
13
13
|
* UI などで使用する時のために付与される ID
|
|
14
14
|
*
|
|
@@ -17,20 +17,39 @@ export type TMidiClipSummary<T extends Record<string, any>> = {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
|
+
color: string;
|
|
21
|
+
/**
|
|
22
|
+
* Disabled property for the clip.
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
20
25
|
clipName: string;
|
|
21
26
|
trackName: string;
|
|
27
|
+
annotations?: string;
|
|
22
28
|
} & T;
|
|
23
29
|
export type TTrackInfo<T extends Record<string, any>> = {
|
|
24
30
|
name: string;
|
|
25
31
|
color: string;
|
|
32
|
+
annotations?: string;
|
|
26
33
|
/**
|
|
27
34
|
* ```
|
|
28
35
|
* Record<"clipName", TMidiClipSummary>
|
|
29
36
|
* ```
|
|
30
37
|
*/
|
|
31
|
-
clips: Record<string,
|
|
38
|
+
clips: Record<string, TClipSummary<T>>;
|
|
32
39
|
};
|
|
33
40
|
export type TParsedLiveAlsProject<T extends Record<string, any>> = {
|
|
41
|
+
/**
|
|
42
|
+
* Ableton Live のプロジェクト名
|
|
43
|
+
* 通常、拡張子を除いた als file name.
|
|
44
|
+
*/
|
|
45
|
+
alsName: string;
|
|
46
|
+
/**
|
|
47
|
+
* ppq (ticks per quarter note)
|
|
48
|
+
*/
|
|
34
49
|
ticksPerQuarter: number;
|
|
50
|
+
/**
|
|
51
|
+
* Tracks in the project.
|
|
52
|
+
* NOTE: currently, this is a Midi tracks only.
|
|
53
|
+
*/
|
|
35
54
|
tracks: TTrackInfo<T>[];
|
|
36
55
|
};
|