blob: 4e22994b881e0e5df4592627c0bd4efaeb2c9192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "maximilian.h"
maxiOsc mySine,myOtherSine;//Two oscillators with names.
void setup() {//some inits
//nothing to go here this time
}
void play(double *output) {//this is where the magic happens. Very slow magic.
*output=mySine.sinewave(440)+myOtherSine.sinewave(441);//these two sines will beat together. They're now a bit too loud though..
}
|