/[svn]/linuxsampler/trunk/src/engines/gig/EGADSR.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/EGADSR.cpp

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

revision 1748 by persson, Sun Jun 22 14:46:46 2008 UTC revision 1906 by persson, Sat May 16 12:14:27 2009 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 - 2009 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 47  namespace LinuxSampler { namespace gig { Line 47  namespace LinuxSampler { namespace gig {
47                      case event_release:                      case event_release:
48                          enterReleasePart1Stage();                          enterReleasePart1Stage();
49                          break;                          break;
                     case event_cancel_release:  
                         enterSustainStage();  
                         break;  
50                      case event_stage_end:                      case event_stage_end:
51                          if (HoldAttack)                          if (HoldAttack)
52                              enterAttackHoldStage();                              enterAttackHoldStage();
# Line 71  namespace LinuxSampler { namespace gig { Line 68  namespace LinuxSampler { namespace gig {
68                      case event_release:                      case event_release:
69                          enterReleasePart1Stage();                          enterReleasePart1Stage();
70                          break;                          break;
                     case event_cancel_release:  
                         if (InfiniteSustain)  
                             enterSustainStage();  
                         else  
                             enterDecay1Part1Stage(SampleRate);  
                         break;  
71                  }                  }
72                  break;                  break;
73              case stage_decay1_part1:              case stage_decay1_part1:
# Line 84  namespace LinuxSampler { namespace gig { Line 75  namespace LinuxSampler { namespace gig {
75                      case event_stage_end:                      case event_stage_end:
76                          enterDecay1Part2Stage(SampleRate);                          enterDecay1Part2Stage(SampleRate);
77                          break;                          break;
                     case event_release:  
                         enterReleasePart1Stage();  
                         break;  
78                      case event_cancel_release:                      case event_cancel_release:
79                          if (InfiniteSustain)                          if (InfiniteSustain)
80                              enterSustainStage();                              enterSustainStage();
# Line 100  namespace LinuxSampler { namespace gig { Line 88  namespace LinuxSampler { namespace gig {
88                      case event_release:                      case event_release:
89                          enterReleasePart1Stage();                          enterReleasePart1Stage();
90                          break;                          break;
91                      case event_stage_end: // fall through                      case event_stage_end:
                     case event_cancel_release:  
92                          if (Level < CONFIG_EG_BOTTOM)                          if (Level < CONFIG_EG_BOTTOM)
93                              enterEndStage();                              enterEndStage();
94                          else if (InfiniteSustain)                          else if (InfiniteSustain)

Legend:
Removed from v.1748  
changed lines
  Added in v.1906

  ViewVC Help
Powered by ViewVC