Before shifting converted MIDI by an octave, match the intended part to the source attack by attack and check whether the pitch difference is the same signed 12 semitones throughout that selected phrase. A correct first note is not enough: a later correct note would be damaged by the same global shift. Apply the inverse shift only to a duplicate of the confirmed part, then compare it at the original speed and alignment without quantizing or stretching it. Stop the global repair if the offsets vary, another instrument shares the selection, a source attack has no note, or one attack has been split into several notes. Correct those events individually or make a clearer conversion input; transposition cannot supply missing attacks or merge split ones. If you cannot establish the source pitches, leave the bulk edit uncommitted rather than treating a plausible register as proof.