Update begin-melody.md (#574)

Based on customer feedback, it may be useful to have an example of the array, this may then lead them to coding their own arrays.
This commit is contained in:
Mark 2017-11-30 04:08:29 +00:00 committed by Peli de Halleux
parent 839934f9f4
commit f5eebf2931

View File

@ -9,6 +9,10 @@ This function only works on the @boardname@ and in some browsers.
```sig
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
```
or in the format ``NOTE[octave][:duration] eg: ['g5:1']``
```sig
music.beginMelody(['g4:1', 'c5', 'e', 'g:2', 'e:1', 'g:3'], MelodyOptions.Once)
```
## Parameters