You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.0 KiB
48 lines
2.0 KiB
8 years ago
|
<script type="text/x-red" data-help-name="AudioEffectBitcrusher">
|
||
|
<h3>Summary</h3>
|
||
|
<div class=tooltipinfo>
|
||
|
<p>Reduce the samplerate and/or bitdepth of a source signal, resulting in
|
||
|
a distorted sound.</p>
|
||
|
</div>
|
||
|
<h3>Audio Connections</h3>
|
||
|
<table class=doc align=center cellpadding=3>
|
||
|
<tr class=top><th>Port</th><th>Purpose</th></tr>
|
||
|
<tr class=odd><td align=center>In 0</td><td>Signal Input</td></tr>
|
||
|
<tr class=odd><td align=center>Out 0</td><td>Signal Output</td></tr>
|
||
|
</table>
|
||
|
<h3>Functions</h3>
|
||
|
<p class=func><span class=keyword>bits</span>(xcrushBits);</p>
|
||
|
<p class=desc>xcrushBits sets the bitdepth, from 1 to 16. A Value of 16
|
||
|
does not crush the bitdepth, and is effectively a passthru for this part
|
||
|
of the function.</p>
|
||
|
|
||
|
<p class=func><span class=keyword>sampleRate</span>(xsampleRate);</p>
|
||
|
|
||
|
<p class=desc>xsampleRate sets the frequency, from 1 to 44100Hz, however it
|
||
|
works in integer steps so you will only really get a handful of results from
|
||
|
the many samplerates you can pass. 44100 is passthru.</p>
|
||
|
|
||
|
<p class=desc>set xbitDepth to 16 and xsampleRate to 44100 to pass audio
|
||
|
through without any Bitcrush effect.</p>
|
||
|
<h3>Examples</h3>
|
||
|
<p class=exam>File > Examples > Audio > Effects > Bitcrusher
|
||
|
</p>
|
||
|
<h3>Notes</h3>
|
||
|
<p>Needs a lot of improvement. Options for anti-aliasing would be nice in
|
||
|
the future, but for now, it's rough, it's dirty and it sounds a bit like
|
||
|
Nine Inch Nails.
|
||
|
</p>
|
||
|
<p><a href="http://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html" target="_blank">AudioNoInterrupts()</a>
|
||
|
should be used when changing
|
||
|
settings on multiple objects, so all changes always take effect
|
||
|
at the same moment.
|
||
|
</p>
|
||
|
</script>
|
||
|
<script type="text/x-red" data-template-name="AudioEffectBitcrusher">
|
||
|
<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>
|
||
|
</script>
|
||
|
|