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/2.TwoTones.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 maximilian_examples/2.TwoTones.cpp (limited to 'maximilian_examples/2.TwoTones.cpp') diff --git a/maximilian_examples/2.TwoTones.cpp b/maximilian_examples/2.TwoTones.cpp new file mode 100755 index 0000000..4e22994 --- /dev/null +++ b/maximilian_examples/2.TwoTones.cpp @@ -0,0 +1,14 @@ +#include "maximilian.h" + +maxiOsc mySine,myOtherSine;//Two oscillators with names. + +void setup() {//some inits + //nothing to go here this time +} + +void play(double *output) {//this is where the magic happens. Very slow magic. + + *output=mySine.sinewave(440)+myOtherSine.sinewave(441);//these two sines will beat together. They're now a bit too loud though.. + +} + -- cgit v1.3