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

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

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

revision 2224 by iliev, Mon Aug 1 19:08:09 2011 UTC revision 2237 by iliev, Fri Aug 12 13:07:05 2011 UTC
# Line 74  namespace LinuxSampler { namespace sfz { Line 74  namespace LinuxSampler { namespace sfz {
74          ri.Pan       = int(pRegion->pan * 0.63); // convert from -100..100 to -64..63          ri.Pan       = int(pRegion->pan * 0.63); // convert from -100..100 to -64..63
75          ri.SampleStartOffset = pRegion->offset ? *(pRegion->offset) : 0;          ri.SampleStartOffset = pRegion->offset ? *(pRegion->offset) : 0;
76    
         ri.EG2PreAttack        = pRegion->fileg_start * 10;  
         ri.EG2Attack           = pRegion->fileg_attack;  
         //ri.EG2Hold             = pRegion->fileg_hold; // TODO:  
         ri.EG2Decay1           = pRegion->fileg_decay;  
         ri.EG2Decay2           = pRegion->fileg_decay;  
         ri.EG2Sustain          = pRegion->fileg_sustain * 10;  
         ri.EG2InfiniteSustain  = true;  
         ri.EG2Release          = pRegion->fileg_release;  
   
         ri.EG3Attack     = pRegion->pitcheg_attack;  
         ri.EG3Depth      = 0; // TODO:  
77          ri.VCFEnabled    = pRegion->cutoff;          ri.VCFEnabled    = pRegion->cutoff;
78          switch (pRegion->fil_type) {          switch (pRegion->fil_type) {
79          case ::sfz::LPF_1P:          case ::sfz::LPF_1P:

Legend:
Removed from v.2224  
changed lines
  Added in v.2237

  ViewVC Help
Powered by ViewVC