gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

weTablesTree.h (561B)


      1 #pragma once
      2 
      3 #include "weTree.h"
      4 
      5 #include "xtLib/xtId.h"
      6 
      7 #include "jucePluginLib/parameterlistener.h"
      8 
      9 namespace xtJucePlugin
     10 {
     11 	class TablesTree : public Tree
     12 	{
     13 	public:
     14 		explicit TablesTree(WaveEditor& _editor);
     15 
     16 		void setSelectedTable(xt::TableId _id) const;
     17 
     18 		void setSelectedEntryFromCurrentPreset() const;
     19 
     20 	private:
     21 		void onWaveParamChanged() const;
     22 		void onPartChanged() const;
     23 		pluginLib::Parameter* getWaveParameter() const;
     24 
     25 		pluginLib::ParameterListener m_waveParamListener;
     26 		baseLib::EventListener<uint8_t> m_partChangedListener;
     27 	};
     28 }