2018-04-10 08:17:50 +08:00
|
|
|
//
|
|
|
|
// Created by Alex Birch on 10/04/2018.
|
|
|
|
// Copyright (c) 2018 Birchlabs. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
|
|
|
2019-07-02 06:55:14 +08:00
|
|
|
using namespace std;
|
|
|
|
|
2018-04-10 08:17:50 +08:00
|
|
|
class SharesParams {
|
|
|
|
public:
|
|
|
|
virtual ~SharesParams() {}
|
|
|
|
|
2019-07-02 06:55:14 +08:00
|
|
|
virtual void setAttributesOnXml(XmlElement& xml) = 0;
|
|
|
|
virtual void loadAttributesFromXml(shared_ptr<XmlElement> xmlState) = 0;
|
|
|
|
virtual void acceptMidiControlEvent(int controller, int value) = 0;
|
|
|
|
|
2018-04-10 08:17:50 +08:00
|
|
|
virtual void setSoundFontPath(const String& value) = 0;
|
|
|
|
virtual String& getSoundFontPath() = 0;
|
2018-04-13 07:40:27 +08:00
|
|
|
virtual int getPreset() = 0;
|
2019-07-02 06:55:14 +08:00
|
|
|
virtual void setPreset(int value) = 0;
|
2018-04-13 07:40:27 +08:00
|
|
|
virtual int getBank() = 0;
|
2019-07-02 06:55:14 +08:00
|
|
|
virtual void setBank(int value) = 0;
|
|
|
|
|
|
|
|
virtual int getUiWidth() = 0;
|
|
|
|
virtual void setUiWidth(int value) = 0;
|
|
|
|
virtual int getUiHeight() = 0;
|
|
|
|
virtual void setUiHeight(int value) = 0;
|
|
|
|
|
|
|
|
virtual int getAttack() = 0;
|
|
|
|
virtual void setAttack(int value) = 0;
|
|
|
|
virtual int getDecay() = 0;
|
|
|
|
virtual void setDecay(int value) = 0;
|
|
|
|
virtual int getSustain() = 0;
|
|
|
|
virtual void setSustain(int value) = 0;
|
|
|
|
virtual int getRelease() = 0;
|
|
|
|
virtual void setRelease(int value) = 0;
|
|
|
|
|
|
|
|
virtual int getFilterCutOff() = 0;
|
|
|
|
virtual void setFilterCutOff(int value) = 0;
|
|
|
|
virtual int getFilterResonance() = 0;
|
|
|
|
virtual void setFilterResonance(int value) = 0;
|
|
|
|
|
2018-04-10 08:17:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|