@jeffy-g/live-midi-types 0.10.0 → 0.10.1
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.
|
@@ -6,114 +6,100 @@
|
|
|
6
6
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* @file live-midi-types/ESMFEventType.
|
|
9
|
+
* @file live-midi-types/src/ESMFEventType.ts
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
declare const enum ESMFEventType {
|
|
13
|
-
// Miscellaneous meta events
|
|
11
|
+
export declare const enum ESMFEventType {
|
|
14
12
|
/**
|
|
15
13
|
* ```
|
|
16
14
|
* 0x00
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
17
|
sequenceNumber = 0,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// Channel voice events
|
|
31
|
-
noteOff = 0x08, // 8
|
|
32
|
-
noteOn, // velocity === 0 ? 'noteOff' : 'noteOn'
|
|
33
|
-
noteAftertouch, // 10
|
|
18
|
+
text = 1, // 1
|
|
19
|
+
copyrightNotice = 2, // 2
|
|
20
|
+
trackName = 3, // 3
|
|
21
|
+
instrumentName = 4, // 4
|
|
22
|
+
lyrics = 5, // 5
|
|
23
|
+
marker = 6, // 6
|
|
24
|
+
cuePoint = 7, // 7
|
|
25
|
+
noteOff = 8, // 8
|
|
26
|
+
noteOn = 9, // velocity === 0 ? 'noteOff' : 'noteOn'
|
|
27
|
+
noteAftertouch = 10, // 10
|
|
34
28
|
/**
|
|
35
29
|
* means control change event type.
|
|
36
30
|
* ```
|
|
37
31
|
* [0xb0 | event.channel][controllerType:0..127][value:0..127]
|
|
38
32
|
* ```
|
|
39
33
|
*/
|
|
40
|
-
controller,
|
|
34
|
+
controller = 11, // 11
|
|
41
35
|
/**
|
|
42
36
|
* ```
|
|
43
37
|
* [0xc0 | event.channel][programNumber:0..127]
|
|
44
38
|
* ```
|
|
45
39
|
* @see {@linkcode https://midiprog.com/program-numbers/ Program Change Numbers}
|
|
46
40
|
*/
|
|
47
|
-
programChange,
|
|
41
|
+
programChange = 12, // 12
|
|
48
42
|
/**
|
|
49
43
|
* ```
|
|
50
44
|
* [0xd0 | event.channel][0..127]
|
|
51
45
|
* ```
|
|
52
46
|
*/
|
|
53
|
-
channelAftertouch
|
|
47
|
+
channelAftertouch = 13, // 13
|
|
54
48
|
/**
|
|
55
49
|
* ```
|
|
56
50
|
* [0xe0 | event.channel][LSB:0..127][MSB:0..127]
|
|
57
51
|
* ```
|
|
58
52
|
*/
|
|
59
|
-
pitchBend,
|
|
60
|
-
|
|
61
|
-
// Tempo and channel prefix meta events
|
|
53
|
+
pitchBend = 14, // 14
|
|
62
54
|
/**
|
|
63
55
|
* ```
|
|
64
56
|
* 0x20
|
|
65
57
|
* ```
|
|
66
58
|
*/
|
|
67
|
-
channelPrefix =
|
|
68
|
-
portPrefix,
|
|
59
|
+
channelPrefix = 32, //
|
|
60
|
+
portPrefix = 33, // 33
|
|
69
61
|
/**
|
|
70
62
|
* ```
|
|
71
63
|
* 0x2F
|
|
72
64
|
* ```
|
|
73
65
|
*/
|
|
74
|
-
endOfTrack =
|
|
66
|
+
endOfTrack = 47, // 47
|
|
75
67
|
/**
|
|
76
68
|
* ```
|
|
77
69
|
* 0x51
|
|
78
70
|
* ```
|
|
79
71
|
*/
|
|
80
|
-
setTempo =
|
|
81
|
-
|
|
82
|
-
// Meta utility events
|
|
72
|
+
setTempo = 81, // 81
|
|
83
73
|
/**
|
|
84
74
|
* ```
|
|
85
75
|
* 0x54
|
|
86
76
|
* ```
|
|
87
77
|
*/
|
|
88
|
-
smpteOffset =
|
|
78
|
+
smpteOffset = 84, // 84
|
|
89
79
|
/**
|
|
90
80
|
* ```
|
|
91
81
|
* 0x58
|
|
92
82
|
* ```
|
|
93
83
|
*/
|
|
94
|
-
timeSignature =
|
|
95
|
-
keySignature,
|
|
96
|
-
|
|
97
|
-
// System-exclusive events
|
|
84
|
+
timeSignature = 88, // 88
|
|
85
|
+
keySignature = 89, //
|
|
98
86
|
/**
|
|
99
87
|
* ```
|
|
100
88
|
* 0x7F
|
|
101
89
|
* ```
|
|
102
90
|
*/
|
|
103
|
-
sequencerSpecific =
|
|
91
|
+
sequencerSpecific = 127, //127
|
|
104
92
|
/**
|
|
105
93
|
* ```
|
|
106
94
|
* 0xF0
|
|
107
95
|
* ```
|
|
108
96
|
*/
|
|
109
|
-
sysEx =
|
|
97
|
+
sysEx = 240, // 240 eventTypeByte
|
|
110
98
|
/**
|
|
111
99
|
* ```
|
|
112
100
|
* 0xF7
|
|
113
101
|
* ```
|
|
114
102
|
*/
|
|
115
|
-
endSysEx =
|
|
116
|
-
|
|
117
|
-
// Miscellaneous meta events
|
|
103
|
+
endSysEx = 247, // 247 eventTypeByte
|
|
118
104
|
unknownMeta = -1,
|
|
119
105
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
3
|
+
// Copyright (C) 2026 jeffy-g <hirotom1107@gmail.com>
|
|
4
|
+
// Released under the MIT license
|
|
5
|
+
// https://opensource.org/licenses/mit-license.php
|
|
6
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @file live-midi-types/src/ESMFEventType.ts
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/midi10-smf-types.js
CHANGED
package/dist/project.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ export type TParsedAbletonLiveSet<T extends Record<string, any>> = {
|
|
|
163
163
|
*
|
|
164
164
|
* + Currently contains only MIDI tracks.
|
|
165
165
|
*/
|
|
166
|
-
tracks: TTrackInfo<T
|
|
166
|
+
tracks: Array<TTrackInfo<T>>;
|
|
167
167
|
/**
|
|
168
168
|
* Tempo automation events extracted from the master track.
|
|
169
169
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffy-g/live-midi-types",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Common TypeScript types for Ableton Live MIDI clip and event data.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,18 +16,14 @@
|
|
|
16
16
|
"require": "./dist/midi10-smf-types.js",
|
|
17
17
|
"types": "./dist/midi10-smf-types.d.ts"
|
|
18
18
|
},
|
|
19
|
-
"./smf-event-type": {
|
|
20
|
-
"import": "./dist/smf-event-type.js",
|
|
21
|
-
"require": "./dist/smf-event-type.js",
|
|
22
|
-
"types": "./dist/smf-event-type.d.ts"
|
|
23
|
-
},
|
|
24
19
|
"./ESMFEventType": {
|
|
25
|
-
"types": "./ESMFEventType.d.ts"
|
|
20
|
+
"types": "./dist/ESMFEventType.d.ts",
|
|
21
|
+
"import": "./dist/smf-event-type.js",
|
|
22
|
+
"default": "./dist/smf-event-type.js"
|
|
26
23
|
}
|
|
27
24
|
},
|
|
28
25
|
"files": [
|
|
29
|
-
"dist"
|
|
30
|
-
"ESMFEventType.d.ts"
|
|
26
|
+
"dist"
|
|
31
27
|
],
|
|
32
28
|
"author": "jeffy-g <hirotom1107@gmail.com>",
|
|
33
29
|
"license": "MIT",
|