Skip to content

Commit 1d8adde

Browse files
committed
misc
1 parent 1408639 commit 1d8adde

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

src/gui.cpp

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,7 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
506506

507507
ImGui::Text("Makeup Gain");
508508
ImGui::SliderFloat("##makeup", &synth->mixer.comp_makeup_gain, 0.0f, 12.0f, "%.1f dB", 0);
509-
510-
// Visual indicator when compressor is active
511-
if (synth->mixer.comp_enabled) {
512-
ImGui::SameLine();
513-
ImGui::TextColored(ImVec4(0.0f, 1.0f, 0.0f, 1.0f), "[ACTIVE]");
514-
} else {
515-
ImGui::SameLine();
516-
ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1.0f), "[DISABLED]");
517-
}
518-
}
509+
}
519510

520511
// Mastering
521512
if (ImGui::CollapsingHeader("Mastering", ImGuiTreeNodeFlags_DefaultOpen)) {
@@ -556,8 +547,7 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
556547
draw_list->AddRect(peak_bar_pos,
557548
ImVec2(peak_bar_pos.x + bar_width, peak_bar_pos.y + bar_height),
558549
ImColor(1.0f, 1.0f, 1.0f, 1.0f)); // White border
559-
ImGui::Dummy(ImVec2(bar_width + bar_spacing, bar_height));
560-
ImGui::SameLine();
550+
// ImGui::Dummy(ImVec2(bar_width + bar_spacing, bar_height));
561551
ImGui::Text("Peak: %.1f dB", synth->mixer.peak_level);
562552

563553
// RMS meter
@@ -569,14 +559,13 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
569559
draw_list->AddRect(rms_bar_pos,
570560
ImVec2(rms_bar_pos.x + bar_width, rms_bar_pos.y + bar_height),
571561
ImColor(1.0f, 1.0f, 1.0f, 1.0f)); // White border
572-
ImGui::SameLine();
573562
ImGui::Text("RMS: %.1f dB", synth->mixer.rms_level);
574563

575564
ImGui::Separator();
576565
}
577566

