aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian_examples/20.additive.cpp
diff options
context:
space:
mode:
authormick grierson <mickgrierson@gmail.com>2015-07-26 23:57:38 +0100
committermick grierson <mickgrierson@gmail.com>2015-07-26 23:57:38 +0100
commit68ee8eba9c3834604d220f4bf56e7e9d506a77a7 (patch)
treec021e67cc0ebc042a896259c2e508b8b60ad6c6d /maximilian_examples/20.additive.cpp
parentcb3e92e75b1492bc1434431e975d1acf145c84fc (diff)
Some initial changes that are long overdue part 1
Diffstat (limited to 'maximilian_examples/20.additive.cpp')
-rw-r--r--maximilian_examples/20.additive.cpp26
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!
-
-
-}
-