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 | + --- 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