Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Search

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.23 
            Releasenews | Download
 MediaPortal 2.2.2
            Releasenews | Download

Added in version 1.18

Overview

Adds real-time spectrum display to MyMusicPlayingNow.

Configuration

Via the Spectum Analyser plugin, listed in Process Plugins.

Spectrum display


Controls

ControlDescriptionDefault
Count of Spectrum LineNumber of bars displayed16
Count of Specturm VU images in one lineDepth of spectrum16
Peak Falling afterHold time for peak value200
Peak Calculation methodAverage or MaximumAverage


VU Display [LED]

Controls


ControlDescriptionDefault
Count of VU Meter ImagesWidth in LEDS of display16
Peak Falling afterHold time for peak value50
Peak Calculation methodAverage or MaximumAverage

Files

Main path is C:\Program Data\Team MediaPortal\MediaPortal


Local PathNameFunction
\SpectrumAnalyzer.xmlHolds values from above in XML
skin\$CurrentSkinSkinSpectrumAnalyzer.xmlPer skin values - optional
skin\$CurrentSkin\Media\spectrumSpectrum.pngSpectrum line
skin\$CurrentSkin\Media\spectrumPeak.pngPeak image


SkinSpecturmAnalyzer.xml

Additiona information for Designers, options and values used.

<?xml version="1.0" encoding="utf-8"?>
<profile>
<section name="Enabled"> # Plugin enabled Y/N
<entry name="Spectrum">yes</entry> # Spectrum display enabled Y/N
<entry name="SpectrumPeak">yes</entry> #Display Spectrum Peak Y/N
<entry name="SpectrumVUMeter">yes</entry> #Use plugin to provide LED type VU meter function Y/N
</section>
<section name="SpectrumAnalyzer">
<entry name="SpectrumImage">Spectrum\Spectrum.png</entry> #Default path to Spectum image, image displayed same wa as 'progress bar'
<entry name="SpectrumPeakImage">Spectrum\SpectrumPeak.png</entry> #Default path to spectrum peak image - displayed as is.
<entry name="SpectrumSpacing">5</entry> #Defaul tspacing between the spectral lines.
<entry name="SpectrumCount">16</entry> #Number of spectral lines to display.
<entry name="SpectrumMax">16</entry> #Number of steps within the spectrum
<entry name="SpectrumShow">Single</entry> #Use single display [expanded image] or set of mutiple images, one per spectral step [see Alternate Display XLM for example].
</section>
</profile>


Skin variables

NameType
#spectrumanalyzer.availableBoolean
#spectrumanalyzer.vumeter.availableBoolean


Simple Example XLM

NOTE - this is already supported in DefaultWideHD, code in MyMusicPlayingNowLEDVU.xml, below is provided for reference only.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
<controls>
<control>
<description>Music Spectrum</description>
<id>0</id>
<type>image</type>
<posX>600</posX>
<posY>200</posY>
<width>500</width>
<height>300</height>
<texture>#VUSpectrum</texture>
</control>
</controls>
</window>

Save as Single_Spectrum.xml in skin\$Currentskin and then import into MyMusinPlayingNow.xml 

Alternate Display

Plugin supports seperate specturm images for each level so require 1 image per step, 16 if using default values.

Example XLM.

<control>
<type>image</type>
<id>0</id>
<posX>360</posX>
<posY>430</posY>
<width>44</width>
<height>125</height>
<imagepath>Spectrum</imagepath>
<texture>#VUSpectrum1</texture>
<visible>Player.HasAudio+Player.playing+!Player.paused+!string.equals(#spectrumanalyzer.available,true)</visible>
<shouldCache>true</shouldCache>
</control>
..........snip................................
<control>
<type>image</type>
<id>0</id>
<posX>1020</posX>
<posY>430</posY>
<width>44</width>
<height>125</height>
<imagepath>Spectrum</imagepath>
<texture>#VUSpectrum16</texture>
<visible>Player.HasAudio+Player.playing+!Player.paused+!string.equals(#spectrumanalyzer.available,true)</visible>
<shouldCache>true</shouldCache>
</control>



        


   

 

  • No labels

This page has no comments.