578567
// Arpeggiator
579-
if (ImGui::CollapsingHeader("ArpeggiatorSection", ImGuiTreeNodeFlags_DefaultOpen)) {
568+
if (ImGui::CollapsingHeader("Arpeggiator", ImGuiTreeNodeFlags_DefaultOpen)) {
580569
ImGui::Checkbox("Enabled##arp", (bool*)&synth->arp.enabled);
581570
const char* arp_modes[] = {
582571
"OFF", "CHORD", "UP", "DOWN", "UP/DOWN", "PENDULUM",
@@ -645,7 +634,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
645634
synth->arp.tempo = 120.0f;
646635
synth->arp.octaves = 2;
647636
synth->arp.polyphonic = 0;
648-
synth->arp.hold = 0;
649637
synth->arp.gate_length = 0.8f;
650638
}
651639
ImGui::SameLine(); ImGui::Text("8th notes");
@@ -655,7 +643,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
655643
synth->arp.tempo = 120.0f;
656644
synth->arp.octaves = 2;
657645
synth->arp.polyphonic = 0;
658-
synth->arp.hold = 0;
659646
synth->arp.gate_length = 0.8f;
660647
}
661648
ImGui::SameLine(); ImGui::Text("Descending");
@@ -665,7 +652,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
665652
synth->arp.tempo = 130.0f;
666653
synth->arp.octaves = 3;
667654
synth->arp.polyphonic = 1;
668-
synth->arp.hold = 1;
669655
synth->arp.gate_length = 0.7f;
670656
}
671657
ImGui::SameLine(); ImGui::Text("Pop style");
@@ -675,7 +661,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
675661
synth->arp.tempo = 128.0f;
676662
synth->arp.octaves = 1;
677663
synth->arp.polyphonic = 0;
678-
synth->arp.hold = 0;
679664
synth->arp.gate_length = 0.9f;
680665
}
681666
ImGui::SameLine(); ImGui::Text("Sequential");
@@ -688,7 +673,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
688673
synth->arp.rate = RATE_SIXTEENTH;
689674
synth->arp.octaves = 4;
690675
synth->arp.polyphonic = 1;
691-
synth->arp.hold = 1;
692676
synth->arp.gate_length = 0.4f;
693677
}
694678
ImGui::SameLine(); ImGui::Text("16th notes");
@@ -698,7 +682,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
698682
synth->arp.tempo = 100.0f;
699683
synth->arp.octaves = 3;
700684
synth->arp.polyphonic = 0;
701-
synth->arp.hold = 0;
702685
synth->arp.gate_length = 0.6f;
703686
}
704687
ImGui::SameLine(); ImGui::Text("Unpredictable");
@@ -708,7 +691,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
708691
synth->arp.tempo = 124.0f;
709692
synth->arp.octaves = 2;
710693
synth->arp.polyphonic = 1;
711-
synth->arp.hold = 1;
712694
synth->arp.gate_length = 0.8f;
713695
}
714696
ImGui::SameLine(); ImGui::Text("Progressive");
@@ -718,7 +700,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
718700
synth->arp.tempo = 60.0f;
719701
synth->arp.octaves = 1;
720702
synth->arp.polyphonic = 1;
721-
synth->arp.hold = 1;
722703
synth->arp.gate_length = 1.0f;
723704
}
724705
ImGui::SameLine(); ImGui::Text("Chordal");
@@ -730,7 +711,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
730711
synth->arp.tempo = 135.0f;
731712
synth->arp.octaves = 2;
732713
synth->arp.polyphonic = 0;
733-
synth->arp.hold = 0;
734714
synth->arp.gate_length = 0.3f;
735715
}
736716
ImGui::SameLine(); ImGui::Text("Driving");
@@ -740,7 +720,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
740720
synth->arp.tempo = 70.0f;
741721
synth->arp.octaves = 1;
742722
synth->arp.polyphonic = 0;
743-
synth->arp.hold = 0;
744723
synth->arp.gate_length = 0.7f;
745724
}
746725
ImGui::SameLine(); ImGui::Text("Reggae");
@@ -751,7 +730,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
751730
synth->arp.rate = RATE_THIRTYSECOND;
752731
synth->arp.octaves = 2;
753732
synth->arp.polyphonic = 1;
754-
synth->arp.hold = 0;
755733
synth->arp.gate_length = 0.2f;
756734
}
757735
ImGui::SameLine(); ImGui::Text("Fast");
@@ -761,19 +739,17 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
761739
synth->arp.tempo = 110.0f;
762740
synth->arp.octaves = 2;
763741
synth->arp.polyphonic = 0;
764-
synth->arp.hold = 0;
765742
synth->arp.gate_length = 0.5f;
766743
}
767744
ImGui::SameLine(); ImGui::Text("8-bit");
768745

769746
ImGui::NextColumn();
770747

771-
if (ImGui::Button("Arpeggiator")) {
748+
if (ImGui::Button("Classic Arp")) {
772749
synth->arp.mode = ARP_UP;
773750
synth->arp.tempo = 92.0f;
774751
synth->arp.octaves = 4;
775752
synth->arp.polyphonic = 0;
776-
synth->arp.hold = 0;
777753
synth->arp.gate_length = 0.8f;
778754
}
779755
ImGui::SameLine(); ImGui::Text("Classic");
@@ -783,7 +759,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
783759
synth->arp.tempo = 80.0f;
784760
synth->arp.octaves = 3;
785761
synth->arp.polyphonic = 1;
786-
synth->arp.hold = 1;
787762
synth->arp.gate_length = 0.9f;
788763
}
789764
ImGui::SameLine(); ImGui::Text("Ethereal");
@@ -794,7 +769,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
794769
synth->arp.gate_length = 0.2f; // Staccato industrial feel
795770
synth->arp.octaves = 2;
796771
synth->arp.polyphonic = 0;
797-
synth->arp.hold = 0;
798772
}
799773
ImGui::SameLine(); ImGui::Text("Harsh");
800774

@@ -803,7 +777,6 @@ void gui_draw(Synth *synth, SDL_Window *window, SDL_GLContext gl_context,
803777
synth->arp.tempo = 120.0f;
804778
synth->arp.octaves = 2;
805779
synth->arp.polyphonic = 0;
806-
synth->arp.hold = 0;
807780
synth->arp.gate_length = 0.6f; // Medium gate for swing feel
808781
}
809782
ImGui::SameLine(); ImGui::Text("Bouncing");

0 commit comments

Comments
 (0)