Shortcuts

torchsynth.util

Utility functions for torch DSP related things

torchsynth.util.fix_length(signal, length)

Pad or truncate Signal to specified length.

Return type

Signal

torchsynth.util.midi_to_hz(midi)

Convert from midi (linear pitch) to frequency in Hz.

Parameters

midi (Tensor) – Linear pitch on the MIDI scale.

Return type

Tensor

Returns

Frequency in Hz.

torchsynth.util.normalize(signal)

Normalize every individual signal in batch.

Return type

Signal

torchsynth.util.normalize_if_clipping(signal)

Only normalize invidiaul signals in batch that have samples less than -1.0 or greater than 1.0

Return type

Signal

Read the Docs v: stable
Versions
latest
stable
v1.0.1
v1.0.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.