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

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

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

revision 2314 by persson, Sat Feb 11 11:08:09 2012 UTC revision 2315 by persson, Fri Feb 17 19:55:33 2012 UTC
# Line 1021  namespace sfz Line 1021  namespace sfz
1021                          velcurve[v] = v * v / (127.0 * 127.0);                          velcurve[v] = v * v / (127.0 * 127.0);
1022                      }                      }
1023                  }                  }
   
                 // apply amp_veltrack  
                 float offset = -pRegion->amp_veltrack;  
                 if (offset <= 0) offset += 100;  
                 for (int v = 0 ; v < 128 ; v++) {  
                     velcurve[v] = (offset + pRegion->amp_veltrack * velcurve[v]) / 100;  
                 }  
1024              }              }
1025          }          }
1026    

Legend:
Removed from v.2314  
changed lines
  Added in v.2315

  ViewVC Help
Powered by ViewVC