functional__generate_wave_table: Wave Table Generator (functional)

functional__generate_wave_tableR Documentation

Wave Table Generator (functional)

Description

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

Usage

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


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.