mjb

foobar2000 CD deemphasis component options

mjb
Mar 26th, 2024 (edited)
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. In foobar2000, before any active DSPs are applied, the decode postprocessors are applied; this can't be turned off unless the component offers that option somewhere in foobar's Preferences.
  2.  
  3. Deemphasis components come in both flavors (DSPs or postprocessors) so you can control at what stage they are applied.
  4.  
  5. If I undestand correctly...
  6.  
  7. Playback chain:
  8. file -> decoder -> postprocessor components -> DSPs (if activated in preferences) -> OS/soundcard
  9.  
  10. ReplayGain scan chain:
  11. file -> decoder -> postprocessor components -> ReplayGain scanner
  12.  
  13. Conversion chain:
  14. file -> decoder -> postprocessor components (if enabled in converter) -> DSPs (if activated in converter) -> encoder -> output file.
  15. Then, output file -> tag copy (if enabled in converter) and ReplayGain scan (if enabled in converter).
  16.  
  17. Since ReplayGain scanning happens after decode postprocessing, it is probably ideal to not do *playback* deemphasis via a DSP, and to only do it via a postprocessor. For *conversion*, it doesn't matter which you use, because the ReplayGain scanning only happens after the output files are written, i.e. after the postprocessor *and* DSPs have acted on the audio. The converter setup lets you toggle postprocessing (by all components that do it, no way to see which ones they are) and/or activate DSPs; this is separate from the playback DSP setup elsewhere in foobar.
  18.  
  19. HydrogenAudio user "lvqcl" made foo_dsp_deemph which does deemphasis if it is configured to be an active DSP *and* the file has PRE_EMPHASIS tag value of "1", "on", or "yes". He also made foo_deemph decode postprocessor which does deemphasis upon playback of any file which has the aforementioned PRE_EMPHASIS tag. The current version of each component is 1.1.1 and is available at the first post of the thread at <//hydrogenaud.io/index.php/topic,99394.0.html>.
  20.  
  21. Meanwhile, HydrogenAudio user "mudlord" made foo_dsp_effect, which originally had a deemphasis postprocessor built-in, but then he moved that functionality out into his own foo_dsp_deemph component which has both a postprocessor and a DSP set in one. The current version of foo_dsp_deemph is 0.2 and used to be available on the foobar2000.org/components page but was removed without explanation. Someone posted a copy at <//hydrogenaud.io/index.php/topic,99394.msg1005123.html#msg1005123>, however. Meanwhile, mudlord's foo_dsp_effect also has an IIR Filter DSP which you can also configure to do CD deemphasis.
  22.  
  23. Summary:
  24.  
  25. component postprocessor? DSP?
  26. =========================== =========================== =========================
  27. foo_deemph (by lvqcl) YES (tagged lossless files) NO
  28. foo_dsp_deemph (by lvqcl) NO (since v0.20) YES (tagged files)
  29. foo_dsp_deemph (by mudlord) YES (tagged files) YES (any files)
  30. foo_dsp_effect (by mudlord) NO YES (any files, via IIR Filter)
  31.  
  32. These are all filters for 32-bit builds of foobar2000, although someone did post a 64-bit build of foo_deemph at <//hydrogenaud.io/index.php/topic,99394.msg1017997.html#msg1017997>.
  33.  
  34. My choice, for now, is to use mudlord's foo_dsp_deemph for its postprocessing only; it applies to files with the PRE_EMPHASIS tags as described above. I don't use its CD deemphasis DSP. I do have foo_dsp_effect installed, but I am not using its CD deemphasis IIR filter.
  35.  
  36. Regardless of what you install, you have to be careful to only have one deemphasis filter applied to a given playback or conversion operation. Generally this means you don't set things up such that a DSP's filter is applied when a postprocessor already took care of deemphasis. You also need to be aware that if you have foobar2000 transfer tags after conversion, your new deemphasized files may end up having erroneous PRE_EMPHASIS tags.
  37.  
Add Comment
Please, Sign In to add comment