diff --git a/src/droplets/noise_droplet.cpp b/src/droplets/noise_droplet.cpp index e36a532..9b85bce 100644 --- a/src/droplets/noise_droplet.cpp +++ b/src/droplets/noise_droplet.cpp @@ -14,7 +14,14 @@ void NoiseDroplet::Control() {} void NoiseDroplet::Process(float** in, float** out, size_t size) { for (size_t i = 0; i < size; i += 2) { float sig = noise.Process(); - for (size_t chn = 0; chn < 4; chn++) { + size_t chn_min = 0; + size_t chn_max = 4; + if (state == DropletState::kLeft) { + chn_max = 2; + } else if (state == DropletState::kRight) { + chn_min = 2; + } + for (size_t chn = chn_min; chn < chn_max; chn++) { out[chn][i] = sig; } } diff --git a/src/main.cpp b/src/main.cpp index b632b44..299fa47 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,6 @@ #include "droplets/noise_droplet.h" using namespace daisy; -using namespace daisysp; DaisyPatch patch; Menu menu(&patch);