21#include <JuceHeader.h>
23#include "../MemaProcessor/MemaProcessor.h"
50 void paint (Graphics&)
override;
54 void mouseDown(
const MouseEvent& event)
override;
68 bool m_changesPending{
false };
69 bool m_usesValuesInDB{ 0 };
Base class for all audio-data visualisation components in the Mema processor editor.
AbstractAudioVisualizer()
void paint(Graphics &) override
Paints the visualiser background.
virtual void processChanges()
Called on the message thread to update cached data before repainting.
void notifyChanges()
Marks that new data is available and triggers a repaint on the next timer tick.
void setRefreshFrequency(int frequency)
Sets the display refresh rate in Hz.
void setUsesValuesInDB(bool useValuesInDB)
void mouseDown(const MouseEvent &event) override
Handles mouse-down events (e.g. right-click context menu).
void timerCallback() override
Timer callback that calls processChanges() and triggers a repaint if data changed.
virtual ~AbstractAudioVisualizer()
void resized() override
Lays out child components.