aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authormick <mickgrierson@gmail.com>2015-01-08 15:49:42 +0000
committermick <mickgrierson@gmail.com>2015-01-08 15:49:42 +0000
commit818e004b46ec4b6b8d4f80eff32e3562c252bd89 (patch)
treee1c71e984a4b72905ae5a9c537ecfaaf97655e10 /main.cpp
parent6108e512d2a68d6e08e10ea2b6384df56cb7d978 (diff)
just some stuff
Diffstat (limited to 'main.cpp')
-rwxr-xr-xmain.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 60b2b6e..e0b1619 100755
--- a/main.cpp
+++ b/main.cpp
@@ -1,6 +1,7 @@
#include "maximilian.h"
maxiOsc myCounter,mySwitchableOsc;//
+maxiSample beat;
int CurrentCount;//
double myOscOutput,myFilteredOutput;//
double myEnvelopeData[6] = {500,0,1000,500,0,500};//this data will be used to make an envelope. Value and time to value in ms.
@@ -9,6 +10,7 @@ maxiFilter myFilter;
void setup() {//some inits
myEnvelope.amplitude=myEnvelopeData[0]; //initialise the envelope
+ beat.load("/Users/mick/Documents/workspace/Maximilian/beat2.wav");
}
void play(double *output) {
@@ -29,5 +31,5 @@ void play(double *output) {
myFilteredOutput=myFilter.lores(myOscOutput,(myEnvelope.line(6, myEnvelopeData)),10);//lores takes an audio input, a frequency and a resonance factor (1-100)
- *output=myFilteredOutput;//point me at your speakers and fire.
+ *output=myFilteredOutput/2+beat.play(-1.,0,beat.length);//point me at your speakers and fire.
}