functional__generate_wave_table {torchaudio} | R 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 ( |
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
[Package torchaudio version 0.3.1 Index]