2004-02-18, 17:36
frodo made an update to the visualisation plugin interface so now the visualisation the filename of it's own .vis file and it uses the correspoding .xml filename so renaming "spectrum.vis" to "spectrum-whatever.vis" would mean that "spectrum-whatever.vis" will use "spectrum-whatever.xml" (instead of "spectrum.xml" as it was hardcoded to do before), "spectrum-whatever" would then also be selectable from the gui. this means that end-users can have more than one version of the same visualization with a different xml for each, this is great for visualization with many parameter options such a jm's spectrum analyser as end-users can edit and share their prefered preferences.
ex. of what the visualisations folder could look like with this function:
goom.vis
goom.xml
goom my-edit.vis
goom my-edit.xml
spectrum.vis
spectrum.xml
spectrum-whatever.vis
spectrum-whatever.xml
spectrum - cool blue.vis
spectrum - cool blue.xml
spectrum - red orange.vis
spectrum - red orange.xml
fountain.vis
fountain.xml
fountain my xml edit.vis
fountain my xml edit.xml
please port your favorite xml's jmarshall's spectrum analyzer here. you can see a couple of spectrum.xml examples here:
note!: max bars is set at 720. the minimum frequency is set at 1hz, but if freqscale is "log" lowest you can see will be around 50hz, and if freqscale is "linear" (<freqscale>linear</freqscale>) lowest frequency probebely can see is around 1-2khz or so.
the original for xbmc:
red/n/blue colors by nizz8
edit by ---=snyper=---
edit by xbox4u
ex. of what the visualisations folder could look like with this function:
goom.vis
goom.xml
goom my-edit.vis
goom my-edit.xml
spectrum.vis
spectrum.xml
spectrum-whatever.vis
spectrum-whatever.xml
spectrum - cool blue.vis
spectrum - cool blue.xml
spectrum - red orange.vis
spectrum - red orange.xml
fountain.vis
fountain.xml
fountain my xml edit.vis
fountain my xml edit.xml
please port your favorite xml's jmarshall's spectrum analyzer here. you can see a couple of spectrum.xml examples here:
note!: max bars is set at 720. the minimum frequency is set at 1hz, but if freqscale is "log" lowest you can see will be around 50hz, and if freqscale is "linear" (<freqscale>linear</freqscale>) lowest frequency probebely can see is around 1-2khz or so.
the original for xbmc:
Quote:<visualisation>
<!-- amount to delay spectrum (range 0..255) -->
<syncdelay>15</syncdelay>
<!-- number of frequency bars to display -->
<bars>512</bars>
<!-- what the bars represent (options are: "average" and "peak" levels in that frequency range)-->
<levels>peak</levels>
<!-- frequency scale can be log or linear -->
<freqscale>log</freqscale>
<!-- fraction of actual rise amount to do at one time (range 0.01..1) -->
<risespeed>0.5</risespeed>
<!-- fraction of actual fall amount to do at one time (range 0.01..1) -->
<fallspeed>0.5</fallspeed>
<!-- enable a/b/c-weighting of the data (options are: "a", "b", "c", or "none") -->
<weight>a</weight>
<!-- combine channels in to one? -->
<mixchannels>false</mixchannels>
<!-- show peaks separately? -->
<showpeaks>true</showpeaks>
<!-- speed of the decay of peaks in db/frame (range 0.01..4) -->
<peakdecayspeed>0.3</peakdecayspeed>
<!-- frequency range (in hz) -->
<freqmin>80</freqmin>
<freqmax>22050</freqmax>
<!-- level range (in db - 0db refers to a sine wave at minimum possible level, 96db is highest possible) -->
<levelmin>20</levelmin>
<levelmax>90</levelmax>
<leftchannel>
<!-- onscreen position in pixels (measured from top left) -->
<left>40</left>
<top>88</top>
<!-- width and height of spectrum analyser -->
<width>650</width>
<height>220</height>
<!-- direction that bars go (options are: up, down, left, right) -->
<direction>up</direction>
<!-- set true if you want highfrequencies on the left, or at the bottom -->
<reversefreq>false</reversefreq>
<!-- colour of peak blips (rrggbb hex number - 0 implies use the below range) -->
<peakcolour>0</peakcolour>
<!-- colour of bars (rrggbb hex number) -->
<topcolour>ff0006</topcolour>
<middlecolour>c67a37</middlecolour>
<bottomcolour>500909</bottomcolour>
<border>false</border>
</leftposition>
<rightchannel>
<left>40</left>
<top>308</top>
<width>650</width>
<height>220</height>
<direction>down</direction>
<reversefreq>false</reversefreq>
<peakcolour>0</peakcolour>
<topcolour>ff0006</topcolour>
<middlecolour>c67a37</middlecolour>
<bottomcolour>500909</bottomcolour>
<border>false</border>
</rightposition>
</visualisation>
red/n/blue colors by nizz8
Quote:<leftchannel>
<!-- onscreen position in pixels (measured from top left) -->
<left>25</left>
<top>66</top>
<!-- width and height of spectrum analyser -->
<width>660</width>
<height>220</height>
<!-- direction that bars go (options are: up, down, left, right) -->
<direction>up</direction>
<!-- set to true if you want to show an alpha transparency with the full analyser size -->
<!-- great for placement purposes! -->
<border>false</border>
<!-- set true if you want highfrequencies on the left, or at the bottom -->
<reversefreq>false</reversefreq>
<!-- colour of peak blips (rrggbb hex number - 0 implies use the below range) -->
<peakcolour>ffffff</peakcolour>
<!-- colour of bars (rrggbb hex number) -->
<topcolour>852caf</topcolour>
<middlecolour>001ae1</middlecolour>
<bottomcolour>ff0000</bottomcolour>
</leftposition>
<rightchannel>
<left>25</left>
<top>290</top>
<width>660</width>
<height>220</height>
<direction>down</direction>
<border>false</border>
<reversefreq>false</reversefreq>
<peakcolour>ffffff</peakcolour>
<topcolour>ff1589</topcolour>
<middlecolour>001ae1</middlecolour>
<bottomcolour>ff0000</bottomcolour>
</rightposition>
edit by ---=snyper=---
Quote:<visualisation>
<syncdelay>15</syncdelay>
<bars>2000</bars>
<levels>peak</levels>
<freqscale>linear</freqscale>
<risespeed>1</risespeed>
<fallspeed>0.75</fallspeed>
<weight>c</weight>
<mixchannels>false</mixchannels>
<showpeaks>true</showpeaks>
<peakdecayspeed>0.25</peakdecayspeed>
<freqmin>0</freqmin>
<freqmax>19000</freqmax>
<levelmin>0</levelmin>
<levelmax>75</levelmax>
<leftchannel>
<left>-80</left>
<top>20</top>
<-- change this to fix the width on your tv -->
<width>790</width>
<height>250</height>
<direction>down</direction>
<border>false</border>
<reversefreq>false</reversefreq>
<peakcolour>6e8fbc</peakcolour>
<topcolour>15bcda</topcolour>
<middlecolour>07244c</middlecolour>
<bottomcolour>01060d</bottomcolour>
</leftposition>
<rightchannel>
<left>-80</left>
<top>220</top>
<-- change this to fix the width on your tv -->
<width>790</width>
<height>250</height>
<direction>up</direction>
<border>false</border>
<reversefreq>true</reversefreq>
<peakcolour>6e8fbc</peakcolour>
<topcolour>15bcda</topcolour>
<middlecolour>07244c</middlecolour>
<bottomcolour>01060d</bottomcolour>
</rightposition>
</visualisation>
edit by xbox4u
Quote:<visualisation>
<!-- amount to delay spectrum (range 0..255) -->
<syncdelay>16</syncdelay>
<!-- number of frequency bars to display -->
<bars>80</bars>
<!-- what the bars represent (options are: "average" and "peak" levels in that frequency range)-->
<levels>peak</levels>
<!-- frequency scale can be log or linear -->
<freqscale>log</freqscale>
<!-- fraction of actual rise amount to do at one time (range 0.01..1) -->
<risespeed>.4</risespeed>
<!-- fraction of actual fall amount to do at one time (range 0.01..1) -->
<fallspeed>0.08</fallspeed>
<!-- enable a/b/c-weighting of the data (options are: "a", "b", "c", or "none") -->
<weight>a</weight>
<!-- combine channels in to one? -->
<mixchannels>false</mixchannels>
<!-- show peaks separately? -->
<showpeaks>true</showpeaks>
<!-- speed of the decay of peaks in db/frame (range 0.01..4) -->
<peakdecayspeed>0.2</peakdecayspeed>
<!-- frequency range (in hz) -->
<freqmin>20</freqmin>
<freqmax>20000</freqmax>
<!-- level range (in db - 0db refers to a sine wave at minimum possible level, 96db is highest possible) -->
<levelmin>15</levelmin>
<levelmax>75</levelmax>
<leftchannel>
<!-- onscreen position in pixels (measured from top left) -->
<left>0</left>
<top>110</top>
<!-- width and height of spectrum analyser -->
<width>640</width>
<height>150</height>
<!-- direction that bars go (options are: up, down, left, right) -->
<direction>up</direction>
<!-- set to true if you want to show an alpha transparency with the full analyser size -->
<!-- great for placement purposes! -->
<border>false</border>
<!-- set true if you want highfrequencies on the left, or at the bottom -->
<reversefreq>false</reversefreq>
<!-- colour of peak blips (rrggbb hex number - 0 implies use the below range) -->
<peakcolour>3399ff</peakcolour>
<!-- colour of bars (rrggbb hex number) -->
<topcolour>cc0000</topcolour>
<middlecolour>ffcc00</middlecolour>
<bottomcolour>009900</bottomcolour>
</leftposition>
<rightchannel>
<left>0</left>
<top>260</top>
<width>640</width>
<height>150</height>
<direction>up</direction>
<border>false</border>
<reversefreq>false</reversefreq>
<peakcolour>3399ff</peakcolour>
<topcolour>cc0000</topcolour>
<middlecolour>ffcc00</middlecolour>
<bottomcolour>009900</bottomcolour>
</rightposition>
</visualisation>