ableton-js 2.1.4 → 2.1.8
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/song.d.ts +31 -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.8](https://github.com/leolabs/ableton.js/compare/v2.1.7...v2.1.8)
|
|
8
|
+
|
|
9
|
+
- :sparkles: Add observable props for quantization [`ffd192d`](https://github.com/leolabs/ableton.js/commit/ffd192d1590f33cdd18c2e01dbf66a0bc67878e4)
|
|
10
|
+
|
|
11
|
+
#### [v2.1.7](https://github.com/leolabs/ableton.js/compare/v2.1.6...v2.1.7)
|
|
12
|
+
|
|
13
|
+
> 3 February 2022
|
|
14
|
+
|
|
15
|
+
- :label: Improve types for Ableton's song namespace [`05d24fa`](https://github.com/leolabs/ableton.js/commit/05d24fa28512d206e3eee8d83ecdbfd2f77e4dd0)
|
|
16
|
+
|
|
17
|
+
#### [v2.1.6](https://github.com/leolabs/ableton.js/compare/v2.1.5...v2.1.6)
|
|
18
|
+
|
|
19
|
+
> 30 January 2022
|
|
20
|
+
|
|
21
|
+
- :sparkles: Return the is_grouped state of tracks as well [`15d8bca`](https://github.com/leolabs/ableton.js/commit/15d8bcad49ab0c4ea5f59aa5288e9c2954f29357)
|
|
22
|
+
|
|
23
|
+
#### [v2.1.5](https://github.com/leolabs/ableton.js/compare/v2.1.4...v2.1.5)
|
|
24
|
+
|
|
25
|
+
> 30 January 2022
|
|
26
|
+
|
|
27
|
+
- :sparkles: Return the is_foldable property of tracks by default [`0b5afdf`](https://github.com/leolabs/ableton.js/commit/0b5afdfe4bd0e3927054cf29963e29499446eb1b)
|
|
28
|
+
- :wrench: Add sponsor links [`1ea9df9`](https://github.com/leolabs/ableton.js/commit/1ea9df974e5ee6f92b3a45e2e425d8158d94bace)
|
|
29
|
+
|
|
7
30
|
#### [v2.1.4](https://github.com/leolabs/ableton.js/compare/v2.1.3...v2.1.4)
|
|
8
31
|
|
|
32
|
+
> 16 November 2021
|
|
33
|
+
|
|
9
34
|
- :sparkles: Improve gettable and settable clip properties [`#34`](https://github.com/leolabs/ableton.js/issues/34)
|
|
10
35
|
|
|
11
36
|
#### [v2.1.3](https://github.com/leolabs/ableton.js/compare/v2.1.2...v2.1.3)
|
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/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,12 @@ 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
|
+
clip_trigger_quantization: Quantization;
|
|
107
108
|
count_in_duration: number;
|
|
108
109
|
cue_points: number;
|
|
109
110
|
current_song_time: number;
|
|
@@ -113,14 +114,15 @@ export interface ObservableProperties {
|
|
|
113
114
|
is_counting_in: boolean;
|
|
114
115
|
is_playing: boolean;
|
|
115
116
|
loop_length: number;
|
|
116
|
-
loop:
|
|
117
|
+
loop: boolean;
|
|
117
118
|
loop_start: number;
|
|
118
119
|
metronome: number;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
midi_recording_quantization: RecordingQuantization;
|
|
121
|
+
nudge_down: boolean;
|
|
122
|
+
nudge_up: boolean;
|
|
123
|
+
overdub: boolean;
|
|
124
|
+
punch_in: boolean;
|
|
125
|
+
punch_out: boolean;
|
|
124
126
|
re_enable_automation_enabled: number;
|
|
125
127
|
record_mode: number;
|
|
126
128
|
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;
|