add play sound example and various functions for playing wav and midi files