Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_CoreEngineSampler.cpp
Go to the documentation of this file.
1namespace krotos
2{
4 {
5 m_Detune.setVisible(shouldBeVisible);
7 m_DetuneRand.setVisible(shouldBeVisible);
8 m_Pan.setVisible(shouldBeVisible);
9 m_PanRand.setVisible(shouldBeVisible);
10 m_Level.setVisible(shouldBeVisible);
12 m_LevelRand.setVisible(shouldBeVisible);
13 m_SamplerLevel.setVisible(shouldBeVisible);
14
15 m_NormaliseToggle.setVisible(shouldBeVisible);
16 m_QuenchToggle.setVisible(shouldBeVisible);
17 m_NORToggle.setVisible(shouldBeVisible);
18 m_RobinToggle.setVisible(shouldBeVisible);
19 m_SALoopToggle.setVisible(shouldBeVisible);
20 m_trigger.setVisible(shouldBeVisible);
21 m_AutoplayToggle.setVisible(shouldBeVisible);
22 m_RobinToggle.setVisible(shouldBeVisible);
23
25 }
26
34
36 {
37 m_tabbedComponent->clearTabs();
38 m_tabbedComponent->addTab("MAIN", findColour(TabbedComponent::backgroundColourId), &m_mainTab, false);
39 m_tabbedComponent->addTab("AMP ENV", findColour(TabbedComponent::backgroundColourId), &m_ampEnvTab, false);
40 m_tabbedComponent->addTab("PITCH ENV", findColour(TabbedComponent::backgroundColourId), &m_pitchEnvTab, false);
41 // special case slider - changes Tab depending on Granular mode
43 // Loop through every tab button
44 for (int tabIndex = 0; tabIndex < m_tabbedComponent->getNumTabs(); tabIndex++)
45 {
46 const auto& tabButton = m_tabbedComponent->getTabbedButtonBar().getTabButton(tabIndex);
47 // Construct and set a unique ID for each button
48 tabButton->setComponentID("SamplerTab" + tabButton->getName());
49 }
50 }
51} // namespace krotos
Slider & getSlider()
Definition AttachedSlider.cpp:165
Button & getButton()
Definition AttachedToggleButton.cpp:26
AttachedSlider m_DetuneRand
Definition KwidgetGUI_CoreEngine.h:116
std::unique_ptr< TabbedComponent > m_tabbedComponent
Definition KwidgetGUI_CoreEngine.h:331
void setSamplerControlsVisibility(bool shouldBeVisible)
Definition KwidgetGUI_CoreEngineSampler.cpp:3
AttachedSlider m_Pan
Definition KwidgetGUI_CoreEngine.h:108
AttachedToggleButton m_QuenchToggle
Definition KwidgetGUI_CoreEngine.h:145
AttachedToggleButton m_RobinToggle
Definition KwidgetGUI_CoreEngine.h:147
AttachedToggleButton m_SALoopToggle
Definition KwidgetGUI_CoreEngine.h:148
ComboBox m_trigger
Definition KwidgetGUI_CoreEngine.h:142
Component m_pitchEnvTab
Definition KwidgetGUI_CoreEngine.h:332
AttachedSlider m_PanRand
Definition KwidgetGUI_CoreEngine.h:118
AttachedToggleButton m_AutoplayToggle
Definition KwidgetGUI_CoreEngine.h:153
AttachedToggleButton m_NormaliseToggle
Definition KwidgetGUI_CoreEngine.h:152
Component m_mainTab
Definition KwidgetGUI_CoreEngine.h:332
Component m_ampEnvTab
Definition KwidgetGUI_CoreEngine.h:332
AttachedSlider m_Level
Definition KwidgetGUI_CoreEngine.h:109
void tabSetupSampler()
Definition KwidgetGUI_CoreEngineSampler.cpp:35
AttachedSlider m_LevelRand
Definition KwidgetGUI_CoreEngine.h:119
AttachedSlider m_Detune
Definition KwidgetGUI_CoreEngine.h:106
AttachedSlider m_SamplerLevel
Definition KwidgetGUI_CoreEngine.h:110
AttachedToggleButton m_NORToggle
Definition KwidgetGUI_CoreEngine.h:146
void resizeSampler()
Definition KwidgetGUI_CoreEngineSampler.cpp:27
struct krotos::KwidgetGUI_CoreEngine::Layout m_layout
void addAttachedComponent(AttachedComponentType &component, const String &paramID, bool isDraggable=true)
Definition KwidgetGUI.h:112
Definition AirAbsorptionFilter.cpp:2
static const String PitchRand
Definition Kwidget_CoreEngine.h:36
static const String ButtonLoopToggleSamplerId
Definition KwidgetGUI_CoreEngine.h:85
static const String SliderLevelSamplerId
Definition KwidgetGUI_CoreEngine.h:63
static const String SliderPitchSamplerId
Definition KwidgetGUI_CoreEngine.h:67
const Rectangle< int > rotSliderBottomL
Definition KwidgetGUI_CoreEngine.h:264
const Rectangle< int > rotSliderTopL
Definition KwidgetGUI_CoreEngine.h:263
const Rectangle< int > rotSliderBottomM
Definition KwidgetGUI_CoreEngine.h:266
struct krotos::KwidgetGUI_CoreEngine::Layout::ControlsTabs controlsTabs