def table_from_file(file_in, start=0, stop=(-1)):
 table = pyo.SndTable()
 try:
  table.setSound(file_in, start=start, stop=stop)
 except TypeError:
  msg = 'bad file `{0}`, or format not supported'.format(file_in)
  raise PyoFormatException(msg)
 rate = pyo.sndinfo(file_in)[2]
 return (rate, table)

def table_from_file ( file_in , start = 0 , stop = ( - 1 ) ) : table = pyo . SndTable ( ) try : table . setSound ( file_in , start = start , stop = stop ) except TypeError : msg = 'bad file `{0}`, or format not supported' . format ( file_in ) raise PyoFormatException ( msg ) rate = pyo . sndinfo ( file_in ) [ 2 ] return ( rate , table )
read data from files .