I would like to know the command that is required and the possible combinations for the variable that changes the pitch.
32 Answers
Yes, this is possible using this command:
/playsound (sound) @a X Y Z (Volume) (pitch)Note: Pitch has to be 0-2. 0 is the lowest pitch, and 2 is the highest. You can use decimals such as 0.2 or 1.8.
Here is a list of all the sounds in minecraft:
You can play custom sounds that are in resource packs in the same manner.
Sounds of Noteblocks:
note.snare
A Note Block that is on top of a "sand" block is clicked or powered by redstone.
note.pling
None
note.hat
A Note Block that is on top of a "glass" block is clicked or powered by redstone.
note.harp
A Note Block that is on top of an "other" block is clicked or powered by redstone.
note.bd
A Note Block that is on top of a "stone" block is clicked or powered by redstone.
note.bassattack
A Note Block that is on top of a "wood" block is clicked or powered by redstone.
note.bass
None
Yes you can the command to make a music note use /playsound (sound file name).ogg