Kodi Community Forum
Release 2D Spectrum, visualization - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Release 2D Spectrum, visualization (/showthread.php?tid=204991)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: 2D Spectrum, visualization - Memphiz - 2014-11-26

both - what is your vis setting? Here are 2 screenshots with setting "very high". Mhhh are we highjacking this thread or what?

https://dl.dropboxusercontent.com/u/30371861/sweep.png

https://dl.dropboxusercontent.com/u/30371861/music.png


RE: 2D Spectrum, visualization - da-anda - 2014-11-27

waveform not spectrum


RE: 2D Spectrum, visualization - Memphiz - 2014-11-27

*facepalm*


RE: 2D Spectrum, visualization - topfs2 - 2014-12-07

Got a bit of an itch tonight, tried something different http://topfs2.github.io/spectrum2/ very much need design love but other than that, thoughts? (both this and the other needs webgl and webaudio powered browser, chrome rather late should do).


RE: 2D Spectrum, visualization - pike - 2014-12-08

Yep, Chrome is the only safe bet.

Cheers, I like the first one better, this one looks more "2D"/ "static"


RE: 2D Spectrum, visualization - ironic_monkey - 2014-12-08

Funnai how these simple examples only work in chrome while big fat 3d worlds runs just fine in a free browser (firefox).


RE: 2D Spectrum, visualization - topfs2 - 2014-12-08

(2014-12-08, 10:36)ironic_monkey Wrote: Funnai how these simple examples only work in chrome while big fat 3d worlds runs just fine in a free browser (firefox).

Its the webaudio part which doesn't work, I haven't really tried it on firefox yet tbh (usually code for chrome at work only, as its webkit)


RE: 2D Spectrum, visualization - ironic_monkey - 2014-12-08

right. we are quickly heading down the ie route again just with a new overlord Sad


RE: 2D Spectrum, visualization - topfs2 - 2014-12-08

Haha. Well its very doable to get it to work on firefox, its just me being lazy. I'm mostly trying out ideas so focusing on getting it out quick Smile Ideally this will be turned into cpp and kodi anyways.

http://www.smartjava.org/examples/webaudio/example4.html is an example which works in both. I just didn't have the time to do it Smile


RE: 2D Spectrum, visualization - mikebzh44 - 2014-12-08

(2014-10-08, 17:23)topfs2 Wrote: I have almost recreated this one https://www.youtube.com/watch?v=ptICQtESe64
Or this in lighter version https://www.youtube.com/watch?v=64DeItg6dgs

Superb !!!


RE: 2D Spectrum, visualization - pike - 2014-12-08

(2014-12-08, 17:00)mikebzh44 Wrote:
(2014-10-08, 17:23)topfs2 Wrote: I have almost recreated this one https://www.youtube.com/watch?v=ptICQtESe64
Or this in lighter version https://www.youtube.com/watch?v=64DeItg6dgs

Superb !!!

I want to see it Wink


RE: 2D Spectrum, visualization - topfs2 - 2014-12-08

(2014-12-08, 10:14)pike Wrote: Yep, Chrome is the only safe bet.

Cheers, I like the first one better, this one looks more "2D"/ "static"

I could try to add the glow to this one too. And could try to mix it with a bit of random overlay, so that the blocks looks less "perfect"


RE: 2D Spectrum, visualization - topfs2 - 2014-12-08

(2014-11-25, 18:10)ironic_monkey Wrote: well, it's certainly borked topfs2. for starters;

https://github.com/notspiff/kodi-cmake/commit/034262bce3ad448b718513142772eb29cde623e9

as for nyquist; sure, some of the freqs are aliased, not much you can do about that. however, that not all that relevant here as such.
it's a windowed fft - only certain freqs are let through (iirc it's a standard hann squared cosine). which basically is a means to get very little energy in the aliased modes (very simply put!)

Btw noticed one more thing. The Start callback is called _before_ samplerate and friends have been initialized, i.e. it just send giberish to the visualizer.

Quote:21:56:25 T:140409239832512 DEBUG: SECTION:LoadDLL(/home/topfs/xbmc-out/lib/kodi/addons/visualization.spectrum2d/Spectrum2D.vis)
21:56:25 T:140409239832512 DEBUG: Loading: /home/topfs/xbmc-out/lib/kodi/addons/visualization.spectrum2d/Spectrum2D.vis
21:56:25 T:140409239832512 DEBUG: Calling TransferSettings for: 2D Spectrum
21:56:25 T:140409239832512 DEBUG: Visualisation::Start()
21:56:25 T:140409239832512 DEBUG: CGUIInfoManager::SetCurrentSong(musicdb://albums/155/2004.mp3?albumid=155)
21:56:25 T:140409239832512 DEBUG: SELECT albumview.*,albumartistview.* FROM albumview LEFT JOIN albumartistview ON albumview.idAlbum = albumartistview.idAlbum WHERE albumview.idAlbum = 155 ORDER BY albumartistview.iOrder
21:56:25 T:140409239832512 DEBUG: Loading additional tag info for file /home/topfs/Music/Safe/Van Halen/1984 [HDCD]/01 - 1984.mp3
21:56:25 T:140409239832512 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
21:56:25 T:140409239832512 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
21:56:25 T:140409239832512 DEBUG: Updating visualisation albumart: /home/topfs/Music/Safe/Van Halen/1984 [HDCD]/folder.jpg
21:56:25 T:140408759314176 DEBUG: OnInitialize() started
21:56:25 T:140408759314176 DEBUG: Updating visualisation albumart: /home/topfs/Music/Safe/Van Halen/1984 [HDCD]/folder.jpg
21:56:25 T:140408759314176 DEBUG: OnInitialize() done

Its not until OnInitialize it gets the data and I guess it really should defer it to then, or simply remove the data from Start as its unreliable.

EDIT https://github.com/topfs2/xbmc/commit/53c107b6913f98d35614435b97097046d99515f2 not sure if this is entirely proper. Might mean that Render and friends are called before Start, which may crash a visualizer. I've tested the ones which works on linux and all except fishXBMC seems to work


RE: 2D Spectrum, visualization - zag - 2014-12-10

If anyone is looking for inspiration, here is a nice one I found on youtube today.




RE: 2D Spectrum, visualization - topfs2 - 2014-12-11

I like it. Just trying to understand the waveforms. Afaict it looks like they have split the fft into 10 (pass filtered) and then done fft back on each of those parts and made one line for each pass? Perhaps you could help on this ironic_monkey, since you are math Smile