/[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 3035 by schoenebeck, Mon Oct 31 12:00:00 2016 UTC revision 3118 by schoenebeck, Fri Apr 21 13:33:03 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 232  namespace LinuxSampler { Line 232  namespace LinuxSampler {
232          m_fnSetEventMark(this), m_fnDeleteEventMark(this), m_fnByMarks(this),          m_fnSetEventMark(this), m_fnDeleteEventMark(this), m_fnByMarks(this),
233          m_fnChangeVol(this), m_fnChangeTune(this), m_fnChangePan(this),          m_fnChangeVol(this), m_fnChangeTune(this), m_fnChangePan(this),
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),
236          m_fnWait2(this), m_fnStopWait(this),          m_fnChangeAmpLFODepth(this), m_fnChangeAmpLFOFreq(this),
237          m_varEngineUptime(this), m_varCallbackID(this)          m_fnChangePitchLFODepth(this), m_fnChangePitchLFOFreq(this),
238            m_fnEventStatus(this), m_fnWait2(this), m_fnStopWait(this),
239            m_varEngineUptime(this), m_varCallbackID(this), m_varAllEvents(this)
240      {      {
241          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);
242          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 273  namespace LinuxSampler { Line 275  namespace LinuxSampler {
275                      pEngineChannel->ControllerTable[CTRL_TABLE_IDX_PITCHBEND] =                      pEngineChannel->ControllerTable[CTRL_TABLE_IDX_PITCHBEND] =
276                          event->cause.Param.Pitch.Pitch;                          event->cause.Param.Pitch.Pitch;
277                      break;                      break;
278                    default:
279                        ; // noop
280              }              }
281          }          }
282    
# Line 336  namespace LinuxSampler { Line 340  namespace LinuxSampler {
340          // first get built-in dynamic variables of derived VM class          // first get built-in dynamic variables of derived VM class
341          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();
342    
343            m["%ALL_EVENTS"] = &m_varAllEvents;
344          m["$ENGINE_UPTIME"] = &m_varEngineUptime;          m["$ENGINE_UPTIME"] = &m_varEngineUptime;
345          m["$NI_CALLBACK_ID"] = &m_varCallbackID;          m["$NI_CALLBACK_ID"] = &m_varCallbackID;
346    
# Line 360  namespace LinuxSampler { Line 365  namespace LinuxSampler {
365          else if (name == "change_attack") return &m_fnChangeAttack;          else if (name == "change_attack") return &m_fnChangeAttack;
366          else if (name == "change_decay") return &m_fnChangeDecay;          else if (name == "change_decay") return &m_fnChangeDecay;
367          else if (name == "change_release") return &m_fnChangeRelease;          else if (name == "change_release") return &m_fnChangeRelease;
368            else if (name == "change_amp_lfo_depth") return &m_fnChangeAmpLFODepth;
369            else if (name == "change_amp_lfo_freq") return &m_fnChangeAmpLFOFreq;
370            else if (name == "change_pitch_lfo_depth") return &m_fnChangePitchLFODepth;
371            else if (name == "change_pitch_lfo_freq") return &m_fnChangePitchLFOFreq;
372          else if (name == "event_status") return &m_fnEventStatus;          else if (name == "event_status") return &m_fnEventStatus;
373          else if (name == "wait") return &m_fnWait2; // override wait() core implementation          else if (name == "wait") return &m_fnWait2; // override wait() core implementation
374          else if (name == "stop_wait") return &m_fnStopWait;          else if (name == "stop_wait") return &m_fnStopWait;

Legend:
Removed from v.3035  
changed lines
  Added in v.3118

  ViewVC Help
Powered by ViewVC