Module PeakMeterCtrl
[hide private]
[frames] | no frames]

Module PeakMeterCtrl

source code


Description
===========

PeakMeterCtrl mimics the behaviour of equalizers that are usually found in stereos
and MP3 players. This widgets supports:

* Vertical and horizontal led bands;
* Settings number of bands and leds per band;
* Possibility to change the colour for low/medium/high band frequencies;
* Falloff effects;
* Showing a background grid for the bands.

And a lot more. Check the demo for an almost complete review of the functionalities.


Supported Platforms
===================

PeakMeterCtrl has been tested on the following platforms:
  * Windows (Windows XP).


Latest Revision: Andrea Gavana @ 07 October 2008, 22.00 GMT
Version 0.1

Classes [hide private]
  PeakMeterData
A simple class which holds data for our PeakMeterCtrl.
  PeakMeterCtrl
The main PeakMeterCtrl implementation.
Functions [hide private]
 
InRange(val, valMin, valMax)
Returns whether the value val is between valMin and valMax.
source code
 
LightenColor(crColor, byIncreaseVal)
Lightens a colour.
source code
 
DarkenColor(crColor, byReduceVal)
Darkens a colour.
source code
Variables [hide private]
  PM_HORIZONTAL = 0
  PM_VERTICAL = 1
  BAND_DEFAULT = 8
  LEDS_DEFAULT = 8
  BAND_PERCENT = 10
  GRID_INCREASEBY = 15
  FALL_INCREASEBY = 60
  DEFAULT_SPEED = 10