annotate trunk/src/Modules/Output/Graphics/Scale/ScaleLinear.h @ 400:dd13c9834ceb

- 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 3ee03a6b95a0
children
rev   line source
tomwalters@397 1 /*!
tomwalters@397 2 * \file
tomwalters@397 3 * \brief Linear frequency scale for generating filter banks and their frequencies
tomwalters@397 4 *
tomwalters@397 5 * \author Willem van Engen <cnbh@willem.engen.nl>
tomwalters@397 6 * \date created 2006/09/26
tomwalters@397 7 * \version \$Id: ScaleLinear.h 459 2007-11-08 11:50:04Z tom $
tomwalters@397 8 */
tomwalters@397 9 /* (c) 2006, University of Cambridge, Medical Research Council
tomwalters@397 10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual
tomwalters@397 11 */
tomwalters@397 12 #ifndef __MODULE_SCALE_LINEAR_H__
tomwalters@397 13 #define __MODULE_SCALE_LINEAR_H__
tomwalters@397 14
tom@400 15 #include "Modules/Output/Graphics/Scale/Scale.h"
tom@400 16
tom@400 17 namespace aimc {
tomwalters@397 18
tomwalters@397 19 /*!
tomwalters@397 20 * \class ScaleLinear "Modules/Scale/ScaleLinear.h"
tomwalters@397 21 * \brief Linear frequency scale for generating filter banks and their frequencies
tomwalters@397 22 *
tomwalters@397 23 * It is very advisable to use Scale::Create() to an instance of this scale.
tomwalters@397 24 *
tomwalters@397 25 * In terms of scaling, this is of course an identity transformation.
tomwalters@397 26 */
tomwalters@397 27 class ScaleLinear : public Scale {
tomwalters@397 28 public:
tomwalters@398 29 ScaleLinear(unsigned int min, unsigned int max, float density)
tomwalters@398 30 : Scale(min, max, density) { m_iType = SCALE_LINEAR; m_sName = "linear"; };
tomwalters@397 31
tomwalters@398 32 float FromLinear(float fFreq) {
tomwalters@398 33 return fFreq;
tomwalters@398 34 };
tomwalters@397 35
tomwalters@398 36 float ToLinear(float fFreq) {
tomwalters@398 37 return fFreq;
tomwalters@398 38 };
tomwalters@397 39 };
tom@400 40 } // namepspace aimc
tomwalters@397 41 #endif /* __MODULE_SCALE_LINEAR_H__ */