Jump to content
IGNORED

CD Pre-emphasis: How to detect? What software to rip? Tagging?


Recommended Posts

Hi all,

 

@Archimagopost about pre/de-emphasis (https://archimago.blogspot.com/2020/09/how-to-cd-pre-emphasis-and-dealing-with.html) got me thinking about this...

 

I found a Roon-based filter that will do the de-emphasis: https://community.roonlabs.com/t/de-emphasis-curve-was-parametric-eq-functions/123336/11?u=miguelito

 

However, a few questions remain:

 

1- XLD seems to support detection of pre-emphasis in both the subcode and TOC (https://wiki.hydrogenaud.io/index.php?title=Comparison_of_CD_rippers). But how is this then used? Does it write a tag to the ripped file to indicate this? 

 

2- Apparently not all CD drives support extraction that would allow you to detect pre-emphasis in the subcode. How do I find out if my CD drives support this?

 

Thx!

mini+Roon > dCS Rossini DAC + Rossini Master Clock >

Audio Note Kondo Ongaku > Avantgarde Duo Mezzo G2

system pics

Link to post
Share on other sites

I have only one pre-emphasis CD, a harpsichord Bach BWV 1080. It is recorded on 1980s.

 

When ripped with Exact Audio Copy, there is pre-emphasis flag is set on its CUE sheet. ripped PCM data is not de-emphasised: raw PCM is extracted to WAV or FLAC. When listened to the PCM without de-emphasis, high frequency is super harsh, with constant high frequency hiss and I cannot bear to listen to it.

 

It must be noticeable the sound is very wrong when you have a pre-emphasis CD and listen to it without de-emphasis.

 

Do you have any pre-emphasis CD ?

 

 

 

Sunday programmer since 1985

Developer of PlayPcmWin

Link to post
Share on other sites

Pretty sure I do. Some of the 80s releases are thin sounding and I always assumed they were “mastered for walkman” so that there was not that much bass, but I am starting to think that it’s probably pre-emphasis also.

mini+Roon > dCS Rossini DAC + Rossini Master Clock >

Audio Note Kondo Ongaku > Avantgarde Duo Mezzo G2

system pics

Link to post
Share on other sites

If those thin sounding CDs sound normal with conventional CD player, it is definitely pre-emphasis CD.

 

Then it is possible for your USB CD drive to check if it support pre-emphasis detection or not.

with Exact Audio Copy, create cue sheet, open the cue file with a text editor and find "FLAGS PRE"

 

I attached the cue sheet of my pre-emphasis CD.

 

Quote

REM GENRE Classical
REM DATE 1985
REM DISCID 7F0B370A
REM COMMENT "ExactAudioCopy v1.0b3"
PERFORMER "Jean-Sebastien Bach"
TITLE "L'art de la fugue - CD 2"
FILE "CD.wav" WAVE
  TRACK 01 AUDIO
    TITLE "2 fugues miroir - Contrapunctus 12 a 4 voix - rectus"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 00:00:00
    INDEX 01 00:00:32
  TRACK 02 AUDIO
    TITLE "2 fugues miroir - Contrapunctus 12 a 4 voix - inversus"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 03:31:72
    INDEX 01 03:32:22
  TRACK 03 AUDIO
    TITLE "2 fugues miroir - Contrapunctus 13 a 3 voix - rectus"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 06:59:05
    INDEX 01 07:10:37
  TRACK 04 AUDIO
    TITLE "2 fugues miroir - Contrapunctus 13 a 3 voix - inversus"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 01 09:38:52
  TRACK 05 AUDIO
    TITLE "Fugue inachevee - Contrapunctus 14 a 4 voix,  fuga a 3 soggetti"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 12:15:65
    INDEX 01 12:29:67
  TRACK 06 AUDIO
    TITLE "4 canons - Canon in Hypodiapason - Canon alla ottava, a 2 voix, theme inversu..."
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 21:53:67
    INDEX 01 21:57:42
  TRACK 07 AUDIO
    TITLE "4 canons - Canon alla decima, contrapunto alla terza, a 2 voix, theme inversus"
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 24:30:65
    INDEX 01 24:34:12
  TRACK 08 AUDIO
    TITLE "4 canons - Canon alla duodecima, in contrapunto alla quinta, a 2 voix, theme ..."
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 29:30:57
    INDEX 01 29:32:05
  TRACK 09 AUDIO
    TITLE "4 canons - Canon (in Hypodiatessaron), per augmentationem in contrario motu a..."
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 31:42:67
    INDEX 01 31:45:60
  TRACK 10 AUDIO
    TITLE "Fugue inachevee completee - Contrapunctus 14 a 4 voix, 4 themes (3e nom BACH ..."
    PERFORMER "Jean-Sebastien Bach"
    FLAGS PRE
    INDEX 00 36:58:12
    INDEX 01 37:07:12

 

preemphasis_example_cuesheet.txt

 

Sunday programmer since 1985

Developer of PlayPcmWin

Link to post
Share on other sites
3 hours ago, audiofool said:

Cool!  How does HQPlayer determine it needs pre-emphasis?

 

It is from the CDDA data.

 

3 hours ago, audiofool said:

Is there a way to set a tag in a FLAC file to force it?

 

No, once the data ends up in FLAC it should be already corrected without need for such measures.

 

3 hours ago, audiofool said:

Does HQPlayer do anything with HDCD?

 

No.... Only standard CDDA (RedBook), not any non-standard additions like HDCD or MQA.

 

But you won't find CDs that would have HDCD and pre-emphasis.

 

Signalyst - Developer of HQPlayer

Pulse & Fidelity - Software Defined Amplifiers

Link to post
Share on other sites
39 minutes ago, Miska said:

 

It is from the CDDA data.

 

No, once the data ends up in FLAC it should be already corrected without need for such measures.

 

So even CD's I've ripped years ago should be handled correctly by HQPlayer for pre-emphasis since it is embedded in the CDDA data and not depending on the TOC?  Is this a newer feature of HQPlayer?

 

41 minutes ago, Miska said:

But you won't find CDs that would have HDCD and pre-emphasis.

 

Good to know, I didn't know they were mutually exclusive.

 

43 minutes ago, Miska said:

 

No.... Only standard CDDA (RedBook), not any non-standard additions like HDCD or MQA.

 

I have a number of CD's that are HDCD.  I am using music forums to find them since I don't believe there is any way to know for sure from the CDDA data stream?

 

Link to post
Share on other sites
2 hours ago, audiofool said:

So even CD's I've ripped years ago should be handled correctly by HQPlayer for pre-emphasis since it is embedded in the CDDA data and not depending on the TOC?  Is this a newer feature of HQPlayer?

 

No, you need to use the actual physical media. Already made rips are lost case.

 

2 hours ago, audiofool said:

I have a number of CD's that are HDCD.  I am using music forums to find them since I don't believe there is any way to know for sure from the CDDA data stream?

 

I have three CD's with HDCD. A HDCD decoder will detect from the data stream. I used dbPowerAmp to rip and decode those three to 24-bit FLAC. Note that the check box in the decoder is misleading. It needs to be unset, or otherwise the decoded result will be just clipping harder.

 

I think Microsoft owns HDCD these days. But there are so few discs with it that it is not worth trying to talk to Microsoft and potentially increase license price with decoding support.

 

Signalyst - Developer of HQPlayer

Pulse & Fidelity - Software Defined Amplifiers

Link to post
Share on other sites
1 hour ago, Miska said:

 

No, you need to use the actual physical media. Already made rips are lost case.

 

 

For the lost cases, what about a tag in the flac file that HQPlayer could recognize? ie. preemp=yes

 

1 hour ago, Miska said:

I think Microsoft owns HDCD these days. But there are so few discs with it that it is not worth trying to talk to Microsoft and potentially increase license price with decoding support.

 

I have at least 16 discs and am using ffmpeg to decode, interesting that an HDCD decoder can detect from the data stream.  I'm curious how ffmpeg is avoiding the license fee.

Link to post
Share on other sites
Just now, audiofool said:

For the lost cases, what about a tag in the flac file that HQPlayer could recognize? ie. preemp=yes

 

Technically possible, but just not implemented right now.

 

1 minute ago, audiofool said:

I have at least 16 discs and am using ffmpeg to decode, interesting that an HDCD decoder can detect from the data stream.

 

CD players with HDCD support do it the same way. The watch the least significant bit (LSB) for the encoded pattern. Normally this bit would be used for dither, but on HDCD it is used for control data.

 

2 minutes ago, audiofool said:

I'm curious how ffmpeg is avoiding the license fee.

 

Cutting some corners in this explanation... ffmpeg has a lot of such stuff. It is free and open source, nobody is doing it commercially, so it doesn't make any money someone could sue for "damages".

 

Signalyst - Developer of HQPlayer

Pulse & Fidelity - Software Defined Amplifiers

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...