ΣSigmaStudio Ask AI Русский Log in

Loudness block induces noise with ADAU1452 at 96kHz

SigmaDSP & SigmaStudio Chri May 19, 2017 00:00 13 replies Original on forum ↗
Subscribe
Chri Question
May 19, 2017 00:00

Hi,

I try to use the block "Loudness" but this one adds a distortion sound to the sound. Even at low volume.

What do not I do well?

Thank you for your help!

Chris

Audio Signal Processors

adau1452

SigmaDSP Audio Processors

DaveThib Reply
May 19, 2017 00:00

Hello chri,

We are pretty good on this forum but we are not clairvoyant. Please attach your SigmaStudio project.

Also let us know the details of your setup and what type of material you are listening to. What is the nature of the distortion. How bad is it? Etc. The more detail the easier it is for us to help you.

Dave T

Chri Reply
May 19, 2017 00:00

Hi Dave T,

Many thanks for your reply.

My appologies...

Please find my test project.

I set a swith to directly listen the difference with or without loudness

block.

Please also find a small mp3 file with the exemple of bad versus good

sound...

When it's good (bypassing the loudness) the sound is quite good but with

the loudness block it is horrible.

I use a Roland Quad Capture soundcard for playback and recording.

I also use the ADAU1452 evaluation board with SigmaStudio 3.14.

If you need more info, please let me know.

Many thanks for your help.

Best regards.

Chris

2017-05-19 15:59 GMT+02:00 DaveThib <

analog@analog-vm.hosted.jivesoftware.com>:

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302347?commentID=302347&et=watches.email.thread#comment-302347>;

DaveThib Reply
May 19, 2017 00:00

Hello Chris,

Thanks so much for the awesome info! I will digest it and see what I can find.

However, right away I can say that if you are running at 96kHz then that alone is a problem. This evaluation board cannot run at 96kHz without some difficult modifications. The SigmaDSP can run at that rate and the codec can run at that rate but since this board was designed to be a simple and low cost as possible the codec is configured in standalone mode which is only at 48kHz. So this may be part of the problem.

I will let you know what else I find.

Thanks,

Dave T

Chri Reply
May 19, 2017 00:00

Hi Dave,

I'm not sure that i understood the whole explanation (codec) but thanks for

your help!

I changed the internal frequency of the dsp in 96k. For many others blocks,

it works in 96k without problems ...

Best regards.

Chris

Le 19 mai 2017 5:27 PM, "DaveThib" <analog@analog-vm.hosted.jivesoftware.com>

a écrit :

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302368?commentID=302368&et=watches.email.thread#comment-302368>;

DaveThib Reply
May 19, 2017 00:00

Hello Chris,

You are only sending out every other sample out of the core. The codec is running at 48kHz and you cannot change it without hardware modifications that are very difficult. So if an algorithm in the DSP code is creating harmonics above 24kHz then it will alias. You could look at the output with an FFT and see the issue. For some material it will not be easy to hear but for others it is audible.

Then if you are using the ADC you are getting repeated samples. So the ADC samples at 48kHz but since the core is running at 96kHz it will pick up and process each sample twice. This also has distortion components that you can see with an FFT of the signal.

Chri Reply
May 20, 2017 00:00

Hi Dave,

Realy helpfull!

By hardware modification you mean replacing dac?

And if I use the optical digital output? I need to try...

Same problem with the adc?

Many thanks. Best regards.

Chris

Le 19 mai 2017 7:04 PM, "DaveThib" <analog@analog-vm.hosted.jivesoftware.com>

a écrit :

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302379?commentID=302379&et=watches.email.thread#comment-302379>;

Chri Reply
May 20, 2017 00:00

Hi Dave,

I just make some tests.

With core base Fs at 48 kHz the problem is the same...

On the eval board, the DAC / ADC run at 192 kHz 24 bits...

So it seems that it is not possible to use the loudness block even with

standard settings...

Thanks for your help!

Best regards.

Chris

2017-05-19 19:04 GMT+02:00 DaveThib <

analog@analog-vm.hosted.jivesoftware.com>:

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302379?commentID=302379&et=watches.email.thread#comment-302379>;

Chri Reply
May 22, 2017 00:00

Hi Dave,

I hope that your weekend was wonderfull.

