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

xtParts.h (438B)


      1 #pragma once
      2 
      3 #include "jucePluginEditorLib/partbutton.h"
      4 
      5 #include "xtPartButton.h"
      6 
      7 namespace xtJucePlugin
      8 {
      9 	class PartName;
     10 
     11 	class Parts
     12 	{
     13 	public:
     14 		Parts(Editor& _editor);
     15 
     16 		bool selectPart(uint8_t _part) const;
     17 
     18 	private:
     19 		void updateUi() const;
     20 
     21 		Editor& m_editor;
     22 
     23 		struct Part
     24 		{
     25 			PartButton* m_button = nullptr;
     26 			PartName* m_name = nullptr;
     27 			juce::Button* m_led = nullptr;
     28 		};
     29 
     30 		std::array<Part,8> m_parts;
     31 	};
     32 }