@@ -317,7 +317,7 @@ class TimeSignatureSetting : public Component
317317 TimeSignatureSetting ()
318318 {
319319 beatsPerBar.setValue (4 );
320- beatDivisor .setValue (BeatType::QuarterNote);
320+ beatType .setValue (BeatType::QuarterNote);
321321 }
322322
323323 ~TimeSignatureSetting () {}
@@ -329,7 +329,7 @@ class TimeSignatureSetting : public Component
329329 g.fillAll (isOn ? Colors::toggleOrange : element::Colors::widgetBackgroundColor.brighter ());
330330
331331 String text = beatsPerBar.toString ();
332- text << " / " << String (BeatType ((BeatType::ID ) (int ) beatDivisor .getValue ()).divisor ());
332+ text << " / " << String (BeatType ((BeatType::ID ) (int ) beatType .getValue ()).divisor ());
333333
334334 if (text.isNotEmpty ())
335335 {
@@ -349,11 +349,11 @@ class TimeSignatureSetting : public Component
349349 if (bpb > 99 )
350350 bpb = 99 ;
351351
352- if (bpb == (int ) beatsPerBar.getValue () && (int ) beatDivisor .getValue () == div)
352+ if (bpb == (int ) beatsPerBar.getValue () && (int ) beatType .getValue () == div)
353353 return ;
354354
355355 beatsPerBar.setValue (bpb);
356- beatDivisor .setValue (div);
356+ beatType .setValue (div);
357357 if (notify)
358358 meterChanged ();
359359
@@ -362,8 +362,7 @@ class TimeSignatureSetting : public Component
362362
363363 virtual void meterChanged () {}
364364 int getBeatsPerBar () const { return (int ) beatsPerBar.getValue (); }
365- int getBeatType () const { return (int ) BeatType::QuarterNote; } // quarter note
366- int getBeatDivisor () const { return (int ) beatDivisor.getValue (); }
365+ int getBeatType () const { return (int ) beatType.getValue (); }
367366
368367 void mouseDown (const MouseEvent& ev) override
369368 {
@@ -374,7 +373,7 @@ class TimeSignatureSetting : public Component
374373 lastY = ev.getDistanceFromDragStartY ();
375374 }
376375
377- Value& getDraggedValue () { return isDraggingBeatDivisor ? beatDivisor : beatsPerBar; }
376+ Value& getDraggedValue () { return isDraggingBeatDivisor ? beatType : beatsPerBar; }
378377
379378 void mouseDrag (const MouseEvent& ev) override
380379 {
@@ -408,7 +407,7 @@ class TimeSignatureSetting : public Component
408407
409408private:
410409 Value beatsPerBar;
411- Value beatDivisor ;
410+ Value beatType ;
412411 bool isDraggingBeatDivisor = false ;
413412 [[maybe_unused]] int stickyValue = 0 ;
414413 [[maybe_unused]] int decimalPlaces = 0 ;
0 commit comments