MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / setMenu

Method setMenu

Source/Panels/ControlPanel/BandPanel.cpp:722–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722void BandPanel::setMenu(juce::ComboBox* combobox)
723{
724 addAndMakeVisible(combobox);
725 combobox->addSectionHeading("Soft Clipping");
726 combobox->addItem("Arctan", 1);
727 combobox->addItem("Exp", 2);
728 combobox->addItem("Tanh", 3);
729 combobox->addItem("Cubic", 4);
730 combobox->addSeparator();
731 combobox->addSectionHeading("Hard Clipping");
732 combobox->addItem("Hard", 5);
733 combobox->addItem("Sausage", 6);
734 combobox->addSeparator();
735 combobox->addSectionHeading("Foldback");
736 combobox->addItem("Sin", 7);
737 combobox->addItem("Linear", 8);
738 combobox->addSeparator();
739 combobox->addSectionHeading("Other");
740 combobox->addItem("Limit", 9);
741 combobox->addItem("Single Sin", 10);
742 combobox->addItem("Logic", 11);
743 combobox->addItem("Pit", 12);
744 combobox->addSeparator();
745 combobox->setJustificationType(juce::Justification::centred);
746 combobox->addListener(this);
747}
748
749void BandPanel::updateDistortionModeVisibility()
750{

Callers

nothing calls this directly

Calls 1

addListenerMethod · 0.80

Tested by

no test coverage detected