beep(440, 0.5) // play the frequency 440Hz for 0.5 secondmelody(
[
[notefreq(12), 0.1, 0, 0.3], // note=A, dur=0.1, wave=sine, volume=0.3
[notefreq(14), 0.1, 0, 0.5], // note=B, dur=0.1, wave=sine, volume=0.5
[notefreq(15), 0.1, 0, 0.6], // note=C, dur=0.1, wave=sine, volume=0.6
],
0.25 // wait 0.25 seconds between each note
)
Live Demo