pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

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

Open Ramanan0530 opened this issue 1 year ago • 1 comments

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 2. Open any project and hover music blocks in toolbox 3. Click help on "play melody at tempo 120 (bpm) & "play tone middle c for 1 beat until done" block. 4. 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

Ramanan0530 avatar Aug 27 '24 08:08 Ramanan0530

@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

ganicke avatar Aug 29 '24 21:08 ganicke

This is fixed. @Nina-1210 can you please validate?

abchatra avatar Jun 25 '25 19:06 abchatra

@abchatra, verified the bug on latest beta build 7.1.46, it has been fixed.

Screen Recording: Image

Nina-1210 avatar Jun 26 '25 01:06 Nina-1210

Thanks @Nina-1210

abchatra avatar Jun 26 '25 02:06 abchatra