Swapping play builtin melody with begin melody in reference docs

This commit is contained in:
Sam El-Husseini
2017-03-01 00:38:12 -08:00
parent b0fddd7e72
commit 7c1b761964
2 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1,29 @@
# Begin Melody
Begin playing a musical melody through pin ``P0`` of the @boardname@.
## Simulator
This function only works on the @boardname@ and in some browsers.
```sig
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
```
### Parameters
* ``melody`` is the array representation of a melody you wish to play
## Example
This example plays the ``Entertainer`` built-in melody.
```blocks
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
```
### See also
[play tone](/reference/music/play-tone), [rest](/reference/music/rest), [ring tone](/reference/music/ring-tone) , [tempo](/reference/music/tempo), [set tempo](/reference/music/set-tempo),
[change tempo by](/reference/music/change-tempo-by)