aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@strangebook.local>2011-10-12 12:39:14 +0100
committerMick Grierson <mickgrierson@strangebook.local>2011-10-12 12:39:14 +0100
commit6871729fa4eaab98406ce406c6e136042f82f339 (patch)
treee347eb367d8f7c5b350f5f7f053a1491445a5849 /main.cpp
parenta9b7b73bc1bbe47affa034a7dec09b7acbd0e267 (diff)
wrote some garbage at the end of the single channel sample load data so there's something to interpolate with.
Diffstat (limited to 'main.cpp')
-rwxr-xr-xmain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index f1d13b2..605f794 100755
--- a/main.cpp
+++ b/main.cpp
@@ -4,7 +4,7 @@ maxiSample beats; //We give our sample a name. It's called beats this time. We c
void setup() {//some inits
- beats.load("/Users/mickgrierson/Documents/workspace/Maximilian/beat2.wav");//load in your samples. Provide the full path to a wav file.
+ beats.load("/Users/mickgrierson/Documents/workspace/Maximilian/beat2Stereo.wav");//load in your samples. Provide the full path to a wav file.
printf("Summary:\n%s", beats.getSummary());//get info on samples if you like.
}
@@ -13,8 +13,8 @@ void play(double *output) {//this is where the magic happens. Very slow magic.
*output=beats.play();//just play the file. Looping is default for all play functions.
// *output=beats.play(0.69);//play the file with a speed setting. 1. is normal speed.
- // *output=beats.play(0.5,0,44100);//linear interpolationplay with a frequency input, start point and end point. Useful for syncing.
- // *output=beats.play4(0.5,0,44100);//cubic interpolation play with a frequency input, start point and end point. Useful for syncing.
+ // *output=beats.play(0.5,0,beats.length);//linear interpolationplay with a frequency input, start point and end point. Useful for syncing.
+ // *output=beats.play4(0.5,0,beats.length);//cubic interpolation play with a frequency input, start point and end point. Useful for syncing.
}