Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Musical-scale/Processing/musical-scale.processing
Normal file
18
Task/Musical-scale/Processing/musical-scale.processing
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//Aamrun, 2nd July 2022
|
||||
|
||||
import processing.sound.*;
|
||||
|
||||
float[] frequencies = {261.63, 293.66, 329.63, 349.23, 392.00, 440.00, 493.88, 523.25};
|
||||
|
||||
SinOsc sine;
|
||||
|
||||
size(500,500);
|
||||
|
||||
sine = new SinOsc(this);
|
||||
|
||||
for(int i=0;i<frequencies.length;i++){
|
||||
sine.freq(frequencies[i]);
|
||||
sine.play();
|
||||
|
||||
delay(500);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue