You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// Author: Max Howell <max.howell@methylblue.com>, (C) 2004
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef BOOMANALYZER_H
|
|
|
|
#define BOOMANALYZER_H
|
|
|
|
|
|
|
|
#include "analyzerbase.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
@author Max Howell
|
|
|
|
*/
|
|
|
|
|
|
|
|
class BoomAnalyzer : public Analyzer::Base2D
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
BoomAnalyzer( TQWidget* );
|
|
|
|
|
|
|
|
virtual void init();
|
|
|
|
virtual void transform( Scope &s );
|
|
|
|
virtual void analyze( const Scope& );
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void changeK_barHeight( int );
|
|
|
|
void changeF_peakSpeed( int );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static const uint COLUMN_WIDTH = 4;
|
|
|
|
static const uint BAND_COUNT = 32;
|
|
|
|
|
|
|
|
double K_barHeight, F_peakSpeed, F;
|
|
|
|
|
|
|
|
std::vector<float> bar_height;
|
|
|
|
std::vector<float> peak_height;
|
|
|
|
std::vector<float> peak_speed;
|
|
|
|
|
|
|
|
TQPixmap barPixmap;
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Amarok
|
|
|
|
{
|
|
|
|
namespace ColorScheme
|
|
|
|
{
|
|
|
|
extern TQColor Base;
|
|
|
|
extern TQColor Text;
|
|
|
|
extern TQColor Background;
|
|
|
|
extern TQColor Foreground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|