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

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

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

revision 2948 by schoenebeck, Fri Jul 15 15:29:04 2016 UTC revision 3193 by schoenebeck, Sat May 20 12:28:57 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 64  enum InstrScriptIDType_T { Line 64  enum InstrScriptIDType_T {
64  #define EVENT_STATUS_INACTIVE 0  #define EVENT_STATUS_INACTIVE 0
65  #define EVENT_STATUS_NOTE_QUEUE 1  #define EVENT_STATUS_NOTE_QUEUE 1
66    
67    enum {
68        EVENT_PAR_NOTE = 1,
69        EVENT_PAR_VELOCITY,
70        EVENT_PAR_VOLUME,
71        EVENT_PAR_TUNE,
72        EVENT_PAR_0 = 1024,
73        EVENT_PAR_1,
74        EVENT_PAR_2,
75        EVENT_PAR_3,
76    };
77    
78  namespace LinuxSampler {  namespace LinuxSampler {
79    
80      class AbstractEngineChannel;      class AbstractEngineChannel;
81      class InstrumentScript;      struct InstrumentScript;
82    
83      /** @brief Convert IDs between script scope and engine internal scope.      /** @brief Convert IDs between script scope and engine internal scope.
84       *       *
# Line 247  namespace LinuxSampler { Line 258  namespace LinuxSampler {
258      protected:      protected:
259          ScriptEvent* m_event; ///< The event currently executed by exec().          ScriptEvent* m_event; ///< The event currently executed by exec().
260    
261          // buil-in script variables          // built-in script variables
262          VMInt8Array m_CC;          VMInt8Array m_CC;
263          VMInt8RelPtr m_CC_NUM;          VMInt8RelPtr m_CC_NUM;
264          VMIntRelPtr  m_EVENT_ID;          VMIntRelPtr  m_EVENT_ID;
# Line 259  namespace LinuxSampler { Line 270  namespace LinuxSampler {
270          VMIntRelPtr  m_NI_CALLBACK_TYPE;          VMIntRelPtr  m_NI_CALLBACK_TYPE;
271          VMIntRelPtr  m_NKSP_IGNORE_WAIT;          VMIntRelPtr  m_NKSP_IGNORE_WAIT;
272    
273          // buil-in script functions          // built-in script functions
274          InstrumentScriptVMFunction_play_note m_fnPlayNote;          InstrumentScriptVMFunction_play_note m_fnPlayNote;
275          InstrumentScriptVMFunction_set_controller m_fnSetController;          InstrumentScriptVMFunction_set_controller m_fnSetController;
276          InstrumentScriptVMFunction_ignore_event m_fnIgnoreEvent;          InstrumentScriptVMFunction_ignore_event m_fnIgnoreEvent;
# Line 269  namespace LinuxSampler { Line 280  namespace LinuxSampler {
280          InstrumentScriptVMFunction_delete_event_mark m_fnDeleteEventMark;          InstrumentScriptVMFunction_delete_event_mark m_fnDeleteEventMark;
281          InstrumentScriptVMFunction_by_marks m_fnByMarks;          InstrumentScriptVMFunction_by_marks m_fnByMarks;
282          InstrumentScriptVMFunction_change_vol m_fnChangeVol;          InstrumentScriptVMFunction_change_vol m_fnChangeVol;
283            InstrumentScriptVMFunction_change_vol_time m_fnChangeVolTime;
284          InstrumentScriptVMFunction_change_tune m_fnChangeTune;          InstrumentScriptVMFunction_change_tune m_fnChangeTune;
285            InstrumentScriptVMFunction_change_tune_time m_fnChangeTuneTime;
286          InstrumentScriptVMFunction_change_pan m_fnChangePan;          InstrumentScriptVMFunction_change_pan m_fnChangePan;
287          InstrumentScriptVMFunction_change_cutoff m_fnChangeCutoff;          InstrumentScriptVMFunction_change_cutoff m_fnChangeCutoff;
288          InstrumentScriptVMFunction_change_reso m_fnChangeReso;          InstrumentScriptVMFunction_change_reso m_fnChangeReso;
289            InstrumentScriptVMFunction_change_attack m_fnChangeAttack;
290            InstrumentScriptVMFunction_change_decay m_fnChangeDecay;
291            InstrumentScriptVMFunction_change_release m_fnChangeRelease;
292            InstrumentScriptVMFunction_change_amp_lfo_depth m_fnChangeAmpLFODepth;
293            InstrumentScriptVMFunction_change_amp_lfo_freq m_fnChangeAmpLFOFreq;
294            InstrumentScriptVMFunction_change_pitch_lfo_depth m_fnChangePitchLFODepth;
295            InstrumentScriptVMFunction_change_pitch_lfo_freq m_fnChangePitchLFOFreq;
296          InstrumentScriptVMFunction_event_status m_fnEventStatus;          InstrumentScriptVMFunction_event_status m_fnEventStatus;
297          InstrumentScriptVMFunction_wait m_fnWait2;          InstrumentScriptVMFunction_wait m_fnWait2;
298          InstrumentScriptVMFunction_stop_wait m_fnStopWait;          InstrumentScriptVMFunction_stop_wait m_fnStopWait;
299            InstrumentScriptVMFunction_fade_in m_fnFadeIn;
300            InstrumentScriptVMFunction_fade_out m_fnFadeOut;
301            InstrumentScriptVMFunction_get_event_par m_fnGetEventPar;
302            InstrumentScriptVMFunction_set_event_par m_fnSetEventPar;
303          InstrumentScriptVMDynVar_ENGINE_UPTIME m_varEngineUptime;          InstrumentScriptVMDynVar_ENGINE_UPTIME m_varEngineUptime;
304          InstrumentScriptVMDynVar_NI_CALLBACK_ID m_varCallbackID;          InstrumentScriptVMDynVar_NI_CALLBACK_ID m_varCallbackID;
305            InstrumentScriptVMDynVar_ALL_EVENTS m_varAllEvents;
306    
307          friend class InstrumentScriptVMFunction_play_note;          friend class InstrumentScriptVMFunction_play_note;
308          friend class InstrumentScriptVMFunction_set_controller;          friend class InstrumentScriptVMFunction_set_controller;
# Line 288  namespace LinuxSampler { Line 313  namespace LinuxSampler {
313          friend class InstrumentScriptVMFunction_delete_event_mark;          friend class InstrumentScriptVMFunction_delete_event_mark;
314          friend class InstrumentScriptVMFunction_by_marks;          friend class InstrumentScriptVMFunction_by_marks;
315          friend class InstrumentScriptVMFunction_change_vol;          friend class InstrumentScriptVMFunction_change_vol;
316            friend class InstrumentScriptVMFunction_change_vol_time;
317          friend class InstrumentScriptVMFunction_change_tune;          friend class InstrumentScriptVMFunction_change_tune;
318            friend class InstrumentScriptVMFunction_change_tune_time;
319          friend class InstrumentScriptVMFunction_change_pan;          friend class InstrumentScriptVMFunction_change_pan;
320          friend class InstrumentScriptVMFunction_change_cutoff;          friend class InstrumentScriptVMFunction_change_cutoff;
321          friend class InstrumentScriptVMFunction_change_reso;          friend class InstrumentScriptVMFunction_change_reso;
322            friend class InstrumentScriptVMFunction_change_attack;
323            friend class InstrumentScriptVMFunction_change_decay;
324            friend class InstrumentScriptVMFunction_change_release;
325            friend class VMChangeSynthParamFunction;
326            friend class InstrumentScriptVMFunction_change_amp_lfo_depth;
327            friend class InstrumentScriptVMFunction_change_amp_lfo_freq;
328            friend class InstrumentScriptVMFunction_change_pitch_lfo_depth;
329            friend class InstrumentScriptVMFunction_change_pitch_lfo_freq;
330            friend class InstrumentScriptVMFunction_fade_in;
331            friend class InstrumentScriptVMFunction_fade_out;
332            friend class InstrumentScriptVMFunction_get_event_par;
333            friend class InstrumentScriptVMFunction_set_event_par;
334          friend class InstrumentScriptVMFunction_event_status;          friend class InstrumentScriptVMFunction_event_status;
335          friend class InstrumentScriptVMFunction_wait;          friend class InstrumentScriptVMFunction_wait;
336          friend class InstrumentScriptVMFunction_stop_wait;          friend class InstrumentScriptVMFunction_stop_wait;
337          friend class InstrumentScriptVMDynVar_ENGINE_UPTIME;          friend class InstrumentScriptVMDynVar_ENGINE_UPTIME;
338          friend class InstrumentScriptVMDynVar_NI_CALLBACK_ID;          friend class InstrumentScriptVMDynVar_NI_CALLBACK_ID;
339            friend class InstrumentScriptVMDynVar_ALL_EVENTS;
340      };      };
341    
342  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.2948  
changed lines
  Added in v.3193

  ViewVC Help
Powered by ViewVC