blob: eae6b1029eea17a9eda8522b73b4a6ec5ba756d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "maximilian.h"
//This shows how the fundamental building block of digital audio - the sine wave.
//
maxiOsc mySine;//One oscillator - can be called anything. Can be any of the available waveforms.
void setup() {//some inits
//nothing to go here this time
}
void play(double *output) {
output[0]=mySine.sinewave(440);
output[1]=output[0];
}
|