finished voice autodetection code
started midi code