CLAM-Development
1.1
|
00001 /* 00002 * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG) 00003 * UNIVERSITAT POMPEU FABRA 00004 * 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 #ifndef __EnvelopeDescriptors__ 00023 #define __EnvelopeDescriptors__ 00024 00025 #include <typeinfo> 00026 00027 #include "ProcessingData.hxx" 00028 #include "DataTypes.hxx" 00029 00030 00031 00032 namespace CLAM{ 00033 00034 class Frame; 00035 00036 /* 00037 * This class holds Descriptors computed from Frame data. Right now no specific 00038 * descriptors are computed for frame (only for spectrums, audios... that are held 00039 * inside the frame. TODO: add specific descriptors. 00040 * 00041 */ 00042 class EnvelopeDescriptors : public ProcessingData 00043 { 00044 public: 00045 DYNAMIC_TYPE_USING_INTERFACE (EnvelopeDescriptors, 23, ProcessingData); 00046 DYN_ATTRIBUTE (0, public, TData, TC2TotSize); 00047 DYN_ATTRIBUTE (1, public, TData, MidEnvSize); 00048 DYN_ATTRIBUTE (2, public, TData, MidEnvSize2TotSize); 00049 DYN_ATTRIBUTE (3, public, TData, TotSize); 00050 DYN_ATTRIBUTE (4, public, TData, nSilence); 00051 DYN_ATTRIBUTE (5, public, TData, MidEnvEnVar); 00052 DYN_ATTRIBUTE (6, public, TData, HighAmpDerAv); 00053 DYN_ATTRIBUTE (7, public, TData, LogAttackTime); 00054 DYN_ATTRIBUTE (8, public, TData, MaxAtDer); 00055 DYN_ATTRIBUTE (9, public, TData, AttackDerAv); 00056 DYN_ATTRIBUTE (10, public, TData, Attack2TotSize); 00057 DYN_ATTRIBUTE (11, public, TData, DerAAttackAv); 00058 DYN_ATTRIBUTE (12, public, TData, Pos2NegDer); 00059 DYN_ATTRIBUTE (13, public, TData, LogReleaseTime); 00060 DYN_ATTRIBUTE (14, public, TData, MinReleaseDer); 00061 DYN_ATTRIBUTE (15, public, TData, ReleaseDerAv); 00062 DYN_ATTRIBUTE (16, public, TData, Release2TotSize); 00063 DYN_ATTRIBUTE (17, public, TData, DerBMaxAv); 00064 DYN_ATTRIBUTE (18, public, TData, MaxDerBMax); 00065 DYN_ATTRIBUTE (19, public, TData, DerAMaxAv); 00066 DYN_ATTRIBUTE (20, public, TData, MinDerAMax); 00067 DYN_ATTRIBUTE (21, public, TData, MaxT2TotSize); 00068 DYN_ATTRIBUTE (22, public, TData, Velocity); 00069 00070 00071 private: 00072 void DefaultInit(); 00073 }; 00074 00075 00076 00077 };//CLAM 00078 00079 00080 00081 #endif 00082