node-red-contrib-dynamorse-file-io
Version:
Dynamorse File IO nodes for Node-RED
91 lines (80 loc) • 2.85 kB
HTML
<!--
Copyright 2018 Streampunk Media Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/javascript">
RED.nodes.registerType('wav-out',{
category: 'spout',
color: '#D79748',
defaults: {
name: { value : '' },
file : { value : '' },
timeout : { value : 0, validate : RED.validators.number() }
},
inputs:1,
outputs:0,
align: 'right',
icon: "spout.png",
label: function() {
return this.name || "wav-out";
}
});
</script>
<script type="text/x-red" data-template-name="wav-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-file"><i class="fa fa-file" aria-hidden="true"></i> file</label>
<input type="text" id="node-input-file" placeholder="dynamorse.wav">
</div>
<div class="form-row">
<label for="node-input-timeout"><i class="fa fa-clock-o"></i> timeout</label>
<input type="number" min="0" id="node-input-timeout" placeholder="0" style="width: 100px">
</div>
</script>
<style>
.param-table table, th, td {
vertical-align: top;
padding: 3px;
}
</style>
<script type="text/x-red" data-help-name="wav-out">
<h1>WAVE audio file output</h1>
<p>Write audio grains to a WAVE audio (<code>.wav</code>) file, with streaming input
from one or more NMOS-style flows.</p>
<h3>Parameters</h3>
<div class="param-table">
<table>
<tr>
<th>parameter</th><th>description</th>
</tr>
<tr>
<td><i class="fa fa-tag" aria-hidden="true"></i> name</td>
<td>Name of the node.</td>
</tr>
<tr>
<td><i class="fa fa-file"></i> WAV file</td>
<td>Path location for the WAVE format output file.</td>
</tr>
<tr>
<td><i class="fa fa-clock-o"></i> timeout</td>
<td>Time to wait between writing each grain. Controls the back-pressure.</td>
</tr>
</table>
</div>
<p>File path locations are relative to the folder where the dynamorse server was
started.</p>
<h3>Maturity</h3>
<p>Implemented and partially tested. Awaiting automated testing -
<a href="https://github.com/Streampunk/dynamorse/issues/5">status</a>.
</script>