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/3.AM1.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 maximilian_examples/3.AM1.cpp (limited to 'maximilian_examples/3.AM1.cpp') diff --git a/maximilian_examples/3.AM1.cpp b/maximilian_examples/3.AM1.cpp new file mode 100755 index 0000000..ec96c7f --- /dev/null +++ b/maximilian_examples/3.AM1.cpp @@ -0,0 +1,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); + +} -- cgit v1.3