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

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

maxiOsc mySine,myOtherSine,myPhasor;//Three oscillators. They can be called anything. They can be any of the available waveforms.


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

void play(double *output) {
	
	*output=mySine.sinewave(440)*myOtherSine.sinewave(myPhasor.phasor(0.1,0,440));
	
}