e947f4859b
* Adding support for music melody arrays in Typescript
689 B
689 B
Play Built-in Melody
Play a built in musical melody through pin P0
of the @boardname@.
Simulator
This function only works on the @boardname@ and in some browsers.
music.playBuiltinMelody(Melodies.Entertainer)
Parameters
melody
is the kind of built-in melody you want to play
Example
This example plays the Entertainer
melody.
music.playBuiltinMelody(Melodies.Entertainer)
See also
play tone, rest, ring tone , tempo, set tempo, change tempo by