ableton-js 3.2.7 → 3.2.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 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
+ #### [v3.2.8](https://github.com/leolabs/ableton.js/compare/v3.2.7...v3.2.8)
8
+
9
+ - :wrench: Make fast polling optional, in an attempt to fix flaky behavior in Live 11.3 [`17f1634`](https://github.com/leolabs/ableton.js/commit/17f16342896f5f1989ef7f5147a7b3fce1e924fa)
10
+
7
11
  #### [v3.2.7](https://github.com/leolabs/ableton.js/compare/v3.2.6...v3.2.7)
8
12
 
13
+ > 6 July 2023
14
+
9
15
  - :white_check_mark: Switch from Jest to Vitest for faster testing [`d2af8b7`](https://github.com/leolabs/ableton.js/commit/d2af8b756ff9dfe2d76927d2695fba55226ab480)
10
16
  - :mute: Don't log the result of setting the client port [`2206ab7`](https://github.com/leolabs/ableton.js/commit/2206ab74afc9d2388059d88a863dc8e5eed5a32f)
11
17
  - :sparkles: When client is already starting or started, return a promise that waits for a connection [`97c2e1a`](https://github.com/leolabs/ableton.js/commit/97c2e1a81cbe3e8e7ee2f8ef7d349903b728e67e)
@@ -1,7 +1,7 @@
1
1
  from __future__ import absolute_import
2
2
 
3
3
  from .version import version
4
- from .Config import DEBUG
4
+ from .Config import DEBUG, FAST_POLLING
5
5
  from .Socket import Socket
6
6
  from .Interface import Interface
7
7
  from .Application import Application
@@ -51,12 +51,14 @@ class AbletonJS(ControlSurface):
51
51
  "clip": Clip(c_instance, self.socket),
52
52
  }
53
53
 
54
- self.recv_loop = Live.Base.Timer(
55
- callback=self.socket.process, interval=10, repeat=True)
56
-
57
- self.recv_loop.start()
58
54
  self.tick()
59
55
 
56
+ if FAST_POLLING:
57
+ self.recv_loop = Live.Base.Timer(
58
+ callback=self.socket.process, interval=10, repeat=True)
59
+
60
+ self.recv_loop.start()
61
+
60
62
  def tick(self):
61
63
  self.socket.process()
62
64
  self.schedule_message(1, self.tick)
@@ -76,7 +78,8 @@ class AbletonJS(ControlSurface):
76
78
 
77
79
  def disconnect(self):
78
80
  self.log_message("Disconnecting")
79
- self.recv_loop.stop()
81
+ if FAST_POLLING:
82
+ self.recv_loop.stop()
80
83
  self.socket.send("disconnect")
81
84
  self.socket.shutdown()
82
85
  Interface.listeners.clear()
@@ -1 +1,3 @@
1
1
  DEBUG = False
2
+
3
+ FAST_POLLING = False
@@ -1 +1 @@
1
- version = "3.2.7"
1
+ version = "3.2.8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ableton-js",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "description": "Control Ableton Live from Node",
5
5
  "main": "index.js",
6
6
  "author": "Leo Bernard <admin@leolabs.org>",