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).
Yep, Chrome is the only safe bet.
Cheers, I like the first one better, this one looks more "2D"/ "static"
Funnai how these simple examples only work in chrome while big fat 3d worlds runs just fine in a free browser (firefox).
(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)
right. we are quickly heading down the ie route again just with a new overlord
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
Ideally this will be turned into cpp and kodi anyways.
http://www.smartjava.org/examples/webaud...mple4.html is an example which works in both. I just didn't have the time to do it
(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"
(2014-11-25, 18:10)ironic_monkey Wrote: [ -> ]well, it's certainly borked topfs2. for starters;
https://github.com/notspiff/kodi-cmake/c...29cde623e9
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/53...46d99515f2 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
If anyone is looking for inspiration, here is a nice one I found on youtube today.
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