ableton-js 2.3.1 → 2.3.2
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 +6 -0
- package/index.d.ts +6 -0
- package/index.js +8 -0
- package/midi-script/Internal.py +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ 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.3.2](https://github.com/leolabs/ableton.js/compare/v2.3.1...v2.3.2)
|
|
8
|
+
|
|
9
|
+
- :sparkles: Add a function to clear all event listeners [`809fe4e`](https://github.com/leolabs/ableton.js/commit/809fe4effb0893afb9aaac2cee8b13fb2e6fc5e5)
|
|
10
|
+
|
|
7
11
|
#### [v2.3.1](https://github.com/leolabs/ableton.js/compare/v2.3.0...v2.3.1)
|
|
8
12
|
|
|
13
|
+
> 27 March 2022
|
|
14
|
+
|
|
9
15
|
- :bug: Fix invalid import of the Timer object in Live 10 [`e003530`](https://github.com/leolabs/ableton.js/commit/e003530857191a0dc9aaacef954f7929813797a6)
|
|
10
16
|
|
|
11
17
|
#### [v2.3.0](https://github.com/leolabs/ableton.js/compare/v2.2.1-0...v2.3.0)
|
package/index.d.ts
CHANGED
|
@@ -64,6 +64,12 @@ export declare class Ableton extends EventEmitter implements ConnectionEventEmit
|
|
|
64
64
|
setProp(ns: string, nsid: number | undefined, prop: string, value: any): Promise<any>;
|
|
65
65
|
addPropListener(ns: string, nsid: number | undefined, prop: string, listener: (data: any) => any): Promise<() => Promise<boolean | undefined>>;
|
|
66
66
|
removePropListener(ns: string, nsid: number | undefined, prop: string, eventId: string, listener: (data: any) => any): Promise<boolean | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Removes all event listeners that were attached to properties.
|
|
69
|
+
* This is useful for clearing all listeners when Live
|
|
70
|
+
* disconnects, for example.
|
|
71
|
+
*/
|
|
72
|
+
removeAllPropListeners(): void;
|
|
67
73
|
sendRaw(msg: string): void;
|
|
68
74
|
isConnected(): boolean;
|
|
69
75
|
}
|
package/index.js
CHANGED
|
@@ -328,6 +328,14 @@ var Ableton = /** @class */ (function (_super) {
|
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Removes all event listeners that were attached to properties.
|
|
333
|
+
* This is useful for clearing all listeners when Live
|
|
334
|
+
* disconnects, for example.
|
|
335
|
+
*/
|
|
336
|
+
Ableton.prototype.removeAllPropListeners = function () {
|
|
337
|
+
this.eventListeners.clear();
|
|
338
|
+
};
|
|
331
339
|
Ableton.prototype.sendRaw = function (msg) {
|
|
332
340
|
var buffer = zlib_1.deflateSync(Buffer.from(msg));
|
|
333
341
|
// Based on this thread, 7500 bytes seems like a safe value
|
package/midi-script/Internal.py
CHANGED