Skip to content

MIDI files are played back one octave off#182

Merged
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:midi-fix
Apr 22, 2023
Merged

MIDI files are played back one octave off#182
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:midi-fix

Conversation

@mywave82

@mywave82 mywave82 commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

This was earlier brought up in #132

(courtesy of https://github.com/cirlabs/miditime for generating test midifile)
miditest.zip

The very first note should be a C-4 at 261Hz, while adplug plays it back at 129Hz which is slightly below a C-3.

The -13 is because the default value in the midi playback engine is -25, so increasing one octave == +12 semitones, that gives us -13 instead.

@mywave82 mywave82 changed the title MIDI files are played back one octave and a semi-note off in order to be played back correctly MIDI files are played back one octave off Apr 22, 2023
@mywave82 mywave82 merged commit 5ee792a into adplug:master Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant