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

left and right balance issues

SigmaDSP & SigmaStudio Anmin Jul 20, 2026 00:00 8 replies Original on forum ↗
Thread Summary

Thread Summary

The user asked how to create a left/right channel balance with a pan function for the ADAU1401. The solution involved using Linear Interpolators before each multiplier with (Cosine(x))^2 curves for smooth transitions, ensuring the gain is increased by 6dB after balancing to maintain the original volume level. The configuration used 69 instructions and included optional gain and lowpass filter blocks.
AI Generated Content
Subscribe
Anmin Question
Jul 20, 2026 00:00

Dear members,
i want to know adau1401 how to created the left/right channel balance as pan function as below graphs, i tried below schematic, but no used, or we can use the volume table to find the lookup table to define the balance issues?thanks a lot.

software

sigmaStudio 4.7

processors and dsp

Processors and Microcontrollers

pastedimage1784600681288v2.png
pastedimage1784600681288v2.png
pastedimage1784600309378v1.png
pastedimage1784600309378v1.png
DaveThib Reply
Jul 21, 2026 00:00

Hello Anmin,

This is actually a little tricky to do! I do not have an example project to send over. I will hack at this to see what I can come up with.

Your idea of doing the subtraction is what I thought about first but there are some little details that were not great plus the summed signals need to be equal in level. So if you have a 0dB signal into both channels Then if you set it to the middle, the result needs to be two 0dB signals each being a sum of the two channels so this means L=-6dB and R=-6db so the sum would equal 0dB.

I will think about this more...

If anyone else on the forum wants to chime in please do!!!

Thanks!

Dave T

Anmin Reply
Jul 21, 2026 00:00

Dear Dave T,
Thanks for you help, and looking forward your ideas.

KJBob Reply
Jul 22, 2026 00:00

Hello Anmin & Dave,

Placing a Linear Interpolator before each multiplier allows for a variety of curves to give your balance control a smooth feel.

The Left channel's interpolation table is based upon (Cosine (x))^2 from 0 to 90 degrees. The Right channel is the same curve, flipped right to left. The two curves add to 1.0 everywhere.

The entire project uses 69 instructions as shown. I needed the gain block because my audio source has low level -- you can eliminate it or else build gain into the interpolator tables. And the lowpass filter may not be needed as well. Linear Interpolators are highly efficient while featuring smooth transitions between points -- eliminating "zipper noise."

Best regards,

Bob

Balance-control.zip

Balance-control-sch.png
Balance-control-sch.png
Anmin Reply
Jul 24, 2026 00:00

Dear KJBob,
Perfect, this is what i want, thanks a lot.

Beder Reply
Aug 17, 2026 00:00

Hi Bob

Can you please tell me how to achive Cathedral Reverb using ADAU1466

Thank you

KJBob Reply
Aug 19, 2026 00:00

Hi Beder,

Assuming that the stock reverb from the -1466 Toolbox is inadaquate, there's several possibilities. Perhaps the simplest is to use two or more stock reverbs, a basic example is shown below:

There's other ways as well, yet your subject deserves its own thread. Ask about it as a brand new question, then perhaps others experienced with reverb may help. Although I've helped with some reverb questions on EZ, I'm not an authority with it.

Best regards,

Bob

LotsaReverb_1466_sch-2.png
LotsaReverb_1466_sch-2.png
Beder Reply
Aug 19, 2026 00:00

Thanks, Bob

I'll try your feedback hack

I've posted a new question already but still had no replies

KJBob Reply
Aug 20, 2026 00:00

Hi Beder,

Sorry, I neglected to include -24 dB (multiply by 0.063) pads in series with each feedback loop. Please see the modified version above. As originally shown, the thing screams as there's too much feedback. In any event, I've got another circuit which works better -- I'm waiting for you to post your question in this forum (your present question is in Precision Microcontrollers, a forum whose inhabitants have little use for SigmaStudio.

Best regards,

Bob