With my last test I try spdif optical input.

The problem remains the same. Horrible noise with loudness block.

Thanks for your help.

Chris

2017-05-19 19:04 GMT+02:00 DaveThib <

analog@analog-vm.hosted.jivesoftware.com>:

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302379?commentID=302379&et=watches.email.thread#comment-302379>;

DaveThib Reply
May 22, 2017 00:00

Hello Chris,

There is something that is not setup properly. Please attach your project.

The ADC and the DAC on the eval boad can only run at 48kHz.

The optical ports can only run at 96kHz max.

The hardware modification require cutting traces that are grounding the communications port of the codec. Then soldering wires onto the pins without them touching the ground traces you just cut. Then wiring this up to the USBi and adding another CLATCH (SS) wire onto the USBi.

If you do not have a microscope to do this soldering then it will be VERY difficult to do.

Once the connections are made then you can insert a codec into the SigmaStudio project and be able to control both the DSP and the Codec from SigmaStudio and therefore change the settings on the codec. There was one person who did this and he posted pictures on the forum but I would have to search to find it.

Dave T

Chri Reply
May 22, 2017 00:00

Hi Dave,

Thank you for your reply!

Here is the latest version of my project.

Normally, everything is set to 48 kHz.

The switch between alanog and optics works properly, but the loudness still

does not work.

What do I have to do to make it work?

Thank you very much for your help!

Best regards.

Chris

2017-05-22 16:02 GMT+02:00 DaveThib <

analog@analog-vm.hosted.jivesoftware.com>:

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302608?commentID=302608&et=watches.email.thread#comment-302608>;

DaveThib Reply
May 22, 2017 00:00

Hello Chris,

Thanks for the file. I was able to reproduce the issue here with my eval board.

Here is what I did... (bear with me, this was a process and this documents what I did)

I did some research and I did find a report of this issue to the programming team. They have fixed the issue and is due to be included with release version 3.15. Since that release is delayed we have made an interim release of 3.14.1 beta where some fixes are there. So I actually had not updated so I did that on my machine and still found the problem to be there. So in the internal notes it appears that this bug was introduced when we updated from ver 3.13. So I went back to 3.13 and still bad, so I went back to 3.12 and still bad but I got compilation errors. So I simplified the project down to only inputs and outputs and a volume control and still bad!

So then I just started with a new file in ver 3.12. It compiled. So I added the loudness block and it worked.

So I added the schematic elements you were using to recreate from scratch your project and it worked.

So then I opened that project in rev 3.13 and it worked.

So then I opened the project in rev 3.14.1 beta and it worked!

So there must be two issues, one was a bug in the loudness block and another was that your file was somehow corrupted. So I will attach the project I built and it should work for you. Note, that I did not set the ASRCs so they might not be set properly. I did check your project and you did have it setup properly for the optical input.

Now, in our internal reports there was a mention of the loudness block not working at higher sample rates. Keep an eye out for that issue. The issue was that the low filter properly adjusts when going up to higher sample rates but the high end filter does not change when the sample rate is changed.

Also, in case you want to read about the loudness block you can find it here:

https://wiki.analog.com/resources/tools-software/sigmastudio/toolbox/adialgorithms/loudnesslowandhigh

The pointer to this entry from the "F1" key seems to be bad.

Thanks,

Dave T

Chri Reply
May 23, 2017 00:00

Dear Dave,

Thank you so much for this wonderfull answer!

It is impressing!

Your file is missing but I retry from scratch...

I'll keep you in touch.

Best regards.

Chri

s

2017-05-22 20:09 GMT+02:00 DaveThib <

analog@analog-vm.hosted.jivesoftware.com>:

EngineerZone <https://ez.analog.com/?et=watches.email.thread>;

Re: Loudness block induces noise with ADAU1452 at 96kHz

reply from DaveThib

<DaveThib> in *SigmaDSP

Processors and SigmaStudio Development Tool* - View the full discussion

<https://ez.analog.com/message/302658?commentID=302658&et=watches.email.thread#comment-302658>;

DaveThib Reply
May 23, 2017 00:00

Hello Chri,

The file is there. You have to look near the bottom of the post in the attachments section. I know it is easy to not see it. Lots of people miss the attachments.

Dave T