2019-06-30 17:59:07 +08:00
|
|
|
# pragma once
|
|
|
|
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
2019-07-01 04:40:24 +08:00
|
|
|
#include "FluidSynthModel.h"
|
2019-06-30 17:59:07 +08:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class SlidersComponent : public Component
|
|
|
|
{
|
|
|
|
public:
|
2019-07-01 04:40:24 +08:00
|
|
|
SlidersComponent(FluidSynthModel* fluidSynthModel);
|
2019-06-30 17:59:07 +08:00
|
|
|
~SlidersComponent();
|
|
|
|
|
|
|
|
void resized() override;
|
|
|
|
|
2019-06-30 18:39:39 +08:00
|
|
|
const int getDesiredWidth();
|
|
|
|
|
2019-06-30 17:59:07 +08:00
|
|
|
private:
|
2019-07-01 04:40:24 +08:00
|
|
|
std::function<void()> makeSliderListener(Slider& slider, int controller);
|
|
|
|
|
|
|
|
FluidSynthModel* fluidSynthModel;
|
2019-06-30 17:59:07 +08:00
|
|
|
|
|
|
|
GroupComponent envelopeGroup;
|
|
|
|
|
|
|
|
Slider attackSlider;
|
|
|
|
Label attackLabel;
|
|
|
|
|
|
|
|
Slider decaySlider;
|
|
|
|
Label decayLabel;
|
|
|
|
|
|
|
|
Slider sustainSlider;
|
|
|
|
Label sustainLabel;
|
|
|
|
|
|
|
|
Slider releaseSlider;
|
|
|
|
Label releaseLabel;
|
|
|
|
|
|
|
|
GroupComponent filterGroup;
|
|
|
|
|
|
|
|
Slider filterCutOffSlider;
|
|
|
|
Label filterCutOffLabel;
|
|
|
|
|
|
|
|
Slider filterResonanceSlider;
|
|
|
|
Label filterResonanceLabel;
|
|
|
|
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SlidersComponent)
|
|
|
|
};
|