(filename)
return re.match(r'.*MUS-(.*)_[^_]+\.\w{3}',
                  six.ensure_str(os.path.basename(filename))).group(1)
Translate a .wav or .mid path to a MAPS sequence id.
Translate a .wav or .mid path to a MAPS sequence id.
Translate a . wav or . mid path to a MAPS sequence id .
def filename_to_id(filename):
  """Translate a .wav or .mid path to a MAPS sequence id."""
  return re.match(r'.*MUS-(.*)_[^_]+\.\w{3}',
                  six.ensure_str(os.path.basename(filename))).group(1)
def filename_to_id ( filename ) : return re . match ( r'.*MUS-(.*)_[^_]+\.\w{3}' , six . ensure_str ( os . path . basename ( filename ) ) ) . group ( 1 )