microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
710 stars 588 forks source link

Music:-"Melody" & "Tone" didn't show the exact block in Help document #5865

Open Ramanan0530 opened 2 weeks ago

Ramanan0530 commented 2 weeks ago

Describe the bug Music:-"Melody" & "Tone" didn't show the exact block in Help document

Steps to reproduce the behavior 1.Navigate to https://makecode.microbit.org/beta

  1. Open any project and hover music blocks in toolbox
  2. Click help on "play melody at tempo 120 (bpm) & "play tone middle c for 1 beat until done" block.
  3. Compare the help document with block and JavaScript/python (?) code

Actual behavior The help document of "play melody at tempo 120 (bpm)" & "play tone middle c for 1 beat until done" in the block never show the exact block. Expect behavior The help document should show the exact blocks when switch to JavaScript/Python code when click (?)

Screen Recording: Block wrg

Additional context 1.OS: Windows, Mac, iPad 2.Browser: Safari, Chrome, Edge, Firefox 3.makecode.microbit,org version: 7.0.25 4.Microsoft MakeCode version: 10.2.15

ganicke commented 2 weeks ago

@abchatra - Looks like maybe a bug here. The play() method should be shown instead of the api for its playable parameter. It should show this:

music.play(toPlay, playbackMode)

Because of this, the stringPlayable() help is linked instead of that for play().

image