|
|||||||
![]() |
|
|
Thread Tools |
|
|
#91 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
I really appreciate the help U and Max, Russ are giving me!!!
|
|
|
|
|
|
|
#92 | ||
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
... Hy Guys, I was making tries with the fuction I posted two days ago:
Quote:
Quote:
Last edited by radiocolonel.it; Jun 18, 2005 at 02:56 AM. |
||
|
|
|
|
|
#93 |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
.... Ok, since nobody replied to the above post I tried to work on what i wanted to do and i came up with something that for me is working and u can control the amount of "companding" so u can use it on both low and stronger sources.
If i made some rough error in the code let me know, i'll be glad to learn from my mistakes!!! ![]() http://www.radiocolonel.it/kx/ColHQ_Compander.zip Last edited by radiocolonel.it; Jun 18, 2005 at 02:58 AM. |
|
|
|
|
|
#94 | |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
That code looks good to me. It looks as though you are doing: f(x) = x / ( 0.25 + (abs(x) * 0.75) ) And your new version looks like: x = input sample, y = amount f(x,y) = x * ( 0.25 + (y * 0.75) ) / ( 0.25 + (abs(x) * (y * 0.75)) ) I do not see any problems with the code, and trying it out, it seems to work pretty good. -Russ |
|
|
|
|
|
|
#95 | |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
|
|
|
|
|
|
|
#96 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Sorry, after further examination I did notice a problem that is causing the output to be phase inverted.
You should be using limitn instead of limit. i.e. limitn tmp_sign, tmp_sign, 0x3, 0x1; -Russ |
|
|
|
|
|
#97 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
![]() Yes that is the formula i used f(x)=(0.25+k)*x/(0.25+k*abs(x)) k=0.75*amount (i just wrote it differently) I'm so glad i've been able to make this little plugin! In almost 6 months i made a lot of progresses in dane programming, at the beginning i was just able to make volume controls!
|
|
|
|
|
|
|
#98 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
I uploaded the last version of the programming guide on my site so u can download it: http://www.radiocolonel.it/kx/KX_Programming.html |
|
|
|
|
|
|
#99 | |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
As for the guide, I do not currently need it (I probably even have a copy of it here somehwere myself), I was just wondering what happened to it. In any case, I am glad that it is still available from your sight. |
|
|
|
|
|
|
#100 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
The code is good, it works nice, the problem is that you can never get a perfectly smooth curve with using log and exp in any situation (division,roots etc.), so it's better to do things the traditional way.
|
|
|
|
|
|
#101 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
I'm so glad it works! At the end i've been able to make some is working!!! This happened because of help of u guys! |
|
|
|
|
|
|
#102 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Do you realize that the guide on your site is missing the graph's?
|
|
|
|
|
|
#103 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
|
|
|
|
|
|
|
#104 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
Ok, now I see them
|
|
|
|
|
|
#105 |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
... Ok, now it works again! http://www.hardwareheaven.com/images/s...big%20grin.gif
|
|
|
|
![]() |
| Thread Tools | |
|
|