diff --git a/README.md b/README.md index 1bc7693..3255131 100644 --- a/README.md +++ b/README.md @@ -16,28 +16,20 @@ After checking out AudibleInstruments in the `plugins/` directory, get external ### Macro Oscillator Based on [Braids](https://mutable-instruments.net/modules/braids), [Manual](https://mutable-instruments.net/modules/braids/manual/) - -![Macro Oscillator](https://vcvrack.com/images/AudibleInstruments/macro%20oscillator.png) - Sync input doesn't work - More settings could be supported ### Modal Synthesizer Based on [Elements](https://mutable-instruments.net/modules/elements), [Manual](https://mutable-instruments.net/modules/elements/manual/) -![Modal Synthesizer](https://vcvrack.com/images/AudibleInstruments/modal%20synthesizer.png) - ### Tidal Modulator Based on [Tides](https://mutable-instruments.net/modules/tides), [Manual](https://mutable-instruments.net/modules/tides/manual/) -![Tidal Modulator](https://vcvrack.com/images/AudibleInstruments/tidal%20modulator.png) - ### Wavetable Oscillator Based on [Sheep](https://mutable-instruments.net/modules/tides/firmware/) (Tides alternative firmware) ### Texture Synthesizer Based on [Clouds](https://mutable-instruments.net/modules/clouds), [Manual](https://mutable-instruments.net/modules/clouds/manual/) - -![Texture Synthesizer](https://vcvrack.com/images/AudibleInstruments/texture%20synthesizer.png) - edit buttons and lights - freeze button - right-click context menus to replace menu diving @@ -45,46 +37,30 @@ Based on [Clouds](https://mutable-instruments.net/modules/clouds), [Manual](http ### Meta Modulator Based on [Warps](https://mutable-instruments.net/modules/warps), [Manual](https://mutable-instruments.net/modules/warps/manual/) -![Meta Modulator](https://vcvrack.com/images/AudibleInstruments/meta%20modulator.png) - ### Resonator Based on [Rings](https://mutable-instruments.net/modules/rings), [Manual](https://mutable-instruments.net/modules/rings/manual/) -![Resonator](https://vcvrack.com/images/AudibleInstruments/resonator.png) - ### Keyframer/Mixer Based on [Frames](https://mutable-instruments.net/modules/frames), [Manual](https://mutable-instruments.net/modules/frames/manual/) ### Multiples Based on [Links](https://mutable-instruments.net/modules/links), [Manual](https://mutable-instruments.net/modules/links/manual/) -![Multiples](https://vcvrack.com/images/AudibleInstruments/multiples.png) - ### Utilities Based on [Kinks](https://mutable-instruments.net/modules/kinks), [Manual](https://mutable-instruments.net/modules/kinks/manual/) -![Utilities](https://vcvrack.com/images/AudibleInstruments/utilities.png) - ### Mixer Based on [Shades](https://mutable-instruments.net/modules/shades), [Manual](https://mutable-instruments.net/modules/shades/manual/) -![Mixer](https://vcvrack.com/images/AudibleInstruments/mixer.png) - ### Bernoulli Gate Based on [Branches](https://mutable-instruments.net/modules/branches), [Manual](https://mutable-instruments.net/modules/branches/manual/) -![Bernoulli Gate](https://vcvrack.com/images/AudibleInstruments/bernoulli%20gate.png) - ### Quad VC-polarizer Based on [Blinds](https://mutable-instruments.net/modules/blinds), [Manual](https://mutable-instruments.net/modules/blinds/manual/) -![Quad VC-polarizer](https://vcvrack.com/images/AudibleInstruments/quad%20VC-polarizer.png) - ### Quad VCA Based on [Veils](https://mutable-instruments.net/modules/veils), [Manual](https://mutable-instruments.net/modules/veils/manual/) -![Quad VCA](https://vcvrack.com/images/AudibleInstruments/quad%20VCA.png) - ## Not yet ported diff --git a/src/Tides.cpp b/src/Tides.cpp index b486793..20b9610 100644 --- a/src/Tides.cpp +++ b/src/Tides.cpp @@ -192,18 +192,6 @@ void Tides::step() { } -struct TidesSheepItem : MenuItem { - Tides *tides; - void onAction(EventAction &e) override { - tides->sheep ^= true; - } - void step() override { - rightText = (tides->sheep) ? "✔" : ""; - MenuItem::step(); - } -}; - - struct TidesWidget : ModuleWidget { SVGPanel *tidesPanel; SVGPanel *sheepPanel; @@ -271,11 +259,19 @@ struct TidesWidget : ModuleWidget { void appendContextMenu(Menu *menu) override { - Tides *tides = dynamic_cast(module); - assert(tides); - - menu->addChild(construct()); - menu->addChild(construct(&MenuItem::text, "Sheep", &TidesSheepItem::tides, tides)); + Tides *module = dynamic_cast(this->module); + + struct SheepItem : MenuItem { + Tides *module; + void onAction(EventAction &e) override { + module->sheep ^= true; + } + }; + + menu->addChild(MenuEntry::create()); + SheepItem *sheepItem = MenuItem::create("Sheep", CHECKMARK(module->sheep)); + sheepItem->module = module; + menu->addChild(sheepItem); } };