(model, total_time, secs_per_instrument=2.0)
return z_instruments, t_instruments
Get random latent vectors evenly spaced in time.
Get random latent vectors evenly spaced in time.
Get random latent vectors evenly spaced in time .
def get_random_instruments(model, total_time, secs_per_instrument=2.0):
  """Get random latent vectors evenly spaced in time."""
  n_instruments = int(total_time / secs_per_instrument)
  z_instruments = model.generate_z(n_instruments)
  t_instruments = np.linspace(-.0001, total_time, n_instruments)
  return z_instruments, t_instruments
def get_random_instruments ( model , total_time , secs_per_instrument = 2.0 ) : n_instruments = int ( total_time / secs_per_instrument ) z_instruments = model . generate_z ( n_instruments ) t_instruments = np . linspace ( - .0001 , total_time , n_instruments ) return z_instruments , t_instruments