aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian_examples/3.AM1.cpp
blob: ec96c7ff41b5d20bda012dc09c4621db578789bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "maximilian.h"

//This shows how to use maximilian to do basic amplitude modulation

maxiOsc mySine,myOtherSine;//Two oscillators. They can be called anything. They can be any of the available waveforms. These ones will be sinewaves

void setup() {//some inits
	//nothing to go here this time	
}

void play(double *output) {
	
	*output=mySine.sinewave(440)*myOtherSine.sinewave(10);
	
}