added tone, playnote and playtune funcs