From f5eebf2931e4e7d55b007074228e044bdb286486 Mon Sep 17 00:00:00 2001 From: Mark <31242877+microbit-mark@users.noreply.github.com> Date: Thu, 30 Nov 2017 04:08:29 +0000 Subject: [PATCH] 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. --- docs/reference/music/begin-melody.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/music/begin-melody.md b/docs/reference/music/begin-melody.md index 6aedf351..1820f172 100644 --- a/docs/reference/music/begin-melody.md +++ b/docs/reference/music/begin-melody.md @@ -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