mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
WebSockets: improve JS client and demo
add methods to callback.js automatically reconnect js client on disconnection mixer-demo do not recreate UI on reconnection NO-OP: indentation in message.js make client JS reconnection optional fix mixer-demo scrolling minor JS client refactor improve mixer-demo readability
This commit is contained in:
parent
612c71aa25
commit
50ba8dea96
9 changed files with 191 additions and 145 deletions
|
|
@ -20,14 +20,34 @@
|
|||
|
||||
export class ArdourCallback {
|
||||
|
||||
onTempo (bpm) {}
|
||||
onStripGain (stripId, db) {}
|
||||
onStripPan (stripId, value) {}
|
||||
onStripMute (stripId, value) {}
|
||||
onStripPluginEnable (stripId, pluginId, value) {}
|
||||
onStripPluginParamValue (stripId, pluginId, paramId, value) {}
|
||||
// Connection status
|
||||
onConnected () {}
|
||||
onDisconnected () {}
|
||||
|
||||
// All messages and errors
|
||||
onMessage (msg) {}
|
||||
onError (error) {}
|
||||
|
||||
}
|
||||
// Globals
|
||||
onTempo (bpm) {}
|
||||
|
||||
// Strips
|
||||
onStripDesc (stripId, name) {}
|
||||
onStripMeter (stripId, db) {}
|
||||
onStripGain (stripId, db) {}
|
||||
onStripPan (stripId, value) {}
|
||||
onStripMute (stripId, value) {}
|
||||
|
||||
// Strip plugins
|
||||
onStripPluginDesc (stripId, pluginId, name) {}
|
||||
onStripPluginEnable (stripId, pluginId, value) {}
|
||||
|
||||
// Strip plugin parameters
|
||||
// valueType
|
||||
// 'b' : boolean
|
||||
// 'i' : integer
|
||||
// 'd' : double
|
||||
onStripPluginParamDesc (stripId, pluginId, paramId, name, valueType, min, max, isLog) {}
|
||||
onStripPluginParamValue (stripId, pluginId, paramId, value) {}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue