ableton-js 2.1.2 → 2.1.6

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 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.6](https://github.com/leolabs/ableton.js/compare/v2.1.5...v2.1.6)
8
+
9
+ - :sparkles: Return the is_grouped state of tracks as well [`15d8bca`](https://github.com/leolabs/ableton.js/commit/15d8bcad49ab0c4ea5f59aa5288e9c2954f29357)
10
+
11
+ #### [v2.1.5](https://github.com/leolabs/ableton.js/compare/v2.1.4...v2.1.5)
12
+
13
+ > 30 January 2022
14
+
15
+ - :sparkles: Return the is_foldable property of tracks by default [`0b5afdf`](https://github.com/leolabs/ableton.js/commit/0b5afdfe4bd0e3927054cf29963e29499446eb1b)
16
+ - :wrench: Add sponsor links [`1ea9df9`](https://github.com/leolabs/ableton.js/commit/1ea9df974e5ee6f92b3a45e2e425d8158d94bace)
17
+
18
+ #### [v2.1.4](https://github.com/leolabs/ableton.js/compare/v2.1.3...v2.1.4)
19
+
20
+ > 16 November 2021
21
+
22
+ - :sparkles: Improve gettable and settable clip properties [`#34`](https://github.com/leolabs/ableton.js/issues/34)
23
+
24
+ #### [v2.1.3](https://github.com/leolabs/ableton.js/compare/v2.1.2...v2.1.3)
25
+
26
+ > 19 September 2021
27
+
28
+ - :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)
29
+
7
30
  #### [v2.1.2](https://github.com/leolabs/ableton.js/compare/v2.1.1...v2.1.2)
8
31
 
32
+ > 19 September 2021
33
+
9
34
  - :mute: Remove verbose logging from the Python plugin [`e24bdad`](https://github.com/leolabs/ableton.js/commit/e24bdade154ba47622c7fa795f987726bec0350d)
10
35
 
11
36
  #### [v2.1.1](https://github.com/leolabs/ableton.js/compare/v2.1.0...v2.1.1)
package/index.js CHANGED
@@ -209,7 +209,7 @@ var Ableton = /** @class */ (function (_super) {
209
209
  if (eventCallback) {
210
210
  return eventCallback.forEach(function (cb) { return cb(data.data); });
211
211
  }
212
- throw new Error("Message could not be assigned to any request: " + msg);
212
+ this.emit("error", "Message could not be assigned to any request: " + msg);
213
213
  };
214
214
  /**
215
215
  * Sends a raw command to Ableton. Usually, you won't need this.
@@ -10,4 +10,4 @@ class Internal(Interface):
10
10
  return self
11
11
 
12
12
  def get_version(self, ns):
13
- return "2.1.2"
13
+ return "2.1.6"
@@ -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/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: number;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ableton-js",
3
- "version": "2.1.2",
3
+ "version": "2.1.6",
4
4
  "description": "Control Ableton Live from Node",
5
5
  "main": "index.js",
6
6
  "author": "Leo Bernard <admin@leolabs.org>",