@@ -72,6 +72,8 @@ class MainController : public QObject
72
72
Q_PROPERTY (QString presetName READ getPresetName NOTIFY presetNameChanged)
73
73
// this property indicates if the current preset has been changed but not stored yet:
74
74
Q_PROPERTY (bool presetChangedButNotSaved READ getPresetChangedButNotSaved NOTIFY presetChangedButNotSavedChanged)
75
+ // this property is used for the lowSoloMode checkbox:
76
+ Q_PROPERTY (bool lowSoloMode READ getLowSoloMode WRITE setLowSoloMode NOTIFY lowSoloModeChanged)
75
77
76
78
public:
77
79
explicit MainController (QQmlApplicationEngine* m_qmlEngine, QObject *parent = 0 );
@@ -110,7 +112,10 @@ class MainController : public QObject
110
112
void compressionChanged ();
111
113
112
114
// emitted when a value of the preset changed
113
- void presetChanged ();
115
+ void presetChanged ();
116
+
117
+ // emitted when lowSoloMode changed
118
+ void lowSoloModeChanged ();
114
119
115
120
// forwarded from OSCNetworkManager:
116
121
void messageReceived (OSCMessage msg);
@@ -139,7 +144,7 @@ public slots:
139
144
// restores the window size and position
140
145
void restoreWindowGeometry ();
141
146
142
- void updateFFT () { m_fft.calculateFFT (); }
147
+ void updateFFT () { m_fft.calculateFFT (m_lowSoloMode ); }
143
148
144
149
// ------------------- Presets --------------------------------
145
150
@@ -186,6 +191,11 @@ public slots:
186
191
// sets the used console type (either "EOS" or "Cobalt")
187
192
void setConsoleType (QString value);
188
193
194
+ // returns if low solo mode is active
195
+ bool getLowSoloMode () const { return m_lowSoloMode; }
196
+ // enables or disables low solo mode
197
+ void setLowSoloMode (bool value) { m_lowSoloMode = value; emit lowSoloModeChanged (); }
198
+
189
199
// returns the current spectrum outline as a list of qreal values in the range 0...1
190
200
// used in GUI to display SpectrumPlot
191
201
QList<qreal> getSpectrumPoints ();
@@ -307,6 +317,7 @@ private slots:
307
317
QMap<QString, QObject*> m_dialogs; // list of all open dialogs (QML-filename -> GUI element instance)
308
318
OSCMapping m_oscMapping; // OSCMapping instance
309
319
QTimer m_oscUpdateTimer; // Timer used to trigger OSC level feedback
320
+ bool m_lowSoloMode; // true if low solo mode is active
310
321
311
322
TriggerGenerator* m_bass; // pointer to Bass TriggerGenerator instance
312
323
TriggerGenerator* m_loMid; // pointer to LoMid TriggerGenerator instance
0 commit comments