A helper function for phaser. Generates a table with given parameters

functional__generate_wave_table(
  wave_type,
  data_type,
  table_size,
  min,
  max,
  phase,
  device
)

Arguments

wave_type

(str): 'SINE' or 'TRIANGULAR'

data_type

(str): desired data_type ( INT or FLOAT )

table_size

(int): desired table size

min

(float): desired min value

max

(float): desired max value

phase

(float): desired phase

device

(torch_device): Torch device on which table must be generated

Value

tensor: A 1D tensor with wave table values