/[svn]/linuxsampler/trunk/src/engines/gig/Synthesizer.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Synthesizer.h

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

revision 2047 by schoenebeck, Mon Jan 11 21:14:14 2010 UTC revision 2175 by persson, Mon Apr 25 08:12:36 2011 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 - 2007 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2011 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 169  namespace LinuxSampler { namespace gig { Line 169  namespace LinuxSampler { namespace gig {
169                              double dPos    = pFinalParam->dPos;                              double dPos    = pFinalParam->dPos;
170                              float fPitch   = pFinalParam->fFinalPitch;                              float fPitch   = pFinalParam->fFinalPitch;
171                              if (USEFILTER) {                              if (USEFILTER) {
172                                  Filter filterL = pFinalParam->filterLeft;                                  Filter& filterL = pFinalParam->filterLeft;
173                                  for (int i = 0; i < uiToGo; ++i) {                                  for (int i = 0; i < uiToGo; ++i) {
174                                      samplePoint = Interpolate1StepMonoCPP(pSrc, &dPos, fPitch);                                      samplePoint = Interpolate1StepMonoCPP(pSrc, &dPos, fPitch);
175                                      samplePoint = filterL.Apply(samplePoint);                                      samplePoint = filterL.Apply(samplePoint);
# Line 195  namespace LinuxSampler { namespace gig { Line 195  namespace LinuxSampler { namespace gig {
195                          } else { // no interpolation                          } else { // no interpolation
196                              int pos_offset = (int) pFinalParam->dPos;                              int pos_offset = (int) pFinalParam->dPos;
197                              if (USEFILTER) {                              if (USEFILTER) {
198                                  Filter filterL = pFinalParam->filterLeft;                                  Filter& filterL = pFinalParam->filterLeft;
199                                  for (int i = 0; i < uiToGo; ++i) {                                  for (int i = 0; i < uiToGo; ++i) {
200                                      samplePoint = getSample(pSrc, i + pos_offset);                                      samplePoint = getSample(pSrc, i + pos_offset);
201                                      samplePoint = filterL.Apply(samplePoint);                                      samplePoint = filterL.Apply(samplePoint);
# Line 227  namespace LinuxSampler { namespace gig { Line 227  namespace LinuxSampler { namespace gig {
227                              double dPos    = pFinalParam->dPos;                              double dPos    = pFinalParam->dPos;
228                              float fPitch   = pFinalParam->fFinalPitch;                              float fPitch   = pFinalParam->fFinalPitch;
229                              if (USEFILTER) {                              if (USEFILTER) {
230                                  Filter filterL = pFinalParam->filterLeft;                                  Filter& filterL = pFinalParam->filterLeft;
231                                  Filter filterR = pFinalParam->filterRight;                                  Filter& filterR = pFinalParam->filterRight;
232                                  for (int i = 0; i < uiToGo; ++i) {                                  for (int i = 0; i < uiToGo; ++i) {
233                                      samplePoint = Interpolate1StepStereoCPP(pSrc, &dPos, fPitch);                                      samplePoint = Interpolate1StepStereoCPP(pSrc, &dPos, fPitch);
234                                      samplePoint.left  = filterL.Apply(samplePoint.left);                                      samplePoint.left  = filterL.Apply(samplePoint.left);
# Line 255  namespace LinuxSampler { namespace gig { Line 255  namespace LinuxSampler { namespace gig {
255                          } else { // no interpolation                          } else { // no interpolation
256                              int pos_offset = ((int) pFinalParam->dPos) << 1;                              int pos_offset = ((int) pFinalParam->dPos) << 1;
257                              if (USEFILTER) {                              if (USEFILTER) {
258                                  Filter filterL = pFinalParam->filterLeft;                                  Filter& filterL = pFinalParam->filterLeft;
259                                  Filter filterR = pFinalParam->filterRight;                                  Filter& filterR = pFinalParam->filterRight;
260                                  for (int i = 0, ii = 0; i < uiToGo; ++i, ii+=2) {                                  for (int i = 0, ii = 0; i < uiToGo; ++i, ii+=2) {
261                                      samplePoint.left = getSample(pSrc, ii + pos_offset);                                      samplePoint.left = getSample(pSrc, ii + pos_offset);
262                                      samplePoint.right = getSample(pSrc, ii + pos_offset + 1);                                      samplePoint.right = getSample(pSrc, ii + pos_offset + 1);

Legend:
Removed from v.2047  
changed lines
  Added in v.2175

  ViewVC Help
Powered by ViewVC