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:
parent
839934f9f4
commit
f5eebf2931
@ -9,6 +9,10 @@ This function only works on the @boardname@ and in some browsers.
|
|||||||
```sig
|
```sig
|
||||||
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
|
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
|
## Parameters
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user