home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Better WMP visualizations
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Symphy" data-source="post: 197252" data-attributes="member: 55478"><p>Hi there!</p><p></p><p>I have noticed that the response of WMP visualizations is very poor.</p><p>It can be improved alot by applying a logarithmic scale to the FFT data coming from BASS_ChannelGetData():</p><p></p><p>[CODE]</p><p>float val = (90f + ((float)Math.Log10(fft[i]) * 20f)) * (255f / 90f);</p><p>if (val < 0)</p><p> val = 0;</p><p>else if (val > 255)</p><p> val = 255;</p><p>[/CODE]</p><p></p><p>This will create a value between 255 and 0 representing a range between 0 and -90dB</p><p>The resulting visuals is very similar to what WMP itself produces.</p><p></p><p>Regards,</p><p>Symphy</p></blockquote><p></p>
[QUOTE="Symphy, post: 197252, member: 55478"] Hi there! I have noticed that the response of WMP visualizations is very poor. It can be improved alot by applying a logarithmic scale to the FFT data coming from BASS_ChannelGetData(): [CODE] float val = (90f + ((float)Math.Log10(fft[i]) * 20f)) * (255f / 90f); if (val < 0) val = 0; else if (val > 255) val = 255; [/CODE] This will create a value between 255 and 0 representing a range between 0 and -90dB The resulting visuals is very similar to what WMP itself produces. Regards, Symphy [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Better WMP visualizations
Contact us
RSS
Top
Bottom