[PD-dev] Creating an external / sinewave equation example

Rick T ratulloch at gmail.com
Sun Sep 4 22:52:12 CEST 2011


I have 2 large equations that I would like to create an external for.  One
of the 2 equations http://dl.dropbox.com/u/6576402/questions/eq1.txt
Basically it's a 1 second periodic signal with sample rate at 44100 which
the equation gives me control over the frequency,amplitude,phase and
vertical offset

So my logic is to have 4 inlets for the frequency,amplitude,phase and
vertical offset and an output for the signal.


If you want to know what type of PD I'm creating and it's options.
1) The first option will import a text file into a table/array that will
control the variables of the equations that will vary
frequency,amplitude,phase and vertical offset over time.
2) The second option will allow the variables to be controllable/variable
using a midi controller and it's audio signal played

I've been able to find instructions on how to create a hello world
C-external but not one that creates a simple sine wave from a sinewave
equation like A*sin(w*t+p)
(https://secure.wikimedia.org/wikipedia/en/wiki/Sine_wave) Does anyone have
one or know where to find one.
It makes sense to make a C external and create inputs for the values of
frequency,amplitude,phase and vertical offset.
That way I can cleanly feed/control those values with a midi controller or a
table/array in PureData.

Thanks
-- 
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20110904/1142a4a1/attachment.htm>


More information about the Pd-dev mailing list