From 2c5ecee5743a62c9ab6fbb20baeaddccd717337d Mon Sep 17 00:00:00 2001 From: ltackett Date: Sat, 15 Feb 2025 22:30:22 -0800 Subject: [PATCH 1/2] Adds handler for /live/application/view/scroll_view --- abletonosc/application.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abletonosc/application.py b/abletonosc/application.py index 6c058f6..608520d 100644 --- a/abletonosc/application.py +++ b/abletonosc/application.py @@ -18,3 +18,8 @@ def get_average_process_usage(_) -> Tuple: return application.average_process_usage, self.osc_server.add_handler("/live/application/get/average_process_usage", get_average_process_usage) self.osc_server.send("/live/application/get/average_process_usage") + + def scroll_view(params): + application = Live.Application.get_application() + application.view.scroll_view(params[0], '', False) + self.osc_server.add_handler("/live/application/view/scroll_view", scroll_view) \ No newline at end of file From 235075fe8e71df07617ea0817e11a71bf7b78c17 Mon Sep 17 00:00:00 2001 From: ltackett Date: Sat, 15 Feb 2025 22:43:25 -0800 Subject: [PATCH 2/2] Update README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c2645c5..4d81f45 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,12 @@ These messages are sent to the client automatically when the application state c | /live/startup | | Sent to the client application when AbletonOSC is started | | /live/error | error_msg | Sent to the client application when an error occurs. For more diagnostics, see logs/abletonosc.log | +### Application view + +| Address | Query params | Response params | Description | +|:-----------------------------------|:--------------|:----------------|:--------------------| +| /live/application/view/scroll_view | direction_int | | Navigate the cursor | + ---