From 9b02537e82866bcfdcb22a5e7fd9c7f5217c2c64 Mon Sep 17 00:00:00 2001 From: Chris Kiefer Date: Tue, 23 Aug 2011 16:59:47 +0100 Subject: maximillian basic examples --- maximilian_examples/4.AM2.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 maximilian_examples/4.AM2.cpp (limited to 'maximilian_examples/4.AM2.cpp') diff --git a/maximilian_examples/4.AM2.cpp b/maximilian_examples/4.AM2.cpp new file mode 100755 index 0000000..4e783d3 --- /dev/null +++ b/maximilian_examples/4.AM2.cpp @@ -0,0 +1,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)); + +} -- cgit v1.3