Skip to content

Bundled note block sounds differ from Minecraft's: guitar, flute, bell, icechime and xylobone are re-pitched, and harp is the pre-1.12 file #598

Open

Description

@xalrk

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

  1. Get Minecraft's files: the version manifest (piston-meta.mojang.com/mc/game/version_manifest_v2.json), the release's asset index, then minecraft/sounds/note/<name>.ogg from resources.download.minecraft.net. minecraft/sounds.json maps block.note_block.harp to note/harp2 and gives the note block sounds no pitch or volume.
  2. 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.
  3. 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_sound plays every built-in instrument at speed 1 on F#4 (ins.key 45) with no per-instrument offset, and exports play the files as they are. In Minecraft (26.2), NoteBlock.triggerEvent plays every instrument with pitch 2^((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/xylobone and note/harp2 (as harp.ogg), and note/bit and note/banjo unless their levels were changed on purpose. The four trumpets could move to 26.3's.

Activity

  1. OctoFlareDev commented on Oct 12, 2026

    @OctoFlareDev
    Collaborator

    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

  2. xalrk commented on Oct 12, 2026

    @xalrk
    Author

    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.

  3. added this to the v4.0 milestone on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions