MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / pre_emphasis

Function pre_emphasis

python/mlx/data/features/audio.py:89–96  ·  view source on GitHub ↗
(coeff=1.0)

Source from the content-addressed store, hash-verified

87
88
89def pre_emphasis(coeff=1.0):
90 def pre_emphasis_impl(x):
91 xm1 = np.roll(x, 1, -1)
92 xm1[..., 0] = x[..., 0]
93 res = x - coeff * xm1
94 return res
95
96 return pre_emphasis_impl
97
98
99def windowing(window, windowtype):

Callers 1

mfscFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected