00001
00013
00014
00015 #ifndef SOUNDFILES_H
00016 #define SOUNDFILES_H
00017
00018 #include "Granulator.h"
00019 #include "BreakLine.h"
00020 #include <Window.h>
00021 #include <FileIn.h>
00022
00023 class SoundFiles : public Granulator
00024 {
00025 public:
00026 SoundFiles (const float &sr, const unsigned int &maxOverlap, FileIn* sndFile, Window* window);
00027 virtual ~SoundFiles ();
00028 void setFile (FileIn* sndFile);
00029 virtual void setDefaults ();
00030 void setStart (const float &start);
00031 void setEnd (const float &end);
00032 void setPitch (const float &pitch);
00033 void setSpeed (const float &speed);
00034 void setRndPitch (const float &rndPitch);
00035 void setJittering (const float &jittering);
00036 virtual void outSig (float& LeftSig,float& RigthSig);
00037 private:
00038 Phasor* scanning;
00039 FileIn* _sndFile;
00040
00041 float _rangeScan;
00042 float _start;
00043 float _end;
00044 float _speed;
00045 };
00046 #endif