comparison src/Modules/Output/Graphics/Scale/ScaleERB.h @ 119:9d880fb93c39

- Well, most of the graphics stuff at least compiles now. Next step is getting it running. M Modules/Output/Graphics/GraphicsView.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h M Modules/Output/Graphics/Scale/ScaleLog.h M Modules/Output/Graphics/Scale/ScaleERB.h M Modules/Output/Graphics/Scale/ScaleLinear.h M Modules/Output/Graphics/Scale/ScaleLogScaled.h M Modules/Output/Graphics/Scale/Scale.cc M Modules/Output/Graphics/Scale/Scale.h M Support/Common.h
author tom@acousticscale.org
date Sat, 16 Oct 2010 23:05:26 +0000
parents c5ac2f0c7fc5
children 73c6d61440ad
comparison
equal deleted inserted replaced
118:18237d55e346 119:9d880fb93c39
12 #ifndef __MODULE_SCALE_ERB_H__ 12 #ifndef __MODULE_SCALE_ERB_H__
13 #define __MODULE_SCALE_ERB_H__ 13 #define __MODULE_SCALE_ERB_H__
14 14
15 #include <math.h> 15 #include <math.h>
16 16
17 #include "Modules/Scale/Scale.h" 17 #include "Modules/Output/Graphics/Scale/Scale.h"
18
19 namespace aimc {
18 20
19 /*! 21 /*!
20 * \class ScaleERB "Modules/Scale/ScaleERB.h" 22 * \class ScaleERB "Modules/Scale/ScaleERB.h"
21 * \brief ERB frequency scale for generating filter banks and their frequencies 23 * \brief ERB frequency scale for generating filter banks and their frequencies
22 * 24 *
37 39
38 float ToLinear(float fFreq) { 40 float ToLinear(float fFreq) {
39 return (pow(10, fFreq/21.4f) - 1.0f)/0.00437f; 41 return (pow(10, fFreq/21.4f) - 1.0f)/0.00437f;
40 }; 42 };
41 }; 43 };
42 44 } // namespace aimc
43 #endif /* __MODULE_SCALE_ERB_H__ */ 45 #endif /* __MODULE_SCALE_ERB_H__ */