|
Post by Rob on Apr 12, 2016 20:18:35 GMT 1
Hi,
So, to be clear..You need a 64bit DSP version of the voltage2dB? It shouldn't be too hard to make, and with editable vref input. Will look into it soonish..
|
|
|
Post by jhudstudio on Apr 12, 2016 23:22:03 GMT 1
Yes please 64bit dsp module. OMG really That would be sooooooo awesome
|
|
|
Post by Rob on Apr 14, 2016 18:25:55 GMT 1
That the calculations are a bit off is probebly because it's an approximation, to keep the CPU usage down. Subcontrol version is the math.h library. Could you tell me why you want them in DSP?
|
|
|
Post by Rob on Apr 17, 2016 15:43:43 GMT 1
Ok good, it isn't too hard to set things up. Yea, post problems here or at the SDK usergroup.
|
|
|
Post by Rob on Apr 22, 2016 18:49:24 GMT 1
|
|
|
Post by Rob on Apr 26, 2016 19:30:50 GMT 1
If you use the module for display purposes, code a subcontrol module with the math.h functions for high accuracy ( no need to calc at audiorate ).
|
|
|
Post by Rob on Apr 29, 2016 12:26:47 GMT 1
I don't know how to put that code up above in the code I already have? But I am determined to figure it out. I would place this code in the .h file, so it's usable in the .cpp: inline double fastPow(double a, double b) { union { double d; int x[2]; } u = { a }; u.x[1] = (int)(b * (u.x[1] - 1072632447) + 1072632447); u.x[0] = 0; return u.d; } And use it in the .cpp with: neededresult = fastPow( input A, input B );
|
|
|
Post by jhudstudio on Apr 29, 2016 16:15:38 GMT 1
Ok thanks a lot! I will ask more questions if I get stuck. You have been a great help and so has the SDK Synthedit user group also. I have been reading the learncpp website just for the basics and more as time goes on. Then I will be sure of the right questions to ask.
|
|