AutoMidiPlayer icon indicating copy to clipboard operation
AutoMidiPlayer copied to clipboard

Auto Song Key Scanner Causes Inaccurate In-game Playback

Open HydraXEZ opened this issue 8 months ago • 2 comments

What happened?

When playing the 37-key piano in Heartopia, C3 used to be the most accurate key. But after updating to the latest version, the key mapping seems to have changed, so the sound doesn’t match anymore.

Operating System

Windows 10

Steps to reproduce

When playing the 37-key piano in Heartopia, C3 used to be the most accurate key. But after updating to the latest version, the key mapping seems to have changed, so the sound doesn’t match anymore.

Upload Logs

No response

HydraXEZ avatar Mar 29 '26 17:03 HydraXEZ

Thanks for bringing this up! I believe this issue is caused by the auto key scanning feature. It was designed to improve playback accuracy in-game for most songs (based on the MIDI files I’ve tested so far). However, in your case, it seems to be causing the opposite effect.

As a workaround, I’ll add an option for users to manually select the default key for each song in the Song Edit dialog, along with a toggle in the Settings view to disable automatic key detection.

Jed556 avatar Mar 30 '26 01:03 Jed556

This issue is now addressed in 7ecca72bc624ddd9f013c95d7a6c573f9d7aae9d Release: v6.17.13

I observed that for instruments with fewer keys, some songs tend to lose accuracy by ear, where auto key detection actually helps improve playback. However, for instruments with a wider key range (such as Roblox and Heartopia 37-key pianos), applying auto key detection can introduce a key offset, resulting in noticeable pitch inaccuracies.

Jed556 avatar Apr 01 '26 01:04 Jed556