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

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp

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

revision 3742 by schoenebeck, Fri Feb 14 15:15:13 2020 UTC revision 3743 by schoenebeck, Fri Feb 14 15:35:53 2020 UTC
# Line 13  Line 13 
13  #include "../../common/global_private.h"  #include "../../common/global_private.h"
14    
15  namespace LinuxSampler {  namespace LinuxSampler {
16        
17      // play_note() function      // play_note() function
18    
19      InstrumentScriptVMFunction_play_note::InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_play_note::InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent)
# Line 1059  namespace LinuxSampler { Line 1059  namespace LinuxSampler {
1059      }      }
1060    
1061      // change_reso() function      // change_reso() function
1062        
1063      InstrumentScriptVMFunction_change_reso::InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_change_reso::InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent)
1064          : m_vm(parent)          : m_vm(parent)
1065      {      {
# Line 1152  namespace LinuxSampler { Line 1152  namespace LinuxSampler {
1152    
1153          return successResult();          return successResult();
1154      }      }
1155        
1156      // change_attack() function      // change_attack() function
1157        //
1158        //TODO: Derive from generalized, shared template class
1159        // VMChangeSynthParamFunction instead (like e.g. change_cutoff_attack()
1160        // implementation below already does) to ease maintenance.
1161    
1162      InstrumentScriptVMFunction_change_attack::InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_change_attack::InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent)
1163          : m_vm(parent)          : m_vm(parent)
# Line 1286  namespace LinuxSampler { Line 1290  namespace LinuxSampler {
1290      }      }
1291    
1292      // change_decay() function      // change_decay() function
1293            //
1294        //TODO: Derive from generalized, shared template class
1295        // VMChangeSynthParamFunction instead (like e.g. change_cutoff_decay()
1296        // implementation below already does) to ease maintenance.
1297    
1298      InstrumentScriptVMFunction_change_decay::InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_change_decay::InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent)
1299          : m_vm(parent)          : m_vm(parent)
1300      {      {
# Line 1418  namespace LinuxSampler { Line 1426  namespace LinuxSampler {
1426      }      }
1427    
1428      // change_release() function      // change_release() function
1429            //
1430        //TODO: Derive from generalized, shared template class
1431        // VMChangeSynthParamFunction instead (like e.g. change_cutoff_release()
1432        // implementation below already does) to ease maintenance.
1433    
1434      InstrumentScriptVMFunction_change_release::InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_change_release::InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent)
1435          : m_vm(parent)          : m_vm(parent)
1436      {      {
# Line 2314  namespace LinuxSampler { Line 2326  namespace LinuxSampler {
2326                      e.Type = Event::type_kill_note;                      e.Type = Event::type_kill_note;
2327                      e.Param.Note.ID = id.noteID();                      e.Param.Note.ID = id.noteID();
2328                      e.Param.Note.Key = pNote->hostKey;                      e.Param.Note.Key = pNote->hostKey;
2329                        
2330                      pEngineChannel->ScheduleEventMicroSec(&e, duration + 1);                      pEngineChannel->ScheduleEventMicroSec(&e, duration + 1);
2331                  }                  }
2332              }              }
# Line 2648  namespace LinuxSampler { Line 2660  namespace LinuxSampler {
2660    
2661      InstrumentScriptVMFunction_wait::InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_wait::InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent)
2662          : CoreVMFunction_wait(parent)          : CoreVMFunction_wait(parent)
2663      {          {
2664      }      }
2665    
2666      VMFnResult* InstrumentScriptVMFunction_wait::exec(VMFnArgs* args) {      VMFnResult* InstrumentScriptVMFunction_wait::exec(VMFnArgs* args) {
# Line 2664  namespace LinuxSampler { Line 2676  namespace LinuxSampler {
2676    
2677      InstrumentScriptVMFunction_stop_wait::InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_stop_wait::InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent)
2678          : m_vm(parent)          : m_vm(parent)
2679      {          {
2680      }      }
2681    
2682      VMFnResult* InstrumentScriptVMFunction_stop_wait::exec(VMFnArgs* args) {      VMFnResult* InstrumentScriptVMFunction_stop_wait::exec(VMFnArgs* args) {

Legend:
Removed from v.3742  
changed lines
  Added in v.3743

  ViewVC Help
Powered by ViewVC