BasicFMInstrument.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 
00029 #ifndef INCLUDE_Basic_FM_Instrument_H
00030 #define INCLUDE_Basic_FM_Instrument_H
00031 
00032 #include "Instrument.h"
00033 #include "Mixer.h"
00034 
00035 namespace csl  {
00036 
00040 #define  set_iattack_f      10
00041 #define  set_idecay_f       11
00042 #define  set_isustain_f 12
00043 #define  set_irelease_f 13
00044 
00045 #define  set_index_f        14
00046 #define  set_c_freq_f       15
00047 #define  set_m_freq_f   16
00048 
00052 class BasicFMInstrument : public Instrument {
00053 public:
00054     BasicFMInstrument();            
00055     ~BasicFMInstrument();
00057     void setParameter(unsigned selector, void * value);
00059     void playOSC(const char * types, void * args);  
00060     
00061     void playNote(float dur = 1, float ampl = 1, 
00062                 float c_fr = 110, float m_fr = 110, float ind = 1, float pos = 0,
00063                 float att = 0.1, float dec = 0.1, float sus = 0.5, float rel = 0.1, 
00064                 float i_att = 0.1, float i_dec = 0.1, float i_sus = 0.5, float i_rel = 0.1);
00065 
00067     ADSR mAEnv, mIEnv;          
00068     Sine mCar, mMod;            
00069     Panner mPanner;             
00070 };
00071 
00072 }
00073 
00074 #endif

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