|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
Rep Power: 0 ![]() |
Help me please with LOG function See example: [color=blue]input[/color] in; [color=blue]output[/color] out; [color=blue]control[/color] volume=0x19999999, exponent=0x2ccccccc; [color=blue]temp[/color] t [color=lime];code[/color] [color=magenta]log[/color] t, in, exponent, 0x0; [color=magenta]macs[/color] out, 0x0, t, volume; [color=blue]end[/color] [color=#0000ff][/color] [color=white]Situation: when moving exponent slider the shape of output signal does not change smooth, but unevenly(bouncely).[/color] [color=#ffffff]Problem: WHY DOES IT HAPPEN SO ?????[/color] [color=#0000ff][/color] [color=white]
I am sorry for my English if my spelling isn't right [/color] |
|
|
|
|
|
#2 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
For one thing the range of the Max Exponent parameter is 0x1 to 0x1F (1 to 31), while the control's range is 0x0 to 0x7FFFFFFF (fractional values), so I am unsure what would happen when you use the instruction with invalid parameters.
|
|
|
|
|
|
#3 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
Quote:
|
|
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
Rep Power: 0 ![]() |
Thanks. I solved a problem when I multiplied the value of exponent slider by 0x1F. And now when slider ranges from 0 to 2147483647, then exponent ranges from 0 to 31.
[color=white]
I am sorry for my English if my spelling isn't right [/color] |
|
|
|
|
|
#5 | |
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
Rep Power: 0 ![]()
|
... Are u doing something like yhis?
Quote:
|
|
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
Rep Power: 0 ![]() |
Yes, you're right.
But there is one bound by 5 dB at 52% of "amount" slider. But now it isn't very big problem for me. But it is still interesting, why there is such bound. |
|
|
|
![]() |
| Thread Tools | |
|
|