aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
blob: ac320ba78d01e98c76f599571b43f67149de4626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "maximilian.h"

maxiOsc myOsc;
maxiEnvelope myEnv;
int counter;
double tv[8] = {1,1,0,1,1,2,0,4};

void setup() {//some inits
    
}

void play(double *output) {//this is where the magic happens. Very slow magic.
    
    
    
    double out = myEnv.ramps(tv);
    
    output[0]=myOsc.sinewave(440)*out;
    
    output[1]=output[0];
}