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

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

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

revision 2953 by schoenebeck, Sat Jul 16 11:24:39 2016 UTC revision 3073 by schoenebeck, Thu Jan 5 16:04:00 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2014 - 2016 Christian Schoenebeck   * Copyright (c) 2014 - 2017 Christian Schoenebeck
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 7  Line 7 
7   * See README file for details.   * See README file for details.
8   */   */
9    
10    #include "../../common/global_private.h"
11  #include "InstrumentScriptVM.h"  #include "InstrumentScriptVM.h"
12  #include "../AbstractEngineChannel.h"  #include "../AbstractEngineChannel.h"
13  #include "../../common/global_private.h"  #include "../../common/global_private.h"
# Line 233  namespace LinuxSampler { Line 234  namespace LinuxSampler {
234          m_fnChangeCutoff(this), m_fnChangeReso(this),  m_fnChangeAttack(this),          m_fnChangeCutoff(this), m_fnChangeReso(this),  m_fnChangeAttack(this),
235          m_fnChangeDecay(this), m_fnChangeRelease(this), m_fnEventStatus(this),          m_fnChangeDecay(this), m_fnChangeRelease(this), m_fnEventStatus(this),
236          m_fnWait2(this), m_fnStopWait(this),          m_fnWait2(this), m_fnStopWait(this),
237          m_varEngineUptime(this), m_varCallbackID(this)          m_varEngineUptime(this), m_varCallbackID(this), m_varAllEvents(this)
238      {      {
239          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);
240          m_CC_NUM = DECLARE_VMINT(m_event, class ScriptEvent, cause.Param.CC.Controller);          m_CC_NUM = DECLARE_VMINT(m_event, class ScriptEvent, cause.Param.CC.Controller);
# Line 272  namespace LinuxSampler { Line 273  namespace LinuxSampler {
273                      pEngineChannel->ControllerTable[CTRL_TABLE_IDX_PITCHBEND] =                      pEngineChannel->ControllerTable[CTRL_TABLE_IDX_PITCHBEND] =
274                          event->cause.Param.Pitch.Pitch;                          event->cause.Param.Pitch.Pitch;
275                      break;                      break;
276                    default:
277                        ; // noop
278              }              }
279          }          }
280    
# Line 335  namespace LinuxSampler { Line 338  namespace LinuxSampler {
338          // first get built-in dynamic variables of derived VM class          // first get built-in dynamic variables of derived VM class
339          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();
340    
341            m["%ALL_EVENTS"] = &m_varAllEvents;
342          m["$ENGINE_UPTIME"] = &m_varEngineUptime;          m["$ENGINE_UPTIME"] = &m_varEngineUptime;
343          m["$NI_CALLBACK_ID"] = &m_varCallbackID;          m["$NI_CALLBACK_ID"] = &m_varCallbackID;
344    

Legend:
Removed from v.2953  
changed lines
  Added in v.3073

  ViewVC Help
Powered by ViewVC