From 04b27eee501a09ae1a2512de4a0b3372494adb6e Mon Sep 17 00:00:00 2001 From: crystalreef22 <119718492+crystalreef22@users.noreply.github.com> Date: Mon, 8 Sep 2025 00:37:31 -0400 Subject: [PATCH] Allow Tempo Sync Knobs and Bars to be logarithmic (#8058) * Allow Tempo Sync Knobs to be logarithmic * Allow Tempo Sync Bars to be logarithmic --- src/gui/widgets/TempoSyncBarModelEditor.cpp | 3 +++ src/gui/widgets/TempoSyncKnob.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gui/widgets/TempoSyncBarModelEditor.cpp b/src/gui/widgets/TempoSyncBarModelEditor.cpp index 5ff2332e0..d524e5844 100644 --- a/src/gui/widgets/TempoSyncBarModelEditor.cpp +++ b/src/gui/widgets/TempoSyncBarModelEditor.cpp @@ -89,6 +89,9 @@ void TempoSyncBarModelEditor::contextMenuEvent(QContextMenuEvent *) CaptionMenu contextMenu(tempoSyncModel->displayName(), this); addDefaultActions(&contextMenu); + contextMenu.addAction(QPixmap(), + model()->isScaleLogarithmic() ? tr("Set linear") : tr("Set logarithmic"), + this, SLOT(toggleScale())); contextMenu.addSeparator(); diff --git a/src/gui/widgets/TempoSyncKnob.cpp b/src/gui/widgets/TempoSyncKnob.cpp index eedefd4ad..895e5bd01 100644 --- a/src/gui/widgets/TempoSyncKnob.cpp +++ b/src/gui/widgets/TempoSyncKnob.cpp @@ -107,6 +107,9 @@ void TempoSyncKnob::contextMenuEvent( QContextMenuEvent * ) CaptionMenu contextMenu( model()->displayName(), this ); addDefaultActions( &contextMenu ); + contextMenu.addAction(QPixmap(), + model()->isScaleLogarithmic() ? tr("Set linear") : tr("Set logarithmic"), + this, SLOT(toggleScale())); contextMenu.addSeparator(); float limit = 60000.0f / ( Engine::getSong()->getTempo() *