diff options
| author | mick <mickgrierson@gmail.com> | 2015-01-08 15:49:42 +0000 |
|---|---|---|
| committer | mick <mickgrierson@gmail.com> | 2015-01-08 15:49:42 +0000 |
| commit | 818e004b46ec4b6b8d4f80eff32e3562c252bd89 (patch) | |
| tree | e1c71e984a4b72905ae5a9c537ecfaaf97655e10 /main.cpp | |
| parent | 6108e512d2a68d6e08e10ea2b6384df56cb7d978 (diff) | |
just some stuff
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. } |
