<div dir="ltr">just <div><br></div><div>- think of the table size you want.<br></div><div><div><br></div><div>- get its period in seconds, or better, its frequency, according to the sample rate</div></div><div><br></div><div>
- use this frequency as the frequency of [phasor~], going from 0 to 1 (be careful to set the starting phase as zero, as well)</div><div><br></div><div>- make [phasor~] feed whatever crazy idea and mathematical function you bum into, like <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">sin(sin(x) * pi) or sin(x) ^ 3, put that into an [expr~]</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">there you go</span></div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-08 21:41 GMT-03:00 David <span dir="ltr">&lt;<a href="mailto:dfkettle@gmail.com" target="_blank">dfkettle@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi!<br><br></div>Is there some way to fill an array (table) with an arbitrary wave form programatically? I know I can use sinesum or cosinesum to generate sums of sinusoidal wave forms, and in theory any periodic waveform can be generated this way. But I want to generate wave forms using more complicated trigonometric expressions, for example sin(sin(x) * pi) or sin(x) ^ 3. I&#39;m not sure what they would sound like (which is what motivates me to try), or if there&#39;s some way to transform these expressions to use only sinesum or cosinesum (my knowledge of math is somewhat limited).<br>

<br></div>Any suggestions on how I could do that in Pure Data? I could create an audio file using some other software tool and then load it into Pure Data, but I&#39;d like to know if there&#39;s some way to do it directly in PD.<br>

<br></div>Thanks.<br><br></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>