Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Technical Scratch Music Extension Question
- whimsythornberry
-
Scratcher
41 posts
Technical Scratch Music Extension Question
Do the instruments in the Scratch Music Extension only play discrete sounds and round inputs or does it interpolate (i.e. is there a difference in sound between 60, 60.25, 60.5, 60.75, and 61 or would it only recognize these as 60 or 61)? I cannot tell if any differences I am hearing are placebo.
Last edited by whimsythornberry (Sept. 23, 2026 00:10:44)
- supercroissants
-
Scratcher
100+ posts
Technical Scratch Music Extension Question
they are different, not by much though
- whimsythornberry
-
Scratcher
41 posts
Technical Scratch Music Extension Question
It doesn't round them
You mean it actually plays a different note for 60.5 than 61 or 60?
- BigNate469
-
Scratcher
1000+ posts
Technical Scratch Music Extension Question
Correct.It doesn't round them
You mean it actually plays a different note for 60.5 than 61 or 60?
The limitation is in your speakers, not Scratch.
- Maximouse
-
Scratcher
1000+ posts
Technical Scratch Music Extension Question
The limitation is in your speakers, not Scratch.Actually, the main limitation is in your ears. Speakers can play any frequency in a certain range, but the difference in pitch between the notes 60 and 60.25 is so small that it's barely perceptible by humans.
- whimsythornberry
-
Scratcher
41 posts
Technical Scratch Music Extension Question
I thought there might have been a difference, but I wanted to know if my ears were playing tricks on me. Additionally, is there a hard limit of 130 (about 14917.24 hz)?
- nembence
-
Scratcher
1000+ posts
Technical Scratch Music Extension Question
I thought there might have been a difference, but I wanted to know if my ears were playing tricks on me. Additionally, is there a hard limit of 130 (about 14917.24 hz)?Yes, there is a hard limit
https://github.com/scratchfoundation/scratch-editor/blob/develop/packages/scratch-vm/src/extensions/scratch3_music/index.js#L695
- BigNate469
-
Scratcher
1000+ posts
Technical Scratch Music Extension Question
True, although I highly doubt that there's nobody out there who can tell the difference- but cheaper or low-end speakers might just not play the correct noteThe limitation is in your speakers, not Scratch.Actually, the main limitation is in your ears. Speakers can play any frequency in a certain range, but the difference in pitch between the notes 60 and 60.25 is so small that it's barely perceptible by humans.
- Discussion Forums
- » Advanced Topics
-
» Technical Scratch Music Extension Question