/[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 2247 by iliev, Fri Aug 12 13:07:05 2011 UTC revision 2248 by iliev, Fri Aug 19 15:51:18 2011 UTC
# Line 513  namespace sfz Line 513  namespace sfz
513          amplfo_fade      = 0;          amplfo_fade      = 0;
514          amplfo_freq      = -1; /* -1 is used to determine whether the LFO was initialized */          amplfo_freq      = -1; /* -1 is used to determine whether the LFO was initialized */
515          amplfo_depth     = 0;          amplfo_depth     = 0;
516            amplfo_delay_oncc.clear();
517            amplfo_fade_oncc.clear();
518          amplfo_depthcc.clear();          amplfo_depthcc.clear();
519          amplfo_freqcc.clear();          amplfo_freqcc.clear();
520    
# Line 520  namespace sfz Line 522  namespace sfz
522          fillfo_fade      = 0;          fillfo_fade      = 0;
523          fillfo_freq      = -1; /* -1 is used to determine whether the LFO was initialized */          fillfo_freq      = -1; /* -1 is used to determine whether the LFO was initialized */
524          fillfo_depth     = 0;          fillfo_depth     = 0;
525            fillfo_delay_oncc.clear();
526            fillfo_fade_oncc.clear();
527          fillfo_depthcc.clear();          fillfo_depthcc.clear();
528          fillfo_freqcc.clear();          fillfo_freqcc.clear();
529    
# Line 527  namespace sfz Line 531  namespace sfz
531          pitchlfo_fade    = 0;          pitchlfo_fade    = 0;
532          pitchlfo_freq    = -1; /* -1 is used to determine whether the LFO was initialized */          pitchlfo_freq    = -1; /* -1 is used to determine whether the LFO was initialized */
533          pitchlfo_depth   = 0;          pitchlfo_depth   = 0;
534            pitchlfo_delay_oncc.clear();
535            pitchlfo_fade_oncc.clear();
536          pitchlfo_freqcc.clear();          pitchlfo_freqcc.clear();
537      }      }
538    
# Line 778  namespace sfz Line 784  namespace sfz
784          region->amplfo_freq      = amplfo_freq;          region->amplfo_freq      = amplfo_freq;
785          region->amplfo_depth     = amplfo_depth;          region->amplfo_depth     = amplfo_depth;
786                    
787            region->amplfo_delay_oncc = amplfo_delay_oncc;
788            region->amplfo_fade_oncc  = amplfo_fade_oncc;
789          region->amplfo_depthcc   = amplfo_depthcc;          region->amplfo_depthcc   = amplfo_depthcc;
790          region->amplfo_freqcc    = amplfo_freqcc;          region->amplfo_freqcc    = amplfo_freqcc;
791    
# Line 786  namespace sfz Line 794  namespace sfz
794          region->fillfo_freq      = fillfo_freq;          region->fillfo_freq      = fillfo_freq;
795          region->fillfo_depth     = fillfo_depth;          region->fillfo_depth     = fillfo_depth;
796                    
797            region->fillfo_delay_oncc = fillfo_delay_oncc;
798            region->fillfo_fade_oncc  = fillfo_fade_oncc;
799          region->fillfo_depthcc   = fillfo_depthcc;          region->fillfo_depthcc   = fillfo_depthcc;
800          region->fillfo_freqcc    = fillfo_freqcc;          region->fillfo_freqcc    = fillfo_freqcc;
801    
# Line 794  namespace sfz Line 804  namespace sfz
804          region->pitchlfo_freq    = pitchlfo_freq;          region->pitchlfo_freq    = pitchlfo_freq;
805          region->pitchlfo_depth   = pitchlfo_depth;          region->pitchlfo_depth   = pitchlfo_depth;
806                    
807            region->pitchlfo_delay_oncc = pitchlfo_delay_oncc;
808            region->pitchlfo_fade_oncc  = pitchlfo_fade_oncc;
809          region->pitchlfo_depthcc = pitchlfo_depthcc;          region->pitchlfo_depthcc = pitchlfo_depthcc;
810          region->pitchlfo_freqcc  = pitchlfo_freqcc;          region->pitchlfo_freqcc  = pitchlfo_freqcc;
811                    
# Line 1560  namespace sfz Line 1572  namespace sfz
1572              else if ("ampeg_sustain" == key_cc) pCurDef->ampeg_sustaincc.add( CC(num_cc, check(key, -100.0f, 100.0f, ToFloat(value))) );              else if ("ampeg_sustain" == key_cc) pCurDef->ampeg_sustaincc.add( CC(num_cc, check(key, -100.0f, 100.0f, ToFloat(value))) );
1573              else if ("ampeg_release" == key_cc) pCurDef->ampeg_releasecc.add( CC(num_cc, check(key, -100.0f, 100.0f, ToFloat(value))) );              else if ("ampeg_release" == key_cc) pCurDef->ampeg_releasecc.add( CC(num_cc, check(key, -100.0f, 100.0f, ToFloat(value))) );
1574                            
1575                else if ("pitchlfo_delay_on" == key_cc) pCurDef->pitchlfo_delay_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1576                else if ("pitchlfo_fade_on" == key_cc) pCurDef->pitchlfo_fade_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1577              else if ("pitchlfo_depth" == key_cc) pCurDef->pitchlfo_depthcc.set(num_cc, ToInt(value));              else if ("pitchlfo_depth" == key_cc) pCurDef->pitchlfo_depthcc.set(num_cc, ToInt(value));
1578              else if ("pitchlfo_freq" == key_cc) pCurDef->pitchlfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );              else if ("pitchlfo_freq" == key_cc) pCurDef->pitchlfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );
1579                else if ("fillfo_delay_on" == key_cc) pCurDef->fillfo_delay_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1580                else if ("fillfo_fade_on" == key_cc) pCurDef->fillfo_fade_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1581              else if ("fillfo_depth" == key_cc) pCurDef->fillfo_depthcc.add( CC(num_cc, check(key, -1200, 1200, ToInt(value))) );              else if ("fillfo_depth" == key_cc) pCurDef->fillfo_depthcc.add( CC(num_cc, check(key, -1200, 1200, ToInt(value))) );
1582              else if ("fillfo_freq" == key_cc) pCurDef->fillfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );              else if ("fillfo_freq" == key_cc) pCurDef->fillfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );
1583                else if ("amplfo_delay_on" == key_cc) pCurDef->amplfo_delay_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1584                else if ("amplfo_fade_on" == key_cc) pCurDef->amplfo_fade_oncc.add( CC(num_cc, check(key, 0.0f, 100.0f, ToFloat(value))) );
1585              else if ("amplfo_depth" == key_cc) pCurDef->amplfo_depthcc.add( CC(num_cc, check(key, -10.0f, 10.0f, ToFloat(value))) );              else if ("amplfo_depth" == key_cc) pCurDef->amplfo_depthcc.add( CC(num_cc, check(key, -10.0f, 10.0f, ToFloat(value))) );
1586              else if ("amplfo_freq" == key_cc) pCurDef->amplfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );              else if ("amplfo_freq" == key_cc) pCurDef->amplfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) );
1587              else if ("volume_on" == key_cc) pCurDef->volume_oncc.add( CC(num_cc, check(key, -144.0f, 100.0f, ToFloat(value))) );              else if ("volume_on" == key_cc) pCurDef->volume_oncc.add( CC(num_cc, check(key, -144.0f, 100.0f, ToFloat(value))) );

Legend:
Removed from v.2247  
changed lines
  Added in v.2248

  ViewVC Help
Powered by ViewVC