aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2026-04-13 18:05:51 +0000
committers-ol <s+removethis@s-ol.nu>2026-04-13 18:05:51 +0000
commita98c602ceaafb67f479e2e917035b8ae443b042e (patch)
treefe0587afa529a14e676986bf96bc34f1cb266a48 /README.md
parentexamples/linkhut: fix phase display (diff)
downloadlua-abletonlink-a98c602ceaafb67f479e2e917035b8ae443b042e.tar.gz
lua-abletonlink-a98c602ceaafb67f479e2e917035b8ae443b042e.zip
implement callbacks
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 348018a..3ffb8e3 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,12 @@ The module table has three members:
Destroys this instance.
Calling any other method on a destroyed instance causes an error.
This is automatically called in __gc.
-- `link:set_*_callback` are not currently implemented.
+- `link:pump_events()`:
+ If callbacks are installed, this needs to be called regularily to dispatch events.
+ It will return `true` if the internal event queue overran.
+- `link:set_num_peers_callback(cb)`: cb is called with number of peers (int).
+- `link:set_tempo_callback(cb)`: cb is called with new tempo (int).
+- `link:set_start_stop_callback(cb)`: cb is called with playing state (bool).
`abl_link_session_state` instances have the following methods: