@mikw99/nodered-osc-to-emberplus
Version:
a specialzed node to bridge osc-values to a lawo-console
80 lines (73 loc) • 3.13 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('ember-out',{
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value:""},
clientIP: {value:""},
emberPort: {value: 9000},
clientTimeOut: {value: 5000}
},
inputs: 1,
outputs: 2,
icon: "file.svg",
label: function() {
return this.name||"ember-out";
}
});
</script>
<script type="text/html" data-template-name="ember-out">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-clientIP"><i class="fa fa-tag"></i> IP</label>
<input type="text" id="node-input-clientIP" placeholder="Client IP">
</div>
<div class="form-row">
<label for="node-input-emberPort"><i class="fa fa-tag"></i> Port</label>
<input type="number" id="node-input-emberPort" placeholder="ember Port">
</div>
<div class="form-row">
<label for="node-input-clientTimeOut"><i class="fa fa-tag"></i> Timeout</label>
<input type="number" id="node-input-clientTimeOut" placeholder="TimeOut in ms">
</div>
</script>
<script type="text/html" data-help-name="ember-out">
<p>A specialized node that takes OSC messages and sends it to a LAWO-console</p>
<p>Enter your console IP and Emberplus port, usually 9000 or 9001</p>
<h3>Prerequsites: </h3>
<dd>This node converts OSC-messages from source arrays to their respective index in an emberplus-target array <br>
The arrays are accessed via flow-context, so you need to create them first. <br>
<br>
oscDictFader -> emberDictFader <br>
oscDictGain -> emberDictGain <br>
oscDictPFL -> emberDictPFL <br>
oscDictGrp -> emberDictGrp <br>
oscDictGrpPFL -> emberDictGrpPFL <br>
<br>
You should also provide an ignoreListDict with the addresses of each right-stereo channel in the target to avoid timeouts. <br>
</dd>
<h3>Inputs:</h3>
<dl class="message-properties">
<dt>topic
<span class="property-type">string</span>
</dt>
<dl class="message-properties">
<dt>payload
<span class="property-type">string | number</span>
</dt>
<h3>Details:</h3>
<dd>Commands are issued via injecting msg.topic. <br>
1. "reconnect" to connect. <br>
2. "get Nodes" to get the target emberplus-nodes. <br>
3. "reScan" to get the nodes again, in case an error is thrown during verification. <br>
4. "disconnect" to disconnect from target. <br>
<br>
5. Inject osc-messages as strings according to your source arrays. <br>
<br>
Values should be in <code>msg.payload</code>. <br>
Addresses should be in <code>msg.topic</code>. <br>
</dd>
</script>