Difference between revisions of "Audio functions"
From DarkWiki
(Created page with "==Sin to Saw== Bend a SIN wave into a SAW wave. <pre> 0.1*((x/pi) % 2-1) + 0.9*(sin(x)) </pre>") |
(→Sin to Saw) |
||
| Line 1: | Line 1: | ||
==Sin to Saw== | ==Sin to Saw== | ||
| − | Bend a | + | Bend a SINE wave into a SAW wave. |
| + | |||
| + | t = time (positive) | ||
| + | d = Proportion of each wave (0-1, where 0 is all SAW and 1 is all SINE). | ||
<pre> | <pre> | ||
| − | + | (1-d)*((t/pi) % 2-1) + (d)*(sin(t)) | |
</pre> | </pre> | ||
Revision as of 15:42, 23 December 2016
Sin to Saw
Bend a SINE wave into a SAW wave.
t = time (positive) d = Proportion of each wave (0-1, where 0 is all SAW and 1 is all SINE).
(1-d)*((t/pi) % 2-1) + (d)*(sin(t))