Sound Wave Maths in Processing

Simon has created animations visualizing sound waves (Triangle, Sawtooth, Square and Sine waves) in Processing (Java), using wave functions.

These are the functions he used for the Sawtooth, Square and Sine waves:

DSC_1131

DSC_1132

Not to confuse “sine” with “sgn” (sgn standing for sign):

DSC_1134

He was inspired by the logarithmic and power functions that he was studying during his math class yesterday. Simon was trying to draw both types of functions in Grapher on his laptop, but only succeeded for the power functions (because there were no subscript option for the logarithms).

Advertisements

Perlin Noise Combined with Sine Wave Translation into Processing

Simon translated Daniel Shiffman’s Graphing 1D Perlin Noise tutorial┬áinto Processing (Java). The project involved combining perlin noise and sine wave:

 

He also attempted to translate Perlin Noise Flow Field into Processing:

 

dsc_0152.jpg

 

DSC_0153

 

dsc_0154.jpg