aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian_examples/1.TestTone.cpp
blob: c27941cdb24a8dc3f1f1625d78d325f9b70ef031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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];
    
}