/[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 2021 by iliev, Fri Oct 30 16:36:20 2009 UTC revision 2045 by persson, Sun Jan 10 13:22:19 2010 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 - 2009 Christian Schoenebeck                       *   *   Copyright (C) 2005-2008 Christian Schoenebeck                         *
7   *   Copyright (C) 2009 Grigor Iliev                                       *   *   Copyright (C) 2009-2010 Christian Schoenebeck and Grigor Iliev        *
8   *                                                                         *   *                                                                         *
9   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
10   *   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 68  namespace LinuxSampler { namespace sfz { Line 68  namespace LinuxSampler { namespace sfz {
68          RegionInfo ri;          RegionInfo ri;
69          ri.UnityNote = pRegion->pitch_keycenter;          ri.UnityNote = pRegion->pitch_keycenter;
70          ri.FineTune  = pRegion->tune;          ri.FineTune  = pRegion->tune;
71          ri.Pan       = pRegion->pan;          ri.Pan       = int(pRegion->pan * 0.63); // convert from -100..100 to -64..63
72          ri.SampleStartOffset = 0; // TODO:          ri.SampleStartOffset = 0; // TODO:
73    
74          ri.EG1PreAttack        = pRegion->ampeg_start * 10;          ri.EG1PreAttack        = pRegion->ampeg_start * 10;

Legend:
Removed from v.2021  
changed lines
  Added in v.2045

  ViewVC Help
Powered by ViewVC