Re:Show HN: Intentionally subtle headphone crossfeed filter
by LnxPrgr3 on Wednesday December 31, 2014 @08:21AM
(#8819232)
Turns out, we have two left-right localization cues—intensity difference, and timing difference. Sounds on the left hit the right ear a bit late and filtered. This filter aims to reproduce that, effectively mimicking well-placed stereo speakers on headphones.
[ Parent
| on HN ]
Re:Show HN: Intentionally subtle headphone crossfeed filter
by thisjepisje on Wednesday December 31, 2014 @08:31AM
(#8819271)
Thanks for the clarification. I've played a bit with the Haas effect myself, it's a nice way to separate sounds when you do mix for headphones.
Besides the delay, what filter does your program apply when carrying stuff from the left to the right?
Re:Show HN: Intentionally subtle headphone crossfeed filter
by LnxPrgr3 on Wednesday December 31, 2014 @08:45AM
(#8819297)
This is the goal transfer function (x is frequency in Hz):
return pow(10, (x <= 250 ? 1 : 1 + 1.5*log2(x/250) + (x > 5000 ? 5*log2(x/5000) : 0)) / -20);
This is the header library that generated the filter to match this as closely as possible: https://gist.github.com/LnxPrgr3/8262666Then, it's time-reversed and the sign flipped, and an impulse is added at sample 0. This filter translates to mid/side stereo, applies this kernel to the side channel, then converts back to L/R for playback.