/[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 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC revision 3188 by schoenebeck, Fri May 19 14:23:12 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 230  namespace LinuxSampler { Line 230  namespace LinuxSampler {
230          m_event(NULL), m_fnPlayNote(this), m_fnSetController(this),          m_event(NULL), m_fnPlayNote(this), m_fnSetController(this),
231          m_fnIgnoreEvent(this), m_fnIgnoreController(this), m_fnNoteOff(this),          m_fnIgnoreEvent(this), m_fnIgnoreController(this), m_fnNoteOff(this),
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_fnChangeVolTime(this),
234            m_fnChangeTune(this), m_fnChangeTuneTime(this), m_fnChangePan(this),
235          m_fnChangeCutoff(this), m_fnChangeReso(this),  m_fnChangeAttack(this),          m_fnChangeCutoff(this), m_fnChangeReso(this),  m_fnChangeAttack(this),
236          m_fnChangeDecay(this), m_fnChangeRelease(this), m_fnEventStatus(this),          m_fnChangeDecay(this), m_fnChangeRelease(this),
237          m_fnWait2(this), m_fnStopWait(this),          m_fnChangeAmpLFODepth(this), m_fnChangeAmpLFOFreq(this),
238          m_varEngineUptime(this), m_varCallbackID(this)          m_fnChangePitchLFODepth(this), m_fnChangePitchLFOFreq(this),
239            m_fnEventStatus(this), m_fnWait2(this), m_fnStopWait(this),
240            m_fnFadeIn(this), m_fnFadeOut(this),
241            m_varEngineUptime(this), m_varCallbackID(this), m_varAllEvents(this)
242      {      {
243          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);          m_CC.size = _MEMBER_SIZEOF(AbstractEngineChannel, ControllerTable);
244          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 338  namespace LinuxSampler { Line 342  namespace LinuxSampler {
342          // first get built-in dynamic variables of derived VM class          // first get built-in dynamic variables of derived VM class
343          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();          std::map<String,VMDynVar*> m = ScriptVM::builtInDynamicVariables();
344    
345            m["%ALL_EVENTS"] = &m_varAllEvents;
346          m["$ENGINE_UPTIME"] = &m_varEngineUptime;          m["$ENGINE_UPTIME"] = &m_varEngineUptime;
347          m["$NI_CALLBACK_ID"] = &m_varCallbackID;          m["$NI_CALLBACK_ID"] = &m_varCallbackID;
348    
# Line 355  namespace LinuxSampler { Line 360  namespace LinuxSampler {
360          else if (name == "delete_event_mark") return &m_fnDeleteEventMark;          else if (name == "delete_event_mark") return &m_fnDeleteEventMark;
361          else if (name == "by_marks") return &m_fnByMarks;          else if (name == "by_marks") return &m_fnByMarks;
362          else if (name == "change_vol") return &m_fnChangeVol;          else if (name == "change_vol") return &m_fnChangeVol;
363            else if (name == "change_vol_time") return &m_fnChangeVolTime;
364          else if (name == "change_tune") return &m_fnChangeTune;          else if (name == "change_tune") return &m_fnChangeTune;
365            else if (name == "change_tune_time") return &m_fnChangeTuneTime;
366          else if (name == "change_pan") return &m_fnChangePan;          else if (name == "change_pan") return &m_fnChangePan;
367          else if (name == "change_cutoff") return &m_fnChangeCutoff;          else if (name == "change_cutoff") return &m_fnChangeCutoff;
368          else if (name == "change_reso") return &m_fnChangeReso;          else if (name == "change_reso") return &m_fnChangeReso;
369          else if (name == "change_attack") return &m_fnChangeAttack;          else if (name == "change_attack") return &m_fnChangeAttack;
370          else if (name == "change_decay") return &m_fnChangeDecay;          else if (name == "change_decay") return &m_fnChangeDecay;
371          else if (name == "change_release") return &m_fnChangeRelease;          else if (name == "change_release") return &m_fnChangeRelease;
372            else if (name == "change_amp_lfo_depth") return &m_fnChangeAmpLFODepth;
373            else if (name == "change_amp_lfo_freq") return &m_fnChangeAmpLFOFreq;
374            else if (name == "change_pitch_lfo_depth") return &m_fnChangePitchLFODepth;
375            else if (name == "change_pitch_lfo_freq") return &m_fnChangePitchLFOFreq;
376            else if (name == "fade_in") return &m_fnFadeIn;
377            else if (name == "fade_out") return &m_fnFadeOut;
378          else if (name == "event_status") return &m_fnEventStatus;          else if (name == "event_status") return &m_fnEventStatus;
379          else if (name == "wait") return &m_fnWait2; // override wait() core implementation          else if (name == "wait") return &m_fnWait2; // override wait() core implementation
380          else if (name == "stop_wait") return &m_fnStopWait;          else if (name == "stop_wait") return &m_fnStopWait;

Legend:
Removed from v.3054  
changed lines
  Added in v.3188

  ViewVC Help
Powered by ViewVC