Playsound does not accept non-integer values for pitch, volume, or minvolume. This makes it impossible to reproduce, for example, note blocks of various pitches.
Comments 7
The command will run with non-integer values, but it rounds them off. This makes pitch-shifting granular only to the octave.
I doesn't seem to round off that much (to me, a non-musician). The only thing I find strange is that despite the linear correlation between the pitch value and the note in hertz, 0.0 to 0.5 are all for low F#.
I am able to reproduce the note blocks by going to the second decimal place...Idk why it doesn't work for you. I consider myself somewhat musical and the notes are only slightly out of tune.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Are you sure? I tried the command with a ridiculous amount of decimal places and it still worked. I used this:
/playsound note.harp <player> 700 3 -1400 3.163257856 0.60111753 0.65327562