added MIDI scale to for rescale function