def change_music(new_music, repeat=False):
 if (music and (new_music is not current_music)):
  if new_music:
   new_playlist = PlayList([new_music], repeat=repeat)
  else:
   new_playlist = None
  change_playlist(new_playlist)

def change_music ( new_music , repeat = False ) : if ( music and ( new_music is not current_music ) ) : if new_music : new_playlist = PlayList ( [ new_music ] , repeat = repeat ) else : new_playlist = None change_playlist ( new_playlist )
fade out any currently playing music and start playing the given music file .