Preemphasis generates a glitch in the start of the output signal
See original GitHub issueThe current implementation of the preemphasis generates a glitch in the output signal.
Steps to reproduce:
a = np.array([9.12e-05, 9.15e-05, 9.13e-05, 6.10e-05, 3.05e-05, 3.07e-05, 6.10e-05])
b = librosa.effects.preemphasis(a)
print(b)
Out:
array([-9.699088e-01, 3.036000e-06, 2.545000e-06, -2.756100e-05,
-2.867000e-05, 1.115000e-06, 3.122100e-05])
Here b[0]
is clearly off.
What can be done is to asign b[1]
to b[0]
. This hack would deal with the glitch while keeping the lengths of b
and a
the same.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
The issues of pre-emphasis, de-emphasis, clipping and ...
The output of a direct FM transmitter with pre-emphasis can not be ... Of course, clipping an audio signal produces major distortion in...
Read more >What is Signal De-Emphasis and When is it Used? - Total Phase
Pre-emphasis works by boosting the high-frequency portion of the signal. This compensates for the high-frequency loss in the cable.
Read more >Pre–emphasis - Signal Processing - MATLAB Answers
I used filter h=[1 -0.95] twice. Each time, x is the input of the filter and y is the output. At both examples,...
Read more >Application Note: Ideal Pre-Emphasis Constant Setting
The MP1825B 4 Tap Emphasis generates emphasis signals up to 4 taps with a maximum transmission speed of 28.1 Gbit/s. As shown in...
Read more >impulse response - pre-emphasis filter - parameter a
I can not find any formula for this problem... Suppose we filter singals with the below pre-emphasis filter: y(n)= ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome 😎 keep up the good work guys!
Yes, considering that values of
coef
are typically very close to1
, i would still support linear extrapolation. Replicatingy[0]
(“constant”) ory[1]
(“reflect”) would break the continuity of the first derivative, and thus create potential artifacts in the emphasized output.