diff options
| author | mick grierson <mickgrierson@gmail.com> | 2015-10-01 09:54:19 +0100 |
|---|---|---|
| committer | mick grierson <mickgrierson@gmail.com> | 2015-10-01 09:54:19 +0100 |
| commit | e4eb667af04304cbe9c0be5997ebea2049178590 (patch) | |
| tree | 5630e70df8199c9f53170c9ef4da1e4dac59e69c /maximilian_examples/20.additive.cpp | |
| parent | 537a5a959f8ec9c4fcb5fd016f2a6be65ca99f3c (diff) | |
| parent | dfa3efd8495628d55f55ee8c8c8576095c2089e4 (diff) | |
resolving merge conflict
Diffstat (limited to 'maximilian_examples/20.additive.cpp')
| -rw-r--r-- | maximilian_examples/20.additive.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/maximilian_examples/20.additive.cpp b/maximilian_examples/20.additive.cpp deleted file mode 100644 index 753434d..0000000 --- a/maximilian_examples/20.additive.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "maximilian.h" - -maxiOsc sineBank[10];//let's create an oscillator and give it a name. - -void setup() {//some inits - //nothing to go here this time -} - - - -void play(double *output) {//this is where the magic happens. Very slow magic. - - double wave=0; - double f0 = 100; - for(int i=0; i < 10; i++) { - double thisSine = wave + sineBank[i].sinewave(f0 + (i * f0)); - double multiplier = 1.0 / (i+1.0); - thisSine = thisSine * multiplier; - wave = wave + thisSine; - } - wave *= 0.1; - *output = wave;//simple as that! - - -} - |
