SndFileInstrument.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #ifndef CSL_SndFile_Instrument_H
00029 #define CSL_SndFile_Instrument_H
00030 
00031 #include "Instrument.h"
00032 #include "CSL_All.h"
00033 
00037 #define set_rate_f      22
00038 #define set_file_f      23
00039 #define set_start_f     24
00040 #define set_stop_f      25
00041 
00042 namespace csl  {
00043 
00047 class SndFileInstrument : public Instrument {
00048 public:
00049     SndFileInstrument(string path = "", int start = -1, int stop = -1);
00050     ~SndFileInstrument();
00051 
00053     void setParameter(unsigned selector, void * value);
00055     void play();        
00056     void playOSC(const char * types, void * args);      
00057     void playNote(float ampl = 1, float pos = 0, float rate = 1, int start = -1, int stop = -1, float attack = 0.0, float decay = 0.0);
00058 
00060     SoundFile mPlayer;                  
00061     AR mEnvelope;                       
00062     Panner mPanner;                     
00063     StaticVariable mRate;                   
00064     int mStart, mStop;                  
00065 };
00066 
00067 }
00068 
00069 #endif

Generated on Fri Apr 6 20:18:12 2007 for CSL by  doxygen 1.4.5-20051010