mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-04-29 17:35:33 +00:00
Noise changes output based on state
This commit is contained in:
parent
2922aca05a
commit
cb7fdcf50b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "droplets/noise_droplet.h"
|
||||
|
||||
using namespace daisy;
|
||||
using namespace daisysp;
|
||||
|
||||
DaisyPatch patch;
|
||||
Menu menu(&patch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user