summaryrefslogtreecommitdiff
path: root/share/web_surfaces/shared/control.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/web_surfaces/shared/control.js')
-rw-r--r--share/web_surfaces/shared/control.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/web_surfaces/shared/control.js b/share/web_surfaces/shared/control.js
index 94ffa0a83d..13dbdfa695 100644
--- a/share/web_surfaces/shared/control.js
+++ b/share/web_surfaces/shared/control.js
@@ -25,6 +25,14 @@ export class ControlMixin {
async getTempo () {
return await this._sendRecvSingle(ANode.TEMPO);
}
+
+ async getTransportRoll () {
+ return await this._sendRecvSingle(ANode.TRANSPORT_ROLL);
+ }
+
+ async getRecordState () {
+ return await this._sendRecvSingle(ANode.RECORD_STATE);
+ }
async getStripGain (stripId) {
return await this._sendRecvSingle(ANode.STRIP_GAIN, [stripId]);
@@ -50,6 +58,14 @@ export class ControlMixin {
this._send(ANode.TEMPO, [], [bpm]);
}
+ setTransportRoll (value) {
+ this._send(ANode.TRANSPORT_ROLL, [], [value]);
+ }
+
+ setRecordState (value) {
+ this._send(ANode.RECORD_STATE, [], [value]);
+ }
+
setStripGain (stripId, db) {
this._send(ANode.STRIP_GAIN, [stripId], [db]);
}