Repository navigation
Description
Describe the bug
Several samples in datafiles/Data/Sounds/ are not the sounds Minecraft plays for note blocks, so the 1.12 instruments sound slightly out of tune against the game and against the other instruments, and the harp is quieter than in game. Songs exported from NBS don't sound like the same song played with note blocks in game.
Compared with Minecraft's assets (official asset index; sounds.json for which file each note block plays). The Minecraft files below have the same audio in every release from 1.12 (bit and banjo: 1.14) to 26.3:
| file | difference from Minecraft |
|---|---|
guitar.ogg |
Minecraft's note/guitar re-pitched -13 cents |
flute.ogg |
note/flute re-pitched +11 cents |
bell.ogg |
note/bell re-pitched -3 cents |
icechime.ogg |
note/icechime re-pitched +18 cents |
xylobone.ogg |
note/xylobone re-pitched +3 cents |
harp.ogg |
it is note/harp, which the note block played up to 1.11; since 1.12 (17w13a) block.note_block.harp plays note/harp2, the same recording 3.9 dB louder |
bit.ogg, banjo.ogg |
same audio as Minecraft's, level changed (-2.8 dB, +2.1 dB). Intentional? |
The other note block files (bass, drums, click, iron xylophone, cow bell, didgeridoo, pling) match the game. The trumpets match 26.2; note that 26.3 replaced all four trumpet sounds with new recordings.
"Re-pitched" means: the bundled file correlates poorly with Minecraft's (flute 0.59, bell 0.61, icechime 0.08), but after resampling it by the amount in the table it matches at 0.96-1.00. So it is the same recording, sped up or slowed down. The shifts move the samples away from their nominal pitch, not toward it (measured on the partial nearest the nominal fundamental: flute -2.6 cents in Minecraft, +8.8 in NBS; bell -1.1 vs -4.1; guitar -2.4 vs -15.5), so it does not look like a deliberate tuning correction.
Platform
All: these are the bundled sound files (checked in the 3.12.0-beta.5 Linux AppImage, which has the same files as the development branch; main has the same files apart from the trumpets). The 1.12 instruments and the harp are unchanged since the first commit (2019-01-22); bit and banjo since 2019-02-27.
To Reproduce
- Get Minecraft's files: the version manifest (
piston-meta.mojang.com/mc/game/version_manifest_v2.json), the release's asset index, thenminecraft/sounds/note/<name>.oggfromresources.download.minecraft.net.minecraft/sounds.jsonmapsblock.note_block.harptonote/harp2and gives the note block sounds no pitch or volume. - Decode both versions of a file to 44.1 kHz mono, resample NBS's by 2^(c/1200) for c in -40..40 cents, and take the best normalised cross-correlation with Minecraft's over the first 0.3 s.
- The five files only match once resampled by the shifts in the table; harp, bit and banjo match as shipped, at other levels.
Expected behavior
Each bundled file is the same audio as the file Minecraft plays for that note block: it matches as shipped (best match at 0 cents, same level), so a note in NBS has the same pitch and volume as in game.
Additional context
- Nothing compensates at playback on either side. NBS's
play_soundplays every built-in instrument at speed 1 on F#4 (ins.key45) with no per-instrument offset, and exports play the files as they are. In Minecraft (26.2),NoteBlock.triggerEventplays every instrument with pitch2^((note - 12) / 12)and volume 3.0, and nothing else adjusts note block sounds. - No Minecraft version ever shipped NBS's versions of the five re-pitched files (checked the asset indexes of every 1.12 snapshot and releases up to 26.3).
- Fix: replace the bundled files with Minecraft's
note/guitar,note/flute,note/bell,note/icechime,note/xyloboneandnote/harp2(asharp.ogg), andnote/bitandnote/banjounless their levels were changed on purpose. The four trumpets could move to 26.3's.
Activity
OctoFlareDev commentedon Oct 12, 2026
I can confirm that those files are different and not the original from Minecraft
It seems like it was cause by processing with a software called Sound eXchange, back in i think 2017, before the project went open sourced
I also found out Minecraft 26.3 updated the trumpet files too, to be closer to the A=440 tuning
As for the volume level, I need opinions on whether to update them or not, since they are noticeable if changed, and people have their projects already adapted to the lower levels
xalrk commentedon Oct 12, 2026
If the volume levels are updated, there's always the option to add a project settings toggle to use the legacy sounds, and have it be the default for projects created before the change. The downside to this is added complexity and bundling more files, though.