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

n2xParts.h (414B)


      1 #pragma once
      2 
      3 #include "n2xPart.h"
      4 #include "n2xPartLed.h"
      5 
      6 #include "baseLib/event.h"
      7 
      8 namespace n2xJucePlugin
      9 {
     10 	class Editor;
     11 
     12 	class Parts
     13 	{
     14 	public:
     15 		explicit Parts(Editor& _editor);
     16 
     17 	private:
     18 		void setCurrentPart(uint8_t _part) const;
     19 
     20 		Editor& m_editor;
     21 
     22 		std::array<Part*,4> m_parts;
     23 		std::array<std::unique_ptr<PartLed>,4> m_partLeds;
     24 		baseLib::EventListener<uint8_t> onCurrentPartChanged;
     25 
     26 	};
     27 }