diff options
| author | mick <mickgrierson@gmail.com> | 2012-06-15 19:45:16 +0100 |
|---|---|---|
| committer | mick <mickgrierson@gmail.com> | 2012-06-15 19:45:16 +0100 |
| commit | 3cdbccabbe8d58cf791a1c80939b43dc340bc735 (patch) | |
| tree | e04430ebcc544ba93f1e2a1adc0dbdaf7e2ec9ae /main.cpp | |
| parent | e44a45b9e2ca3f4e03338f4175023f91b5990ea3 (diff) | |
Small changes to maxisample
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,9 +4,9 @@ maxiSample beats; //We give our sample a name. It's called beats this time. We c void setup() {//some inits -// beats.loadOgg("/Users/mickgrierson/Documents/workspace/vorbis_test/ogg_test/thingy2.ogg");//load in your samples. Provide the full path to a wav file. +// beats.loadOgg("/Users/mickgrierson/Documents/workspace/vorbis_test/ogg_test/thingy2.ogg");//load in your samples. Provide the full path to an ogg file if ogg enabled (uncomment #define VORBIS and add the stb_vorbis files). - beats.load("/Users/mickgrierson/Documents/workspace/vorbis_test/ogg_test/thingy.wav");//load in your samples. Provide the full path to a wav file. + beats.load("/Users/mickgrierson/Documents/workspace/vorbis_test/ogg_test/thingy.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. @@ -15,7 +15,7 @@ void setup() {//some inits void play(double *output) {//this is where the magic happens. Very slow magic. // output[0]=beats.play();//just play the file. Looping is default for all play functions. - output[0]=beats.play(0.5);//play the file with a speed setting. 1. is normal speed. + output[0]=beats.play(1.0);//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,100000);//cubic interpolation play with a frequency input, start point and end point. Useful for syncing. |
