#pragma once #include "common.hpp" #include #include #include namespace rack_plugin_TheXOR { #define NUM_SEQUENCERS (5) #define TOTAL_STEPS (32) } // namespace rack_plugin_TheXOR #include "sprlnSequencer.hpp" #include "SpiraloneModule.hpp" namespace rack_plugin_TheXOR { //////////////////// // module widgets //////////////////// struct Spiralone; struct SpiraloneWidget : SequencerWidget { public: SpiraloneWidget(Spiralone *module); Menu *addContextMenu(Menu *menu) override; void onMenu(int action); private: enum MENUACTIONS { RANDOMIZE_PITCH, RANDOMIZE_LEN, RANDOMIZE_STRIDE, RANDOMIZE_XPOSE }; void createSequencer(int seq); ModuleLightWidget *createLed(int seq, Vec pos, Module *module, int firstLightId, bool big = false); NVGcolor color[NUM_SEQUENCERS]; }; } // namespace rack_plugin_TheXOR