Go Back   DriverHeaven.net > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP

Notices

Reply
 
LinkBack Thread Tools Display Modes
Old Jun 21, 2005, 06:07 AM   #1 (permalink)
Metallist
DriverHeaven Newbie
 
Join Date: May 2005
Posts: 3
Metallist is on a distinguished road

??? 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
Metallist is offline   Reply With Quote
Old Jun 21, 2005, 06:26 AM   #2 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,058
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

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.
Russ is online now   Reply With Quote
Old Jun 21, 2005, 06:35 AM   #3 (permalink)
radiocolonel.it
DriverHeaven Lover
 
radiocolonel.it's Avatar
 
Join Date: Jan 2005
Location: Italy
Posts: 192
radiocolonel.it is on a distinguished road

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!
__________________

http://www.rossanodembech.it
radiocolonel.it is offline   Reply With Quote
Old Jun 21, 2005, 08:41 AM   #4 (permalink)
Metallist
DriverHeaven Newbie
 
Join Date: May 2005
Posts: 3
Metallist is on a distinguished road

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
Metallist is offline   Reply With Quote
Old Jun 21, 2005, 10:22 AM   #5 (permalink)
radiocolonel.it
DriverHeaven Lover
 
radiocolonel.it's Avatar
 
Join Date: Jan 2005
Location: Italy
Posts: 192
radiocolonel.it is on a distinguished road

... 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
__________________

http://www.rossanodembech.it
radiocolonel.it is offline   Reply With Quote
Old Jun 21, 2005, 12:45 PM   #6 (permalink)
Metallist
DriverHeaven Newbie
 
Join Date: May 2005
Posts: 3
Metallist is on a distinguished road

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.
Metallist is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 01:45 PM. Copyright ©2008 DriverHeaven.net