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/1.TestTone.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 maximilian_examples/1.TestTone.cpp (limited to 'maximilian_examples/1.TestTone.cpp') diff --git a/maximilian_examples/1.TestTone.cpp b/maximilian_examples/1.TestTone.cpp new file mode 100755 index 0000000..77783b4 --- /dev/null +++ b/maximilian_examples/1.TestTone.cpp @@ -0,0 +1,14 @@ +#include "maximilian.h" + +maxiOsc mySine;//let's create an oscillator and give it a name. + +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);//simple as that! + +} + -- cgit v1.3