From d9b60b090d21c54c6e573f9113aa5883d2a555f3 Mon Sep 17 00:00:00 2001 From: hemmer <915048+hemmer@users.noreply.github.com> Date: Wed, 13 Apr 2022 08:09:08 +0100 Subject: [PATCH] Clean up a couple of warnings Update README.md --- README.md | 12 ++++++------ src/Frames.cpp | 2 +- src/Peaks.cpp | 6 ++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index eb5035e..67816f1 100644 --- a/README.md +++ b/README.md @@ -60,15 +60,15 @@ Based on [Ripples](https://mutable-instruments.net/modules/ripples), [Manual](ht Based on [Shelves](https://mutable-instruments.net/modules/shelves), [Manual](https://mutable-instruments.net/modules/shelves/manual/) - Virtual analog model provided by [Alright Devices](https://www.alrightdevices.com/) after successful crowdfunding. +### Percussive Synth +Based on [Peaks](https://mutable-instruments.net/modules/peaks), [Manual](https://mutable-instruments.net/modules/peaks/manual/) -## Not yet ported +### Dual Dynamics Gate +Based on [Streams](https://mutable-instruments.net/modules/streams), [Manual](https://mutable-instruments.net/modules/streams/manual/) +- Virtual analog model provided by [Alright Devices](https://www.alrightdevices.com/) after successful crowdfunding. -### [Peaks](https://mutable-instruments.net/modules/peaks) -[Manual](https://mutable-instruments.net/modules/peaks/manual/) -### [Streams](https://mutable-instruments.net/modules/streams) -[Manual](https://mutable-instruments.net/modules/streams/manual/) -- analog, but it's possible to fake the filter with schematic analysis, need to buy/borrow a unit +## Not yet ported ### [Yarns](https://mutable-instruments.net/modules/yarns) [Manual](https://mutable-instruments.net/modules/yarns/manual/) diff --git a/src/Frames.cpp b/src/Frames.cpp index 43c72fe..486f446 100644 --- a/src/Frames.cpp +++ b/src/Frames.cpp @@ -293,7 +293,7 @@ struct Frames : Module { }; -struct CKSSRot : SVGSwitch { +struct CKSSRot : SvgSwitch { CKSSRot() { shadow->opacity = 0.0; addFrame(Svg::load(asset::plugin(pluginInstance, "res/CKSS_rot_0.svg"))); diff --git a/src/Peaks.cpp b/src/Peaks.cpp index 5e3d479..d205796 100644 --- a/src/Peaks.cpp +++ b/src/Peaks.cpp @@ -95,9 +95,9 @@ struct Peaks : Module { int32_t adc_threshold_[kNumAdcChannels] = {0, 0, 0, 0}; long long press_time_[2] = {0, 0}; - peaks::Processors processors[2]; + peaks::Processors processors[2] = {}; - int16_t output[kBlockSize]; + int16_t output[kBlockSize] = {}; int16_t brightness[kNumChannels] = {0, 0}; dsp::SchmittTrigger switches_[2]; @@ -214,8 +214,6 @@ struct Peaks : Module { settings_.snap_mode = false; std::fill(&settings_.pot_value[0], &settings_.pot_value[8], 0); - memset(&processors[0], 0, sizeof(processors[0])); - memset(&processors[1], 0, sizeof(processors[1])); processors[0].Init(0); processors[1].Init(1);