Resize function
Removed Midi stuff (sits on another branch) Added resize stuff.