MythTV
master
|
#include <mythplugins/mythmusic/mythmusic/visualize.h>
Classes | |
struct | piano_key_data |
Public Member Functions | |
Piano () | |
~Piano () override | |
void | resize (const QSize &size) override |
bool | process (VisualNode *node) override |
bool | processUndisplayed (VisualNode *node) override |
unsigned long | getDesiredSamples (void) override |
bool | draw (QPainter *p, const QColor &back=Qt::black) override |
Public Member Functions inherited from VisualBase | |
VisualBase (bool screensaverenable=false) | |
virtual | ~VisualBase (void) |
virtual void | handleKeyPress ([[maybe_unused]] const QString &action) |
virtual int | getDesiredFPS (void) |
Protected Member Functions | |
bool | process_all_types (VisualNode *node, bool this_will_be_displayed) |
void | zero_analysis (void) |
Static Protected Member Functions | |
static double | clamp (double cur, double max, double min) |
Protected Attributes | |
QColor | m_whiteStartColor {245,245,245} |
QColor | m_whiteTargetColor {Qt::red} |
QColor | m_blackStartColor {10,10,10} |
QColor | m_blackTargetColor {Qt::red} |
std::vector< QRect > | m_rects |
QSize | m_size |
std::chrono::milliseconds | m_offsetProcessed {0ms} |
piano_key_data * | m_pianoData {nullptr} |
piano_audio * | m_audioData {nullptr} |
std::vector< double > | m_magnitude |
Protected Attributes inherited from VisualBase | |
int | m_fps {20} |
bool | m_xscreensaverenable {true} |
Static Private Attributes | |
static constexpr unsigned long | kPianoAudioSize { 4096 } |
static constexpr unsigned int | kPianoNumKeys { 88 } |
static constexpr double | kPianoRmsNegligible { .001 } |
static constexpr double | kPianoSpectrumSmoothing { 0.95 } |
static constexpr goertzel_data | kPianoMinVol { -10 } |
static constexpr double | kPianoKeypressTooLight { .2 } |
Additional Inherited Members | |
Static Public Member Functions inherited from VisualBase | |
static void | drawWarning (QPainter *p, const QColor &back, QSize size, const QString &warning, int fontsize=28) |
Definition at line 329 of file visualize.h.
Piano::Piano | ( | ) |
Definition at line 1741 of file visualize.cpp.
|
override |
Definition at line 1783 of file visualize.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 1807 of file visualize.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 1902 of file visualize.cpp.
|
overridevirtual |
Reimplemented from VisualBase.
Definition at line 1896 of file visualize.cpp.
|
overridevirtual |
Reimplemented from VisualBase.
Definition at line 1886 of file visualize.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 2044 of file visualize.cpp.
|
inlinestaticprotected |
Definition at line 2039 of file visualize.cpp.
Referenced by draw().
|
protected |
Definition at line 1912 of file visualize.cpp.
Referenced by processUndisplayed().
|
protected |
Definition at line 1791 of file visualize.cpp.
Referenced by Piano(), process_all_types(), and resize().
|
staticconstexprprivate |
Definition at line 335 of file visualize.h.
Referenced by getDesiredSamples(), and Piano().
|
staticconstexprprivate |
Definition at line 336 of file visualize.h.
Referenced by draw(), Piano(), process_all_types(), resize(), and zero_analysis().
|
staticconstexprprivate |
Definition at line 341 of file visualize.h.
Referenced by draw(), and zero_analysis().
|
staticconstexprprivate |
Definition at line 342 of file visualize.h.
Referenced by draw().
|
staticconstexprprivate |
Definition at line 343 of file visualize.h.
Referenced by process_all_types().
|
staticconstexprprivate |
Definition at line 344 of file visualize.h.
Referenced by draw().
|
protected |
Definition at line 378 of file visualize.h.
Referenced by draw().
|
protected |
Definition at line 379 of file visualize.h.
Referenced by draw().
|
protected |
Definition at line 380 of file visualize.h.
Referenced by draw().
|
protected |
Definition at line 381 of file visualize.h.
Referenced by draw().
|
protected |
Definition at line 383 of file visualize.h.
|
protected |
Definition at line 384 of file visualize.h.
|
protected |
Definition at line 386 of file visualize.h.
Referenced by process_all_types(), and zero_analysis().
|
protected |
Definition at line 388 of file visualize.h.
Referenced by draw(), Piano(), process_all_types(), resize(), zero_analysis(), and ~Piano().
|
protected |
Definition at line 389 of file visualize.h.
Referenced by Piano(), process_all_types(), and ~Piano().
|
protected |
Definition at line 391 of file visualize.h.