FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Sound
(Moderators: pitaru, REAS)
   Sine to square wave algorithm
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Sine to square wave algorithm  (Read 528 times)
olivier

WWW Email
Sine to square wave algorithm
« on: Dec 9th, 2003, 8:03pm »

Hi,
 
I found a small algorithm that smoothly converts a sine wave into a square wave using Fourier series.
 
I took Amit's example and just changed the part where the synthesis is done:
http://www.pressecitron.com/p5/Jsyn2
 
Where the algo comes from:
http://www.jwcs.net/developers/dap/algorithms/fouriersquare.htm
 
... and another interesting resource:
http://www.geocities.com/ac_dc_ac/FourierEng.html
 
Thank you Amit for this great addon!
« Last Edit: Dec 9th, 2003, 8:05pm by olivier »  
Pages: 1 

« Previous topic | Next topic »