MCPcopy Create free account
hub / github.com/AlayaLab/Hive / _getWindowingArray

Function _getWindowingArray

pipeline/code/06_superres_apollo.py:39–45  ·  view source on GitHub ↗
(window_size, fade_size)

Source from the content-addressed store, hash-verified

37 return config
38
39def _getWindowingArray(window_size, fade_size):
40 fadein = torch.linspace(1, 1, fade_size)
41 fadeout = torch.linspace(0, 0, fade_size)
42 window = torch.ones(window_size)
43 window[-fade_size:] *= fadeout
44 window[:fade_size] *= fadein
45 return window
46
47def prepare_audio_chunks(audio_path):
48 try:

Callers 1

process_data_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected