def samples_from_table(table, start=0, stop=(-1), rate=44100):
 samples = np.array(table.getTable())
 if ((start, stop) != (0, (-1))):
  if (stop > start):
   samples = samples[(start * rate):(stop * rate)]
  elif start:
   samples = samples[(start * rate):]
 return samples

def samples_from_table ( table , start = 0 , stop = ( - 1 ) , rate = 44100 ) : samples = np . array ( table . getTable ( ) ) if ( ( start , stop ) != ( 0 , ( - 1 ) ) ) : if ( stop > start ) : samples = samples [ ( start * rate ) : ( stop * rate ) ] elif start : samples = samples [ ( start * rate ) : ] return samples
return samples as a np .