@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.d.ts
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
- // Text meta events
22
- text, // 1
23
- copyrightNotice, // 2
24
- trackName, // 3
25
- instrumentName, // 4
26
- lyrics, // 5
27
- marker, // 6
28
- cuePoint, // 7
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, // 11
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, // 12
41
+ programChange = 12, // 12
48
42
  /**
49
43
  * ```
50
44
  * [0xd0 | event.channel][0..127]
51
45
  * ```
52
46
  */
53
- channelAftertouch,// 13
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, // 14
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 = 0x20, //
68
- portPrefix, // 33
59
+ channelPrefix = 32, //
60
+ portPrefix = 33, // 33
69
61
  /**
70
62
  * ```
71
63
  * 0x2F
72
64
  * ```
73
65
  */
74
- endOfTrack = 0x2F, // 47
66
+ endOfTrack = 47, // 47
75
67
  /**
76
68
  * ```
77
69
  * 0x51
78
70
  * ```
79
71
  */
80
- setTempo = 0x51, // 81
81
-
82
- // Meta utility events
72
+ setTempo = 81, // 81
83
73
  /**
84
74
  * ```
85
75
  * 0x54
86
76
  * ```
87
77
  */
88
- smpteOffset = 0x54, // 84
78
+ smpteOffset = 84, // 84
89
79
  /**
90
80
  * ```
91
81
  * 0x58
92
82
  * ```
93
83
  */
94
- timeSignature = 0x58, // 88
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 = 0x7F,//127
91
+ sequencerSpecific = 127, //127
104
92
  /**
105
93
  * ```
106
94
  * 0xF0
107
95
  * ```
108
96
  */
109
- sysEx = 0xF0, // 240 eventTypeByte
97
+ sysEx = 240, // 240 eventTypeByte
110
98
  /**
111
99
  * ```
112
100
  * 0xF7
113
101
  * ```
114
102
  */
115
- endSysEx = 0xF7,// 247 eventTypeByte
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
@@ -12,4 +12,4 @@ export * from "./midi-event.js";
12
12
  export * from "./midi-clip.js";
13
13
  export * from "./project.js";
14
14
  export * from "./ableton-colors.js";
15
- export declare const version = "v0.10.0";
15
+ export declare const version = "v0.10.1";
package/dist/index.js CHANGED
@@ -12,4 +12,4 @@ export * from "./midi-event.js";
12
12
  export * from "./midi-clip.js";
13
13
  export * from "./project.js";
14
14
  export * from "./ableton-colors.js";
15
- export const version = "v0.10.0";
15
+ export const version = "v0.10.1";
@@ -10,7 +10,7 @@
10
10
  /**
11
11
  * @file src/midi10-smf-types.ts
12
12
  */
13
- /// <reference path="../ESMFEventType.d.ts" preserve="true" />
13
+ import type { ESMFEventType } from "./ESMFEventType.ts";
14
14
  export interface MidiHeader {
15
15
  format: 0 | 1 | 2;
16
16
  numTracks: number;
@@ -7,7 +7,6 @@
7
7
  * Copyright (c) 2025 jeffy-g
8
8
  * Released under the MIT license.
9
9
  */
10
- /// <reference path="../ESMFEventType.d.ts" preserve="true"/>
11
10
  /**
12
11
  * @file src/midi10-smf-types.ts
13
12
  */
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.0",
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",