|
| Notices |
Welcome to the DriverHeaven.net forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
 |
Jun 21, 2005, 06:07 AM
|
#1 (permalink)
|
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
|
Help me please with LOG function
 Help me please with LOG function
See example:
input in;
output out;
control volume=0x19999999, exponent=0x2ccccccc;
temp t
;code
log t, in, exponent, 0x0;
macs out, 0x0, t, volume;
end
Situation: when moving exponent slider the shape of output signal does not change smooth, but unevenly(bouncely).
Problem: WHY DOES IT HAPPEN SO ?????
I am sorry for my English if my spelling isn't right
|
|
|
Jun 21, 2005, 06:26 AM
|
#2 (permalink)
|
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,058
|
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.
|
|
|
Jun 21, 2005, 06:35 AM
|
#3 (permalink)
|
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
|
Quote:
|
Originally Posted by Metallist
 Help me please with LOG function
See example:
input in;
output out;
control volume=0x19999999, exponent=0x2ccccccc;
temp t
;code
log t, in, exponent, 0x0;
macs out, 0x0, t, volume;
end
Situation: when moving exponent slider the shape of output signal does not change smooth, but unevenly(bouncely).
Problem: WHY DOES IT HAPPEN SO ?????
I am sorry for my English if my spelling isn't right
|
the "exponent" is what usually is called "resolution", it is a number between the 1-31 and the highier it is the better is the approximation of the log function!
|
|
|
Jun 21, 2005, 08:41 AM
|
#4 (permalink)
|
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
|
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.
I am sorry for my English if my spelling isn't right
|
|
|
Jun 21, 2005, 10:22 AM
|
#5 (permalink)
|
|
DriverHeaven Lover
Join Date: Jan 2005
Location: Italy
Posts: 192
|
... Are u doing something like yhis?
Quote:
input inl, inr
output outl, outr
static resolution=0x0, tmp=0x0
control amount=0
macs resolution, 0, amount, 0x1f
macints tmp, 0, inl, 0x4
log tmp, tmp, resolution, 0x0
macs outl, 0, tmp, 0.25
macints tmp, 0, inr, 0x4
log tmp, tmp, resolution, 0x0
macs outr, 0, tmp, 0.25
end
|
|
|
|
Jun 21, 2005, 12:45 PM
|
#6 (permalink)
|
|
DriverHeaven Newbie
Join Date: May 2005
Posts: 3
|
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 |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|