ableton-js 2.1.3 → 2.1.7
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/CHANGELOG.md +25 -0
- package/midi-script/Internal.py +1 -1
- package/midi-script/Track.py +1 -1
- package/ns/clip.d.ts +46 -0
- package/ns/clip.js +26 -1
- package/ns/song.d.ts +29 -29
- package/ns/track.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,33 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v2.1.7](https://github.com/leolabs/ableton.js/compare/v2.1.6...v2.1.7)
|
|
8
|
+
|
|
9
|
+
- :label: Improve types for Ableton's song namespace [`05d24fa`](https://github.com/leolabs/ableton.js/commit/05d24fa28512d206e3eee8d83ecdbfd2f77e4dd0)
|
|
10
|
+
|
|
11
|
+
#### [v2.1.6](https://github.com/leolabs/ableton.js/compare/v2.1.5...v2.1.6)
|
|
12
|
+
|
|
13
|
+
> 30 January 2022
|
|
14
|
+
|
|
15
|
+
- :sparkles: Return the is_grouped state of tracks as well [`15d8bca`](https://github.com/leolabs/ableton.js/commit/15d8bcad49ab0c4ea5f59aa5288e9c2954f29357)
|
|
16
|
+
|
|
17
|
+
#### [v2.1.5](https://github.com/leolabs/ableton.js/compare/v2.1.4...v2.1.5)
|
|
18
|
+
|
|
19
|
+
> 30 January 2022
|
|
20
|
+
|
|
21
|
+
- :sparkles: Return the is_foldable property of tracks by default [`0b5afdf`](https://github.com/leolabs/ableton.js/commit/0b5afdfe4bd0e3927054cf29963e29499446eb1b)
|
|
22
|
+
- :wrench: Add sponsor links [`1ea9df9`](https://github.com/leolabs/ableton.js/commit/1ea9df974e5ee6f92b3a45e2e425d8158d94bace)
|
|
23
|
+
|
|
24
|
+
#### [v2.1.4](https://github.com/leolabs/ableton.js/compare/v2.1.3...v2.1.4)
|
|
25
|
+
|
|
26
|
+
> 16 November 2021
|
|
27
|
+
|
|
28
|
+
- :sparkles: Improve gettable and settable clip properties [`#34`](https://github.com/leolabs/ableton.js/issues/34)
|
|
29
|
+
|
|
7
30
|
#### [v2.1.3](https://github.com/leolabs/ableton.js/compare/v2.1.2...v2.1.3)
|
|
8
31
|
|
|
32
|
+
> 19 September 2021
|
|
33
|
+
|
|
9
34
|
- :sparkles: Emit an error instead of throwing it when an incoming message could not be handled [`516954a`](https://github.com/leolabs/ableton.js/commit/516954a912e39d1193b3100433207c91eab58d8a)
|
|
10
35
|
|
|
11
36
|
#### [v2.1.2](https://github.com/leolabs/ableton.js/compare/v2.1.1...v2.1.2)
|
package/midi-script/Internal.py
CHANGED
package/midi-script/Track.py
CHANGED
|
@@ -11,7 +11,7 @@ class Track(Interface):
|
|
|
11
11
|
return None
|
|
12
12
|
|
|
13
13
|
track_id = Interface.save_obj(track)
|
|
14
|
-
return {"id": track_id, "name": track.name, "color": track.color}
|
|
14
|
+
return {"id": track_id, "name": track.name, "color": track.color, "is_foldable": track.is_foldable, "is_grouped": track.is_grouped}
|
|
15
15
|
|
|
16
16
|
def __init__(self, c_instance, socket):
|
|
17
17
|
super(Track, self).__init__(c_instance, socket)
|
package/ns/clip.d.ts
CHANGED
|
@@ -11,6 +11,29 @@ export declare enum WarpMode {
|
|
|
11
11
|
Complex = 4,
|
|
12
12
|
ComplexPro = 6
|
|
13
13
|
}
|
|
14
|
+
export declare enum LaunchMode {
|
|
15
|
+
Trigger = 0,
|
|
16
|
+
Gate = 1,
|
|
17
|
+
Toggle = 2,
|
|
18
|
+
Repeat = 3
|
|
19
|
+
}
|
|
20
|
+
export declare enum LaunchQuantization {
|
|
21
|
+
QGlobal = 0,
|
|
22
|
+
QNone = 1,
|
|
23
|
+
Q8Bars = 2,
|
|
24
|
+
Q4Bars = 3,
|
|
25
|
+
Q2Bars = 4,
|
|
26
|
+
QBar = 5,
|
|
27
|
+
QHalf = 6,
|
|
28
|
+
QHalfTriplet = 7,
|
|
29
|
+
QQuarter = 8,
|
|
30
|
+
QQuarterTriplet = 9,
|
|
31
|
+
QEighth = 10,
|
|
32
|
+
QEighthTriplet = 11,
|
|
33
|
+
QSixteenth = 12,
|
|
34
|
+
QSixteenthTriplet = 13,
|
|
35
|
+
QThirtySecond = 14
|
|
36
|
+
}
|
|
14
37
|
export interface GettableProperties {
|
|
15
38
|
available_warp_modes: WarpMode[];
|
|
16
39
|
color: number;
|
|
@@ -28,6 +51,8 @@ export interface GettableProperties {
|
|
|
28
51
|
is_playing: boolean;
|
|
29
52
|
is_recording: boolean;
|
|
30
53
|
is_triggered: boolean;
|
|
54
|
+
launch_mode: LaunchMode;
|
|
55
|
+
launch_quantization: LaunchQuantization;
|
|
31
56
|
length: number;
|
|
32
57
|
loop_end: number;
|
|
33
58
|
loop_start: number;
|
|
@@ -45,6 +70,7 @@ export interface GettableProperties {
|
|
|
45
70
|
signature_numerator: number;
|
|
46
71
|
start_marker: number;
|
|
47
72
|
start_time: number;
|
|
73
|
+
velocity_amount: number;
|
|
48
74
|
warp_mode: WarpMode;
|
|
49
75
|
warping: boolean;
|
|
50
76
|
will_record_on_start: boolean;
|
|
@@ -56,6 +82,26 @@ export interface TransformedProperties {
|
|
|
56
82
|
export interface SettableProperties {
|
|
57
83
|
name: string;
|
|
58
84
|
color: Color | number;
|
|
85
|
+
color_index: number;
|
|
86
|
+
end_marker: number;
|
|
87
|
+
gain: number;
|
|
88
|
+
is_playing: boolean;
|
|
89
|
+
launch_mode: LaunchMode;
|
|
90
|
+
launch_quantization: LaunchQuantization;
|
|
91
|
+
loop_end: number;
|
|
92
|
+
loop_start: number;
|
|
93
|
+
looping: boolean;
|
|
94
|
+
muted: boolean;
|
|
95
|
+
pitch_coarse: number;
|
|
96
|
+
pitch_fine: number;
|
|
97
|
+
position: number;
|
|
98
|
+
ram_mode: boolean;
|
|
99
|
+
signature_denominator: number;
|
|
100
|
+
signature_numerator: number;
|
|
101
|
+
start_marker: number;
|
|
102
|
+
velocity_amount: number;
|
|
103
|
+
warp_mode: WarpMode;
|
|
104
|
+
warping: boolean;
|
|
59
105
|
}
|
|
60
106
|
export interface ObservableProperties {
|
|
61
107
|
color_index: number;
|
package/ns/clip.js
CHANGED
|
@@ -51,7 +51,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.Clip = exports.WarpMode = void 0;
|
|
54
|
+
exports.Clip = exports.LaunchQuantization = exports.LaunchMode = exports.WarpMode = void 0;
|
|
55
55
|
var _1 = require(".");
|
|
56
56
|
var color_1 = require("../util/color");
|
|
57
57
|
var note_1 = require("../util/note");
|
|
@@ -64,6 +64,31 @@ var WarpMode;
|
|
|
64
64
|
WarpMode[WarpMode["Complex"] = 4] = "Complex";
|
|
65
65
|
WarpMode[WarpMode["ComplexPro"] = 6] = "ComplexPro";
|
|
66
66
|
})(WarpMode = exports.WarpMode || (exports.WarpMode = {}));
|
|
67
|
+
var LaunchMode;
|
|
68
|
+
(function (LaunchMode) {
|
|
69
|
+
LaunchMode[LaunchMode["Trigger"] = 0] = "Trigger";
|
|
70
|
+
LaunchMode[LaunchMode["Gate"] = 1] = "Gate";
|
|
71
|
+
LaunchMode[LaunchMode["Toggle"] = 2] = "Toggle";
|
|
72
|
+
LaunchMode[LaunchMode["Repeat"] = 3] = "Repeat";
|
|
73
|
+
})(LaunchMode = exports.LaunchMode || (exports.LaunchMode = {}));
|
|
74
|
+
var LaunchQuantization;
|
|
75
|
+
(function (LaunchQuantization) {
|
|
76
|
+
LaunchQuantization[LaunchQuantization["QGlobal"] = 0] = "QGlobal";
|
|
77
|
+
LaunchQuantization[LaunchQuantization["QNone"] = 1] = "QNone";
|
|
78
|
+
LaunchQuantization[LaunchQuantization["Q8Bars"] = 2] = "Q8Bars";
|
|
79
|
+
LaunchQuantization[LaunchQuantization["Q4Bars"] = 3] = "Q4Bars";
|
|
80
|
+
LaunchQuantization[LaunchQuantization["Q2Bars"] = 4] = "Q2Bars";
|
|
81
|
+
LaunchQuantization[LaunchQuantization["QBar"] = 5] = "QBar";
|
|
82
|
+
LaunchQuantization[LaunchQuantization["QHalf"] = 6] = "QHalf";
|
|
83
|
+
LaunchQuantization[LaunchQuantization["QHalfTriplet"] = 7] = "QHalfTriplet";
|
|
84
|
+
LaunchQuantization[LaunchQuantization["QQuarter"] = 8] = "QQuarter";
|
|
85
|
+
LaunchQuantization[LaunchQuantization["QQuarterTriplet"] = 9] = "QQuarterTriplet";
|
|
86
|
+
LaunchQuantization[LaunchQuantization["QEighth"] = 10] = "QEighth";
|
|
87
|
+
LaunchQuantization[LaunchQuantization["QEighthTriplet"] = 11] = "QEighthTriplet";
|
|
88
|
+
LaunchQuantization[LaunchQuantization["QSixteenth"] = 12] = "QSixteenth";
|
|
89
|
+
LaunchQuantization[LaunchQuantization["QSixteenthTriplet"] = 13] = "QSixteenthTriplet";
|
|
90
|
+
LaunchQuantization[LaunchQuantization["QThirtySecond"] = 14] = "QThirtySecond";
|
|
91
|
+
})(LaunchQuantization = exports.LaunchQuantization || (exports.LaunchQuantization = {}));
|
|
67
92
|
/**
|
|
68
93
|
* This class represents an entry in Live's Session view matrix.
|
|
69
94
|
*/
|
package/ns/song.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import { CuePoint, RawCuePoint } from "./cue-point";
|
|
|
5
5
|
import { SongView } from "./song-view";
|
|
6
6
|
import { Scene, RawScene } from "./scene";
|
|
7
7
|
export interface GettableProperties {
|
|
8
|
-
arrangement_overdub:
|
|
8
|
+
arrangement_overdub: boolean;
|
|
9
9
|
back_to_arranger: number;
|
|
10
|
-
can_capture_midi:
|
|
11
|
-
can_jump_to_next_cue:
|
|
12
|
-
can_jump_to_prev_cue:
|
|
13
|
-
can_redo:
|
|
14
|
-
can_undo:
|
|
10
|
+
can_capture_midi: boolean;
|
|
11
|
+
can_jump_to_next_cue: boolean;
|
|
12
|
+
can_jump_to_prev_cue: boolean;
|
|
13
|
+
can_redo: boolean;
|
|
14
|
+
can_undo: boolean;
|
|
15
15
|
clip_trigger_quantization: Quantization;
|
|
16
16
|
count_in_duration: number;
|
|
17
17
|
cue_points: RawCuePoint[];
|
|
@@ -22,17 +22,17 @@ export interface GettableProperties {
|
|
|
22
22
|
is_counting_in: boolean;
|
|
23
23
|
is_playing: boolean;
|
|
24
24
|
last_event_time: number;
|
|
25
|
-
loop:
|
|
25
|
+
loop: boolean;
|
|
26
26
|
loop_length: number;
|
|
27
27
|
loop_start: number;
|
|
28
28
|
master_track: RawTrack;
|
|
29
29
|
metronome: number;
|
|
30
30
|
midi_recording_quantization: RecordingQuantization;
|
|
31
|
-
nudge_down:
|
|
32
|
-
nudge_up:
|
|
33
|
-
overdub:
|
|
34
|
-
punch_in:
|
|
35
|
-
punch_out:
|
|
31
|
+
nudge_down: boolean;
|
|
32
|
+
nudge_up: boolean;
|
|
33
|
+
overdub: boolean;
|
|
34
|
+
punch_in: boolean;
|
|
35
|
+
punch_out: boolean;
|
|
36
36
|
re_enable_automation_enabled: number;
|
|
37
37
|
record_mode: number;
|
|
38
38
|
return_tracks: RawTrack[];
|
|
@@ -60,7 +60,7 @@ export interface TransformedProperties {
|
|
|
60
60
|
scenes: Scene[];
|
|
61
61
|
}
|
|
62
62
|
export interface SettableProperties {
|
|
63
|
-
arrangement_overdub:
|
|
63
|
+
arrangement_overdub: boolean;
|
|
64
64
|
back_to_arranger: number;
|
|
65
65
|
clip_trigger_quantization: Quantization;
|
|
66
66
|
count_in_duration: number;
|
|
@@ -71,17 +71,17 @@ export interface SettableProperties {
|
|
|
71
71
|
is_counting_in: boolean;
|
|
72
72
|
is_playing: boolean;
|
|
73
73
|
last_event_time: number;
|
|
74
|
-
loop:
|
|
74
|
+
loop: boolean;
|
|
75
75
|
loop_length: number;
|
|
76
76
|
loop_start: number;
|
|
77
77
|
master_track: number;
|
|
78
78
|
metronome: number;
|
|
79
79
|
midi_recording_quantization: RecordingQuantization;
|
|
80
|
-
nudge_down:
|
|
81
|
-
nudge_up:
|
|
82
|
-
overdub:
|
|
83
|
-
punch_in:
|
|
84
|
-
punch_out:
|
|
80
|
+
nudge_down: boolean;
|
|
81
|
+
nudge_up: boolean;
|
|
82
|
+
overdub: boolean;
|
|
83
|
+
punch_in: boolean;
|
|
84
|
+
punch_out: boolean;
|
|
85
85
|
re_enable_automation_enabled: number;
|
|
86
86
|
record_mode: number;
|
|
87
87
|
return_tracks: number;
|
|
@@ -99,11 +99,11 @@ export interface SettableProperties {
|
|
|
99
99
|
visible_tracks: number;
|
|
100
100
|
}
|
|
101
101
|
export interface ObservableProperties {
|
|
102
|
-
arrangement_overdub:
|
|
102
|
+
arrangement_overdub: boolean;
|
|
103
103
|
back_to_arranger: number;
|
|
104
|
-
can_capture_midi:
|
|
105
|
-
can_jump_to_next_cue:
|
|
106
|
-
can_jump_to_prev_cue:
|
|
104
|
+
can_capture_midi: boolean;
|
|
105
|
+
can_jump_to_next_cue: boolean;
|
|
106
|
+
can_jump_to_prev_cue: boolean;
|
|
107
107
|
count_in_duration: number;
|
|
108
108
|
cue_points: number;
|
|
109
109
|
current_song_time: number;
|
|
@@ -113,14 +113,14 @@ export interface ObservableProperties {
|
|
|
113
113
|
is_counting_in: boolean;
|
|
114
114
|
is_playing: boolean;
|
|
115
115
|
loop_length: number;
|
|
116
|
-
loop:
|
|
116
|
+
loop: boolean;
|
|
117
117
|
loop_start: number;
|
|
118
118
|
metronome: number;
|
|
119
|
-
nudge_down:
|
|
120
|
-
nudge_up:
|
|
121
|
-
overdub:
|
|
122
|
-
punch_in:
|
|
123
|
-
punch_out:
|
|
119
|
+
nudge_down: boolean;
|
|
120
|
+
nudge_up: boolean;
|
|
121
|
+
overdub: boolean;
|
|
122
|
+
punch_in: boolean;
|
|
123
|
+
punch_out: boolean;
|
|
124
124
|
re_enable_automation_enabled: number;
|
|
125
125
|
record_mode: number;
|
|
126
126
|
return_tracks: RawTrack[];
|
package/ns/track.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface GettableProperties {
|
|
|
19
19
|
current_output_sub_routing: string;
|
|
20
20
|
devices: RawDevice[];
|
|
21
21
|
fired_slot_index: number;
|
|
22
|
-
fold_state:
|
|
22
|
+
fold_state: boolean;
|
|
23
23
|
group_track: RawTrack | null;
|
|
24
24
|
has_audio_input: boolean;
|
|
25
25
|
has_audio_output: boolean;
|
|
@@ -110,6 +110,8 @@ export interface RawTrack {
|
|
|
110
110
|
id: number;
|
|
111
111
|
name: string;
|
|
112
112
|
color: number;
|
|
113
|
+
is_foldable: boolean;
|
|
114
|
+
is_grouped: boolean;
|
|
113
115
|
}
|
|
114
116
|
export declare class Track extends Namespace<GettableProperties, TransformedProperties, SettableProperties, ObservableProperties> {
|
|
115
117
|
raw: RawTrack;
|