<div dir="ltr">You can implement the same thing with Pd only. I&#39;ve attached a patch that creates the same waveform as the one you&#39;re loading, plus adds the three guard points for the cubic interpolation.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Apr 10, 2014 at 3:48 AM, David <span dir="ltr">&lt;<a href="mailto:dfkettle@gmail.com" target="_blank">dfkettle@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Thanks again to everyone that replied. I looked at the examples, but to be honest I didn&#39;t really understand them completely, and I got a few error messages when I tried to run them. I have pd-extended installed, but maybe I&#39;m missing some externals used by the examples. Anyway, I decided to go with plan B, and use another software package to generate sound files and then load them into PD. I&#39;m using Octave, an open-source math program that is mostly compatible with Matlib. It has some built-in functions to read and write audio files (mono only), but I can generate audio files in just a few lines of code, like this:<br>

<br>  x = linspace(0,2*pi,1024);<br>  y = sin(cos(sin(x) * pi) * pi);<br>  plot(x,y);<br>  title(&#39;y = sin(cos(sin x) * pi) * pi)&#39;);<br>  wavwrite(y,44100,16,&#39;C:\\Data\\Octave\\sincossin.wav&#39;);<br><br></div>

The first two lines generate the data (1024 samples in length), the next two lines draw a graph in a separate window, and the last line writes the data to a file. I really recommend it if you want to generate audio samples using math functions.<br>

<br></div><div class="gmail_extra">Then I load the file into PD with the attached patch. Since I know my files are 1024 samples long, I can just allocate an array of the correct size and not have to worry about complications.<br>

<br></div><div class="gmail_extra">I attached my patch and a sample file (generated using the code above) if you&#39;re interested.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">
David.<br><br></div><div class="gmail_extra"><br></div>
</font></span></div>
</blockquote></div><br></div>