2019-07-02 06:55:14 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "SharesParams.h"
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class Params: public SharesParams {
|
|
|
|
public:
|
|
|
|
Params() noexcept;
|
|
|
|
|
2019-07-07 07:22:47 +08:00
|
|
|
virtual void setAttributesOnXml(shared_ptr<XmlElement> xml) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
virtual void loadAttributesFromXml(shared_ptr<XmlElement> xmlState) override;
|
2019-07-07 07:22:47 +08:00
|
|
|
// virtual void acceptMidiControlEvent(int controller, int value) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
|
|
|
virtual void setSoundFontPath(const String& value) override;
|
|
|
|
virtual String& getSoundFontPath() override;
|
2019-07-07 07:22:47 +08:00
|
|
|
// virtual int getPreset() override;
|
|
|
|
// virtual void setPreset(int value) override;
|
|
|
|
// virtual int getBank() override;
|
|
|
|
// virtual void setBank(int value) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
2019-07-08 00:35:31 +08:00
|
|
|
// virtual int getUiWidth() override;
|
|
|
|
// virtual void setUiWidth(int value) override;
|
|
|
|
// virtual int getUiHeight() override;
|
|
|
|
// virtual void setUiHeight(int value) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
2019-07-07 07:22:47 +08:00
|
|
|
// virtual int getAttack() override;
|
|
|
|
// virtual void setAttack(int value) override;
|
|
|
|
// virtual int getDecay() override;
|
|
|
|
// virtual void setDecay(int value) override;
|
|
|
|
// virtual int getSustain() override;
|
|
|
|
// virtual void setSustain(int value) override;
|
|
|
|
// virtual int getRelease() override;
|
|
|
|
// virtual void setRelease(int value) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
2019-07-07 07:22:47 +08:00
|
|
|
// virtual int getFilterCutOff() override;
|
|
|
|
// virtual void setFilterCutOff(int value) override;
|
|
|
|
// virtual int getFilterResonance() override;
|
|
|
|
// virtual void setFilterResonance(int value) override;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
|
|
|
private:
|
2019-07-08 00:35:31 +08:00
|
|
|
// int uiWidth;
|
|
|
|
// int uiHeight;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
|
|
|
String soundFontPath;
|
2019-07-07 07:22:47 +08:00
|
|
|
// int preset;
|
|
|
|
// int bank;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
2019-07-07 07:22:47 +08:00
|
|
|
// int attack;
|
|
|
|
// int decay;
|
|
|
|
// int sustain;
|
|
|
|
// int release;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
2019-07-07 07:22:47 +08:00
|
|
|
// int filterCutOff;
|
|
|
|
// int filterResonance;
|
2019-07-02 06:55:14 +08:00
|
|
|
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Params)
|
|
|
|
};
|