It's not as sophisticated as Melodyne, but this can be accomplished in BIAB using the audio harmony feature. I have not done this in a while, but the audio harmony feature can be set up to reference the audio track to a MIDI melody track and provide pitch correction.