Andrew
Developer
Posts: 110
Posts: 110
|
Post by Andrew on Jun 23, 2018 11:50:37 GMT 1
@rob - here is sqrt taper example, maybe it will clarify some things:
float balance = Clip02(balanceKnob+1.f);//assume -1 +1 balanceKnob range - clip internal range to 0-2 to prevent user-error i.e. sqrt(negative number) = NaN
if (balance <= 1.f) { LevelLeft = 1.f; LevelRight = sqrtf(balance); } else { LevelLeft = sqrtf(1.f-(balance - 1.f));//subtract 1 to get in 0-1 range LevelRight = 1.f; }
Edit: Here is the panning version (from my Stereo panning module that I'm coding today  ):
if (pan >= 0.f)//pan in -1 +1 range inernally { Left = inputL * sqrtf(1.f-pan);//lower side Right = inputR + inputL * sqrtf(pan);//blend side } else { Left = inputL + inputR * sqrtf(-pan); Right = inputR * sqrtf(1.f+pan); }
Note: in the balance I'm switching/branching only the Left/Right Levels, in the pan version I'm branching everything.
Cheers
|
|
Andrew
Developer
Posts: 110
Posts: 110
|
Post by Andrew on Jun 23, 2018 19:33:50 GMT 1
After checking it out, that taylor sin/cos approximation is a bit too inaccurate for the range it is used(0 to PI/2), here is my new version:
float taylorSin (float x) { float x2 = x*x; return (1.f/5040.f)*x*(x2*(x2*(42.0f-1.0f*x2)-840.0f)+5040.0f); } float taylorCos(float x) { float x2 = x*x; return (1.f/720.f)*(x2*(x2*(30.0f-1.0f*x2)-360.0f)+720.0f); }
|
|
Andrew
Developer
Posts: 110
Posts: 110
|
Post by Andrew on Jul 4, 2018 18:02:48 GMT 1
@rob - I can add a Stereo Balance Control module to my pack if you don't have enough time on your hands, just give me a shout.
|
|
|
Post by Rob on Jul 6, 2018 6:54:21 GMT 1
Hey Andrew, time is indeed a problem for me atm. Sure, add the balance module to your pack. My vacation starts soon tho!
|
|
|
Post by twoifbysea on Jul 6, 2018 7:30:30 GMT 1
Thank you both
|
|
|
Post by Rob on Jul 6, 2018 8:02:19 GMT 1
ps: I got Daz his complete SDK2 sourcecode, he kindly donated all to be converted. There is also some OpenGL stuff, declined that for now. Now I all need is more time. 
|
|
|
Post by twoifbysea on Jul 6, 2018 15:35:56 GMT 1
ps: I got Daz his complete SDK2 sourcecode, he kindly donated all to be converted. There is also some OpenGL stuff, declined that for now. Now I all need is more time.  Wow, that's exciting!
|
|
Andrew
Developer
Posts: 110
Posts: 110
|
Post by Andrew on Jul 6, 2018 20:31:55 GMT 1
Hey Andrew, time is indeed a problem for me atm. Sure, add the balance module to your pack. My vacation starts soon tho! Cool beans, consider it done. Not on vacation but got a deadline myself - end of this month, i.e. before my studies begin again. Looking forward to the ports of the Daz modules!
|
|
|
Post by twoifbysea on Jul 7, 2018 21:45:31 GMT 1
Rob, is your intent to covert the DD modules to 64 bit?
|
|
|
Post by Rob on Jul 8, 2018 8:28:54 GMT 1
Yes, it sure is. He made a lot of modules in SDK2, so don’t expect anything very soon.
|
|
|
Post by grinderone on Jul 20, 2018 1:06:29 GMT 1
Yes, it sure is. He made a lot of modules in SDK2, so don’t expect anything very soon.Exciting all the same.
|
|
dani
New Member
Posts: 1
Posts: 1
|
Post by dani on May 17, 2019 5:07:56 GMT 1
@ andrew, @ admin, @ twoifbysea, @ grinderone, hola a todos, soy nuevo en desarrollo (soy un técnico de sonido), sé que el tema es antiguo pero tal vez pueda arrojar un poco de luz y dar información a otros usuarios que como yo, las matemáticas van,
explicó jejeje de una manera simple, panorámica SIEMPRE es una señal monofónica (no L y no R), imagina que en el mezclador tienes varias señales de entrada y quieres enviarlas y mezclarlas un solo canal llamado maestro, cuando se mezclan instrumentos reales, casi todos serán señales monofónicas (micrófonos, instrumentos de cuerda ...) que se envían a un canal estereofónico (maestro). más tarde, el productor le dice que la trompeta quiere que se escuche más en el canal R del maestro, y eso es lo que hace la panorámica, tiene una entrada y dos salidas y dirige la señal más hacia un canal u otro (el módulo x -mix de jeff es una panorámica perfecta (Pan).
Balanced es SIEMPRE una señal estereofónica
ahora preste atención a Master, cuando levante la trompeta solo para R descompensada Master haciendo que R suene más alto que L, y aquí viene el balance El Balance modifica el volumen de un canal que deja el otro intacto, puede ser de un solo botón que alimenta solo un canal (nunca corta) o en dos volúmenes independientes
los dos controles deslizantes del maestro de un mezclador son realmente un equilibrio (contenedor con dos entradas y dos salidas, usted ingresa dos vca conectados a los controles deslizantes (o mando) y parchea la entrada L a una vca para dar salida a L, y la entrada R a otra vca para generar R, tan simple es un balance, si se ajusta el control deslizante de 0 a 13 y vca a decibelios, se obtiene el ejemplo de mezclador maestro
|
|