/[svn]/linuxsampler/trunk/src/common/RTMath.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/RTMath.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 553 by schoenebeck, Wed Feb 9 01:22:18 2005 UTC revision 554 by schoenebeck, Thu May 19 19:25:14 2005 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6     *   Copyright (C) 2005 Christian Schoenebeck                              *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 22  Line 23 
23    
24  #include "RTMath.h"  #include "RTMath.h"
25    
26  float  RTMathBase::CentsToFreqTable[MAX_PITCH * 1200 * 2 + 1]; // +-1200 cents per octave  float  RTMathBase::CentsToFreqTable[CONFIG_MAX_PITCH * 1200 * 2 + 1]; // +-1200 cents per octave
27  float* RTMathBase::pCentsToFreqTable(InitCentsToFreqTable());  float* RTMathBase::pCentsToFreqTable(InitCentsToFreqTable());
28    
29  #if defined(__APPLE__)  #if defined(__APPLE__)
# Line 80  RTMathBase::time_stamp_t RTMathBase::Cre Line 81  RTMathBase::time_stamp_t RTMathBase::Cre
81   * ratio' table.   * ratio' table.
82   */   */
83  float* RTMathBase::InitCentsToFreqTable() {  float* RTMathBase::InitCentsToFreqTable() {
84      float* pMiddleOfTable = &CentsToFreqTable[MAX_PITCH * 1200];      float* pMiddleOfTable = &CentsToFreqTable[CONFIG_MAX_PITCH * 1200];
85      for (int i = -1200; i <= 1200; i++) {      for (int i = -1200; i <= 1200; i++) {
86          pMiddleOfTable[i] = pow(TWELVEHUNDREDTH_ROOT_OF_TWO, i);          pMiddleOfTable[i] = pow(TWELVEHUNDREDTH_ROOT_OF_TWO, i);
87      }      }

Legend:
Removed from v.553  
changed lines
  Added in v.554

  ViewVC Help
Powered by ViewVC