Learn creative coding writing simple programs
133. Review of freq, phase, mul and add in SinOsc
In this episode we observe how the different arguments of SinOsc (freq, phase, mul and add) in SuperCollider affect sound. We also observe those same properties visually in Processing. I hope these examples make a bit easier to understand what is going on with the sine function.
Code editor
You can make changes to the code below. Then
Reference
background
beginShape
draw
endShape
float
for
noFill
setup
sin
size
stroke
strokeWeight
TWO_PI
vertex
void
width
background
beginShape
draw
endShape
float
for
noFill
setup
sin
size
stroke
strokeWeight
TWO_PI
vertex
void
width
Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)
To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:``` void setup() { size(600, 600); } ```