Spectrum data in MediaMonkey

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

u2bleank
Posts: 5
Joined: Wed Feb 24, 2010 12:41 pm
Location: France
Contact:

Spectrum data in MediaMonkey

Post by u2bleank »

Hi MM,

I've just started a visualisation plugin though the winamp interface ( struct winampVisModule )
In this interface I got acces to the spectrum value of the currently played music that it's just fine ;)

But there's 2 weird difference between the behaviour of the vis in MM and in Winamp.

1) In MM I must wait 13 seconds before the plug ins receive any spectrum data.

2) The spectrum datas seems to be cropped and doesn't use the full range of the unsigned char.

Here a picture who reflect the difference between Winamp and MM
It's the spectrum of the same song at nearly the same moment and the Winamp result is the upper window.

Image


Is it the normal behaviour of MM and is there any workaround to better mimic the Winamp result ?

Cheers
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Spectrum data in MediaMonkey

Post by rovingcowboy »

in making the built in player volume level meter's i make.
i've noticed that if you use the equalizer's pre amp the raising and lowering of the slider will affect the sound level as normal but it also adjust's the level of the volume meters highest range.

check that with your plug in and see if you can adjust it with that. if so then nothings wrong your script is following orders. its just the preamp on monkey's equalizer is set lower because monkey's a better player then winamp because it will just throw all the sound level out there. but it too uses a preamp so check and see if that also changes the level effect. it should but it only works like a volume slider on my winamp player here. monkeys seems to really boost the song file's volume not just the volume of the windows amp.
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
u2bleank
Posts: 5
Joined: Wed Feb 24, 2010 12:41 pm
Location: France
Contact:

Re: Spectrum data in MediaMonkey

Post by u2bleank »

i've noticed that if you use the equalizer's pre amp the raising and lowering of the slider will affect the sound level as normal but it also adjust's the level of the volume meters highest range.
Unfortunatly modifications in the equalizer doesn't change anything in the spectrum visualisation...
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Spectrum data in MediaMonkey

Post by rovingcowboy »

oh did not know if it worked on plugins or not but i thought to tell you since it works on the built in av effect.
8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: Spectrum data in MediaMonkey

Post by nohitter151 »

Maybe it is volume leveling, try to disable it under the "Play" menu.

Re: the 13 second wait -- I think that is due to buffers or something. You could try to switch to waveOut ouput plugin and change the buffer time.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
u2bleank
Posts: 5
Joined: Wed Feb 24, 2010 12:41 pm
Location: France
Contact:

Re: Spectrum data in MediaMonkey

Post by u2bleank »

nohitter151 : the volume leveling doesn't change anything the spectrum is always cropped at around 60% of the maximum.

For long 13s latency : you are right it's only few seconds with the waveOut output.
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Spectrum data in MediaMonkey

Post by rovingcowboy »

maybe it is the prevent clipping option? is that able to be turned on and off in code for the plugins?
:-?
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
u2bleank
Posts: 5
Joined: Wed Feb 24, 2010 12:41 pm
Location: France
Contact:

Re: Spectrum data in MediaMonkey

Post by u2bleank »

rovingcowboy wrote:maybe it is the prevent clipping option? is that able to be turned on and off in code for the plugins?
:-?
Nothing changed :(
I still got this strange clipped sectrum
u2bleank
Posts: 5
Joined: Wed Feb 24, 2010 12:41 pm
Location: France
Contact:

Re: Spectrum data in MediaMonkey

Post by u2bleank »

:D
For information the only way I found to got the same spectrum between MediaMonkey & Winamp is to compte by hand the spectrum from the wave informations.
Now i Got the same consistent behavior between the 2 programs.

Greetings to all contributors.
jiri
Posts: 5426
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: Spectrum data in MediaMonkey

Post by jiri »

Hi, I finally got to review the code and you are right, the spectrum was clipped half-way. It will be fixed in the next version.

As for the initial delay, it's there because of buffering, we'll try to improve this as well.

Jiri
Post Reply