pxt-microbit
pxt-microbit copied to clipboard
"play tone" and "play sound effect" produce different tones
Describe the bug Something that @jaustin noticed. When the play tone block and play sound effect are configured to play the same tone, in this case middle C, they don't produce the same tone.
To Reproduce Steps to reproduce the behavior:
- Flash this programme to a micro:bit V2
- https://makecode.microbit.org/38826-44582-86317-86550
- The change in tone can be easily heard on the speaker
Using a phone app sound analyser with headphones and it detects the “play tone” block output at around 255 Hz and SoundEffect around 264 Hz. Middle C should be 261.626 Hz.
Expected behavior Both blocks to produce the same tone.
Screenshots N
micro:bit version (please complete the following information):
Tested with a V2.00
Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Additional context Add any other context about the problem here.