Skip to content

guitar_prometheus::TempoMapPanel

guitar_prometheus::TempoMapPanel

Modal tempo-map editor. More…

#include <TempoMapPanel.h>

Inherits from juce::Component, juce::TableListBoxModel, juce::ChangeListener

Public Functions

Name
TempoMapPanel(AppController & controller)
~TempoMapPanel() override
voidresized() override
voidpaint(juce::Graphics & g) override
intgetNumRows() override
voidpaintRowBackground(juce::Graphics & g, int rowNumber, int width, int height, bool selected) override
voidpaintCell(juce::Graphics & g, int rowNumber, int columnId, int width, int height, bool selected) override
juce::Component *refreshComponentForCell(int rowNumber, int columnId, bool selected, juce::Component * existing) override
voidchangeListenerCallback(juce::ChangeBroadcaster * ) override

Detailed Description

class guitar_prometheus::TempoMapPanel;

Modal tempo-map editor.

One row per measure in the active Score. Each row shows the effective BPM (override → score-derived → initial fallback) in an editable cell; edits flow to [AppController::setTempoForMeasure](/api-reference/classes/classguitar__prometheus_1_1appcontroller/#function-settempoformeasure), which persists to the Project’s tempoOverrides. The Score is never mutated; export-time tempo emission picks up the override map via the writer’s tempoOverride parameter.

Public Functions Documentation

function TempoMapPanel

explicit TempoMapPanel(
AppController & controller
)

function ~TempoMapPanel

~TempoMapPanel() override

function resized

void resized() override

function paint

void paint(
juce::Graphics & g
) override

function getNumRows

int getNumRows() override

function paintRowBackground

void paintRowBackground(
juce::Graphics & g,
int rowNumber,
int width,
int height,
bool selected
) override

function paintCell

void paintCell(
juce::Graphics & g,
int rowNumber,
int columnId,
int width,
int height,
bool selected
) override

function refreshComponentForCell

juce::Component * refreshComponentForCell(
int rowNumber,
int columnId,
bool selected,
juce::Component * existing
) override

function changeListenerCallback

void changeListenerCallback(
juce::ChangeBroadcaster *
) override

Updated on 2026-05-29 at 07:39:52 +0000