diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-12 14:59:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-13 16:29:40 +0200 |
commit | a8dce60eb52a3b9ff9f1a131b75eb924df01633f (patch) | |
tree | 6c574577a3dc977ca2ad48229930a3fafb1803b7 /share | |
parent | b8f52a519a06fe4bdaa8a0978d8116ebe310925b (diff) |
WebSockets: rename Node to ANode to avoid shadowing DOM Node class
Diffstat (limited to 'share')
-rw-r--r-- | share/web_surfaces/shared/ardour.js | 26 | ||||
-rw-r--r-- | share/web_surfaces/shared/channel.js | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/share/web_surfaces/shared/ardour.js b/share/web_surfaces/shared/ardour.js index d2d766cf99..2db59e4ec7 100644 --- a/share/web_surfaces/shared/ardour.js +++ b/share/web_surfaces/shared/ardour.js @@ -16,7 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -import { MessageChannel, Message, Node } from './channel.js'; +import { MessageChannel, Message, ANode } from './channel.js'; export class Ardour { @@ -69,51 +69,51 @@ export class Ardour { // clients need to call open() before calling these methods async getTempo () { - return (await this._sendAndReceive(Node.TEMPO))[0]; + return (await this._sendAndReceive(ANode.TEMPO))[0]; } async getStripGain (stripId) { - return (await this._sendAndReceive(Node.STRIP_GAIN, [stripId]))[0]; + return (await this._sendAndReceive(ANode.STRIP_GAIN, [stripId]))[0]; } async getStripPan (stripId) { - return (await this._sendAndReceive(Node.STRIP_PAN, [stripId]))[0]; + return (await this._sendAndReceive(ANode.STRIP_PAN, [stripId]))[0]; } async getStripMute (stripId) { - return (await this._sendAndReceive(Node.STRIP_MUTE, [stripId]))[0]; + return (await this._sendAndReceive(ANode.STRIP_MUTE, [stripId]))[0]; } async getStripPluginEnable (stripId, pluginId) { - return (await this._sendAndReceive(Node.STRIP_PLUGIN_ENABLE, [stripId, pluginId]))[0]; + return (await this._sendAndReceive(ANode.STRIP_PLUGIN_ENABLE, [stripId, pluginId]))[0]; } async getStripPluginParamValue (stripId, pluginId, paramId) { - return (await this._sendAndReceive(Node.STRIP_PLUGIN_PARAM_VALUE, [stripId, pluginId, paramId]))[0]; + return (await this._sendAndReceive(ANode.STRIP_PLUGIN_PARAM_VALUE, [stripId, pluginId, paramId]))[0]; } setTempo (bpm) { - this._send(Node.TEMPO, [], [bpm]); + this._send(ANode.TEMPO, [], [bpm]); } setStripGain (stripId, db) { - this._send(Node.STRIP_GAIN, [stripId], [db]); + this._send(ANode.STRIP_GAIN, [stripId], [db]); } setStripPan (stripId, value) { - this._send(Node.STRIP_PAN, [stripId], [value]); + this._send(ANode.STRIP_PAN, [stripId], [value]); } setStripMute (stripId, value) { - this._send(Node.STRIP_MUTE, [stripId], [value]); + this._send(ANode.STRIP_MUTE, [stripId], [value]); } setStripPluginEnable (stripId, pluginId, value) { - this._send(Node.STRIP_PLUGIN_ENABLE, [stripId, pluginId], [value]); + this._send(ANode.STRIP_PLUGIN_ENABLE, [stripId, pluginId], [value]); } setStripPluginParamValue (stripId, pluginId, paramId, value) { - this._send(Node.STRIP_PLUGIN_PARAM_VALUE, [stripId, pluginId, paramId], [value]); + this._send(ANode.STRIP_PLUGIN_PARAM_VALUE, [stripId, pluginId, paramId], [value]); } // Private methods diff --git a/share/web_surfaces/shared/channel.js b/share/web_surfaces/shared/channel.js index 99a80fd354..03b87979d2 100644 --- a/share/web_surfaces/shared/channel.js +++ b/share/web_surfaces/shared/channel.js @@ -18,7 +18,7 @@ export const JSON_INF = 1.0e+128; -export const Node = Object.freeze({ +export const ANode = Object.freeze({ TEMPO: 'tempo', STRIP_DESC: 'strip_desc', STRIP_METER: 'strip_meter', |