stop melody block (#1633)

* docs

* updated strings
This commit is contained in:
Peli de Halleux
2018-12-02 07:56:47 -08:00
committed by GitHub
parent 946aa82217
commit 61c06ad969
5 changed files with 61 additions and 2 deletions

View File

@ -418,6 +418,8 @@
"music.setPlayTone": "Sets a custom playTone function for playing melodies",
"music.setTempo": "Sets the tempo to the specified amount",
"music.setTempo|param|bpm": "The new tempo in beats per minute, eg: 120",
"music.stopMelody": "Stops the melodies",
"music.stopMelody|param|options": "which melody to stop",
"music.tempo": "Returns the tempo in beats per minute. Tempo is the speed (bpm = beats per minute) at which notes play. The larger the tempo value, the faster the notes will play.",
"parseFloat": "Convert a string to a number.",
"parseInt": "Convert a string to an integer.",

View File

@ -172,6 +172,9 @@
"MelodyOptions.Forever|block": "forever",
"MelodyOptions.OnceInBackground|block": "once in background",
"MelodyOptions.Once|block": "once",
"MelodyStopOptions.All|block": "all",
"MelodyStopOptions.Background|block": "background",
"MelodyStopOptions.Foreground|block": "foreground",
"MesDpadButtonInfo.ADown|block": "A down",
"MesDpadButtonInfo.AUp|block": "A up",
"MesDpadButtonInfo.BDown|block": "B down",
@ -320,6 +323,7 @@
"music.rest|block": "rest(ms)|%duration=device_beat",
"music.ringTone|block": "ring tone (Hz)|%note=device_note",
"music.setTempo|block": "set tempo to (bpm)|%value",
"music.stopMelody|block": "stop melody $options",
"music.tempo|block": "tempo (bpm)",
"music|block": "music",
"parseFloat|block": "parse to number %text",