ableton-js 2.5.0 → 2.5.3
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 +20 -0
- package/README.md +4 -4
- package/index.js +3 -1
- package/midi-script/Clip.py +1 -0
- package/midi-script/DeviceParameter.py +0 -6
- package/midi-script/Internal.py +1 -1
- package/ns/clip.d.ts +2 -0
- package/ns/device-parameter.d.ts +6 -6
- package/ns/device-parameter.js +6 -6
- package/package.json +2 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,28 @@ 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.5.3](https://github.com/leolabs/ableton.js/compare/v2.5.2...v2.5.3)
|
|
8
|
+
|
|
9
|
+
- :memo: Fix some typos in the readme [`10c8566`](https://github.com/leolabs/ableton.js/commit/10c8566758bc1a7e7ab6bc20fa269d38474e1d96)
|
|
10
|
+
- :sparkles: Add support for observing the `muted` prop of clips [`ecb604a`](https://github.com/leolabs/ableton.js/commit/ecb604a2b25aa3a064ffe5d199d44cfca0c12144)
|
|
11
|
+
|
|
12
|
+
#### [v2.5.2](https://github.com/leolabs/ableton.js/compare/v2.5.1...v2.5.2)
|
|
13
|
+
|
|
14
|
+
> 26 August 2022
|
|
15
|
+
|
|
16
|
+
- :mute: Don't emit errors when received events can't be assigned to any listener [`da32ca5`](https://github.com/leolabs/ableton.js/commit/da32ca5924df0ffb20fab981e0e98bb606cbef4a)
|
|
17
|
+
|
|
18
|
+
#### [v2.5.1](https://github.com/leolabs/ableton.js/compare/v2.5.0...v2.5.1)
|
|
19
|
+
|
|
20
|
+
> 7 August 2022
|
|
21
|
+
|
|
22
|
+
- Remove unused devDependencies [`6491216`](https://github.com/leolabs/ableton.js/commit/6491216bff5f1fed8ca20ad00105022eeb44c656)
|
|
23
|
+
- :bug: Fix AutomationState and ParameterState being incorrect [`431d377`](https://github.com/leolabs/ableton.js/commit/431d377a1526ec02369df54e1826d19901950666)
|
|
24
|
+
|
|
7
25
|
#### [v2.5.0](https://github.com/leolabs/ableton.js/compare/v2.4.0...v2.5.0)
|
|
8
26
|
|
|
27
|
+
> 8 July 2022
|
|
28
|
+
|
|
9
29
|
- adds support for getting the group_track property from a Track object [`#46`](https://github.com/leolabs/ableton.js/pull/46)
|
|
10
30
|
- Forward requested midi cc and note messages [`#48`](https://github.com/leolabs/ableton.js/pull/48)
|
|
11
31
|
- add Track's `duplicate_clip_to_arrangement` method [`#49`](https://github.com/leolabs/ableton.js/pull/49)
|
package/README.md
CHANGED
|
@@ -14,16 +14,16 @@ functions to TypeScript. If you'd like to contribute, please feel free to do so.
|
|
|
14
14
|
I've used Ableton.js to build a setlist manager called
|
|
15
15
|
[AbleSet](https://ableset.app). AbleSet allows you to easily manage and control
|
|
16
16
|
your Ableton setlists from any device, re-order songs and add notes to them, and
|
|
17
|
-
get an overview of the current of your set.
|
|
17
|
+
get an overview of the current state of your set.
|
|
18
18
|
|
|
19
|
-
[](https://ableset.app)
|
|
19
|
+
[](https://ableset.app/?utm_campaign=ableton-js)
|
|
20
20
|
|
|
21
21
|
## Prerequisites
|
|
22
22
|
|
|
23
23
|
To use this library, you'll need to install and activate the MIDI Remote Script
|
|
24
24
|
in Ableton.js. To do that, copy the `midi-script` folder of this repo to
|
|
25
|
-
Ableton's Remote Scripts folder and rename it to `AbletonJS`. The MIDI Remote
|
|
26
|
-
usually located at:
|
|
25
|
+
Ableton's Remote Scripts folder and rename it to `AbletonJS`. The MIDI Remote
|
|
26
|
+
Scripts folder is usually located at:
|
|
27
27
|
|
|
28
28
|
- **Windows:** {path to Ableton}\Resources\MIDI\Remote Scripts
|
|
29
29
|
- **macOS:** /Applications/Ableton Live {version}/Contents/App-Resources/MIDI
|
package/index.js
CHANGED
|
@@ -217,7 +217,9 @@ var Ableton = /** @class */ (function (_super) {
|
|
|
217
217
|
if (eventCallback) {
|
|
218
218
|
return eventCallback.forEach(function (cb) { return cb(data.data); });
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
if (data.uuid) {
|
|
221
|
+
this.emit("error", "Message could not be assigned to any request: " + msg);
|
|
222
|
+
}
|
|
221
223
|
};
|
|
222
224
|
/**
|
|
223
225
|
* Sends a raw command to Ableton. Usually, you won't need this.
|
package/midi-script/Clip.py
CHANGED
|
@@ -19,11 +19,5 @@ class DeviceParameter(Interface):
|
|
|
19
19
|
def __init__(self, c_instance, socket):
|
|
20
20
|
super(DeviceParameter, self).__init__(c_instance, socket)
|
|
21
21
|
|
|
22
|
-
def get_automation_state(self, ns):
|
|
23
|
-
return str(ns.automation_state)
|
|
24
|
-
|
|
25
|
-
def get_state(self, ns):
|
|
26
|
-
return str(ns.state)
|
|
27
|
-
|
|
28
22
|
def get_value_items(self, ns):
|
|
29
23
|
return list(ns.value_items)
|
package/midi-script/Internal.py
CHANGED
package/ns/clip.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export interface ObservableProperties {
|
|
|
115
115
|
is_recording: boolean;
|
|
116
116
|
loop_end: number;
|
|
117
117
|
loop_start: number;
|
|
118
|
+
muted: boolean;
|
|
118
119
|
name: string;
|
|
119
120
|
pitch_coarse: number;
|
|
120
121
|
pitch_fine: number;
|
|
@@ -134,6 +135,7 @@ export interface RawClip {
|
|
|
134
135
|
is_midi_clip: boolean;
|
|
135
136
|
start_time: number;
|
|
136
137
|
end_time: number;
|
|
138
|
+
muted: boolean;
|
|
137
139
|
}
|
|
138
140
|
/**
|
|
139
141
|
* This class represents an entry in Live's Session view matrix.
|
package/ns/device-parameter.d.ts
CHANGED
|
@@ -31,14 +31,14 @@ export interface RawDeviceParameter {
|
|
|
31
31
|
is_quantized: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare enum AutomationState {
|
|
34
|
-
None =
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
None = 0,
|
|
35
|
+
Playing = 1,
|
|
36
|
+
Overridden = 2
|
|
37
37
|
}
|
|
38
38
|
export declare enum ParameterState {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Irrelevant =
|
|
39
|
+
Enabled = 0,
|
|
40
|
+
Disabled = 1,
|
|
41
|
+
Irrelevant = 2
|
|
42
42
|
}
|
|
43
43
|
export declare class DeviceParameter extends Namespace<GettableProperties, TransformedProperties, SettableProperties, ObservableProperties> {
|
|
44
44
|
raw: RawDeviceParameter;
|
package/ns/device-parameter.js
CHANGED
|
@@ -19,15 +19,15 @@ exports.DeviceParameter = exports.ParameterState = exports.AutomationState = voi
|
|
|
19
19
|
var _1 = require(".");
|
|
20
20
|
var AutomationState;
|
|
21
21
|
(function (AutomationState) {
|
|
22
|
-
AutomationState["None"] = "
|
|
23
|
-
AutomationState["
|
|
24
|
-
AutomationState["
|
|
22
|
+
AutomationState[AutomationState["None"] = 0] = "None";
|
|
23
|
+
AutomationState[AutomationState["Playing"] = 1] = "Playing";
|
|
24
|
+
AutomationState[AutomationState["Overridden"] = 2] = "Overridden";
|
|
25
25
|
})(AutomationState = exports.AutomationState || (exports.AutomationState = {}));
|
|
26
26
|
var ParameterState;
|
|
27
27
|
(function (ParameterState) {
|
|
28
|
-
ParameterState["
|
|
29
|
-
ParameterState["
|
|
30
|
-
ParameterState["Irrelevant"] = "
|
|
28
|
+
ParameterState[ParameterState["Enabled"] = 0] = "Enabled";
|
|
29
|
+
ParameterState[ParameterState["Disabled"] = 1] = "Disabled";
|
|
30
|
+
ParameterState[ParameterState["Irrelevant"] = 2] = "Irrelevant";
|
|
31
31
|
})(ParameterState = exports.ParameterState || (exports.ParameterState = {}));
|
|
32
32
|
var DeviceParameter = /** @class */ (function (_super) {
|
|
33
33
|
__extends(DeviceParameter, _super);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ableton-js",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Control Ableton Live from Node",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Leo Bernard <admin@leolabs.org>",
|
|
@@ -32,12 +32,6 @@
|
|
|
32
32
|
"test": "jest --runInBand"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/cli": "^7.14.3",
|
|
36
|
-
"@babel/core": "^7.14.3",
|
|
37
|
-
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
38
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.14.4",
|
|
39
|
-
"@babel/preset-env": "^7.14.4",
|
|
40
|
-
"@babel/preset-typescript": "^7.13.0",
|
|
41
35
|
"@types/jest": "^26.0.23",
|
|
42
36
|
"@types/node": "^15.6.1",
|
|
43
37
|
"@types/node-uuid": "^0.0.28",
|
|
@@ -46,8 +40,7 @@
|
|
|
46
40
|
"auto-changelog": "^2.3.0",
|
|
47
41
|
"jest": "^27.0.3",
|
|
48
42
|
"jest-extended": "^0.11.5",
|
|
49
|
-
"
|
|
50
|
-
"jsdoc-to-markdown": "^7.0.1",
|
|
43
|
+
"p-all": "^3",
|
|
51
44
|
"ts-jest": "^27.0.1",
|
|
52
45
|
"ts-node": "^10.0.0",
|
|
53
46
|
"typescript": "^4.3.2"
|