Musical scale: Difference between revisions
Content deleted Content added
→{{header|Phix}}: replaced with gui version and online link |
Added Processing implementation |
||
Line 980:
[Console]::beep($tone, 500)
}</lang>
=={{header|Processing}}==
Requires the Processing Sound library.
<lang java>
//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);
}
</lang>
=={{header|Pure Data}}==
|