diff options
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,14 +1,20 @@ #include "maximilian.h" -maxiOsc mySine;//let's create an oscillator and give it a name. +const int NUM = 200; +maxiOsc sineBank[NUM];//let's create an oscillator and give it a name. +maxiOsc modu; 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 = modu.saw(100); + *output = wave;//simple as that! - *output=mySine.sinewave(440);//simple as that! - + } |
