/[svn]/linuxsampler/trunk/src/engines/sfz/LookupTable.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/sfz/LookupTable.cpp

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

revision 2115 by persson, Thu Aug 12 15:36:15 2010 UTC revision 2361 by persson, Sun Aug 26 07:31:12 2012 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2010 Andreas Persson                                    *   *   Copyright (C) 2010 - 2012 Andreas Persson                             *
6   *                                                                         *   *                                                                         *
7   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
8   *   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 279  namespace sfz { Line 279  namespace sfz {
279          if (nbDimensions) {          if (nbDimensions) {
280              int c = len[nbDimensions - 1];              int c = len[nbDimensions - 1];
281              for (dim = nbDimensions - 2 ; dim >= 0 ; dim--) {              for (dim = nbDimensions - 2 ; dim >= 0 ; dim--) {
282                  for (int i = 0 ; i < 128 ; i++) mapArr[dim][i] *= c;                  const DimDef& dimDef = dimDefs[dims[dim]];
283                    int max = dimDef.max == -1 ? 127 : dimDef.max;
284                    for (int i = dimDef.min ; i <= max ; i++) mapArr[dim][i] *= c;
285                  c *= len[dim];                  c *= len[dim];
286              }              }
287          }          }

Legend:
Removed from v.2115  
changed lines
  Added in v.2361

  ViewVC Help
Powered by ViewVC