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

pink noise generator

SigmaDSP & SigmaStudio gine Jun 20, 2025 00:00 10 replies Original on forum ↗
Thread Summary

Thread Summary

The user encountered issues with a Pink Noise Generator in Sigma Studio Plus due to sample rate mismatches. The solution involved ensuring the MCLK input and divider values were correctly set to match the 48KHz sample rate. Additionally, the user faced a problem with a 2nd order IIR filter not functioning as a lowpass filter, which was resolved by correctly entering the signs of the A1 and A2 coefficients. The user then reported a discrepancy in the center frequency of a bandpass filter, which was half of the designed value, possibly due to normalization issues in Sigma Studio Plus 4.7.
AI Generated Content
Subscribe
gine Question
Jun 20, 2025 00:00

Hi Sir

I can't find Pink Noise Generator in Sigma Studio Plus.

Would you help me to use Pink Noise Generator on Sigma Studio Plus?

thanks

Audio Signal Processors

software

adau1467

SigmaDSP Audio Processors

sigma studio plus 2.3.0.3

Harishgowtham Reply
Jun 20, 2025 00:00

Hello gine,

Below is where you can find pink filter.

Regards,

Harish

pastedimage1750401041188v1.png
pastedimage1750401041188v1.png
gine Reply
Jun 20, 2025 00:00

Hi
Harish

thanks you very much for quick reply!

gine Reply
Jun 20, 2025 00:00

Hi Harish

with Pink filter, error occured " Schematic :Link failed.

pleaes help

pastedimage1750402389930v1.png
pastedimage1750402389930v1.png
Harishgowtham Reply
Jun 20, 2025 00:00

Hello gine,

You will have to feed an input to this block to get it compiled. Any block's input pin shouldn't be left unconnected, otherwise you will get an error.

Regards,

Harish

pastedimage1750405106548v1.png
pastedimage1750405106548v1.png
gine Reply
Jun 20, 2025 00:00

Hi Harish
thank you so much.

I have one more question.

I am trying 2nd order filter using IIR coefficient.

General 2nd order filter(IIR coefficeint) works well as high pass filter.

but, it is not working as lowpass filter.

Low pass filter coeffient for 95hz Butterworth 2nd, is

0.0000383227647783784
0.0000766455295567569
0.0000383227647783784
1.98241403570329
-0.982567326762402

but when I put it,
filter doen't work as low pass filter.

would you help?

pastedimage1750407012139v1.png
pastedimage1750407012139v1.png
Harishgowtham Reply
Jun 20, 2025 00:00

Hello gine,

It works as expected LPF for me. I used the attached coefficients and entered, make sure that you entered the signs of A1 and A2 coefficients correctly like below.

You can see, I'm feeding a 100Hz signal to the filter and the filter curve is at -3dB at 100Hz. since the meter shows RMS level, it's oscillating between -6dB and -7dB. which is an expected result.

Regards,

Harish

pastedimage1750410449835v1.png
pastedimage1750410449835v1.png
gine Reply
Jun 20, 2025 00:00

Hi Harish

will test it on Monday and get back to you.
thank you very much!

gine Reply
Jun 23, 2025 00:00

Hi Harish

biquad coeffient works well with the general filter. thanks

but I found something wrong.

in this file, highpass frequency is 90hz, Lowpass filter is 110hz,
so, center frequency is 100hz.

bandpass test.ssprj

but I measure audio output,
it shows center frequency is 50hz (half of filter design center frequency).

it is because of normalization?
How can I fix it?

(same design with sigma studio 4.7, it works Normal)

thanks

pastedimage1750666563366v1.png
pastedimage1750666563366v1.png
pastedimage1750667400704v2.png
pastedimage1750667400704v2.png
Harishgowtham Reply
Jun 23, 2025 00:00

Hello gine,

It can be due to mismatches in the sample rate. The sigma studio sample rate and DSP sample rate (start pulse register) must be the same.

Your sigma studio sample rate is at 48KHz, and your start pulse register is set for Base_fs of CG1 and CG1's ratio N/M=1/6. This setting will produce 48KHz, only if your MCLK_IN is 24.576MHz, because I can see that your clock divider is set for '8'.

If your MCLK_IN is 12.288MHz and the divider value is '8' then the calculation will be wrong. CG1 will only produce 24KHz which will effectively be the DSP sample rate. You can see the mismatch here; this will cause the filter curve to be at wrong place.

For 12.288MHz MCLK, you have to set the divider value as '4' to get 48KHz clock as CG1's output (CG1 x 1 output).

For 24.576MHz MCLK, you have to set the divider value as '8' to get 48KHz clock as CG1's output (CG1 x 1 output).

For both cases, feedback divider should be '96' and CG1's N/M = 1/6 which is correctly set in your project.

Please check if the MCLK input and divider values are correct in your project.

Regards,

Harish

gine Reply
Jun 23, 2025 00:00

hi Harish

thank you so much!