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 |
* |
* |
67 |
namespace LinuxSampler { |
namespace LinuxSampler { |
68 |
|
|
69 |
class AbstractEngineChannel; |
class AbstractEngineChannel; |
70 |
class InstrumentScript; |
struct InstrumentScript; |
71 |
|
|
72 |
/** @brief Convert IDs between script scope and engine internal scope. |
/** @brief Convert IDs between script scope and engine internal scope. |
73 |
* |
* |
247 |
protected: |
protected: |
248 |
ScriptEvent* m_event; ///< The event currently executed by exec(). |
ScriptEvent* m_event; ///< The event currently executed by exec(). |
249 |
|
|
250 |
// buil-in script variables |
// built-in script variables |
251 |
VMInt8Array m_CC; |
VMInt8Array m_CC; |
252 |
VMInt8RelPtr m_CC_NUM; |
VMInt8RelPtr m_CC_NUM; |
253 |
VMIntRelPtr m_EVENT_ID; |
VMIntRelPtr m_EVENT_ID; |
259 |
VMIntRelPtr m_NI_CALLBACK_TYPE; |
VMIntRelPtr m_NI_CALLBACK_TYPE; |
260 |
VMIntRelPtr m_NKSP_IGNORE_WAIT; |
VMIntRelPtr m_NKSP_IGNORE_WAIT; |
261 |
|
|
262 |
// buil-in script functions |
// built-in script functions |
263 |
InstrumentScriptVMFunction_play_note m_fnPlayNote; |
InstrumentScriptVMFunction_play_note m_fnPlayNote; |
264 |
InstrumentScriptVMFunction_set_controller m_fnSetController; |
InstrumentScriptVMFunction_set_controller m_fnSetController; |
265 |
InstrumentScriptVMFunction_ignore_event m_fnIgnoreEvent; |
InstrumentScriptVMFunction_ignore_event m_fnIgnoreEvent; |
273 |
InstrumentScriptVMFunction_change_pan m_fnChangePan; |
InstrumentScriptVMFunction_change_pan m_fnChangePan; |
274 |
InstrumentScriptVMFunction_change_cutoff m_fnChangeCutoff; |
InstrumentScriptVMFunction_change_cutoff m_fnChangeCutoff; |
275 |
InstrumentScriptVMFunction_change_reso m_fnChangeReso; |
InstrumentScriptVMFunction_change_reso m_fnChangeReso; |
276 |
|
InstrumentScriptVMFunction_change_attack m_fnChangeAttack; |
277 |
|
InstrumentScriptVMFunction_change_decay m_fnChangeDecay; |
278 |
|
InstrumentScriptVMFunction_change_release m_fnChangeRelease; |
279 |
|
InstrumentScriptVMFunction_change_amp_lfo_depth m_fnChangeAmpLFODepth; |
280 |
|
InstrumentScriptVMFunction_change_amp_lfo_freq m_fnChangeAmpLFOFreq; |
281 |
|
InstrumentScriptVMFunction_change_pitch_lfo_depth m_fnChangePitchLFODepth; |
282 |
|
InstrumentScriptVMFunction_change_pitch_lfo_freq m_fnChangePitchLFOFreq; |
283 |
InstrumentScriptVMFunction_event_status m_fnEventStatus; |
InstrumentScriptVMFunction_event_status m_fnEventStatus; |
284 |
InstrumentScriptVMFunction_wait m_fnWait2; |
InstrumentScriptVMFunction_wait m_fnWait2; |
285 |
InstrumentScriptVMFunction_stop_wait m_fnStopWait; |
InstrumentScriptVMFunction_stop_wait m_fnStopWait; |
286 |
InstrumentScriptVMDynVar_ENGINE_UPTIME m_varEngineUptime; |
InstrumentScriptVMDynVar_ENGINE_UPTIME m_varEngineUptime; |
287 |
InstrumentScriptVMDynVar_NI_CALLBACK_ID m_varCallbackID; |
InstrumentScriptVMDynVar_NI_CALLBACK_ID m_varCallbackID; |
288 |
|
InstrumentScriptVMDynVar_ALL_EVENTS m_varAllEvents; |
289 |
|
|
290 |
friend class InstrumentScriptVMFunction_play_note; |
friend class InstrumentScriptVMFunction_play_note; |
291 |
friend class InstrumentScriptVMFunction_set_controller; |
friend class InstrumentScriptVMFunction_set_controller; |
300 |
friend class InstrumentScriptVMFunction_change_pan; |
friend class InstrumentScriptVMFunction_change_pan; |
301 |
friend class InstrumentScriptVMFunction_change_cutoff; |
friend class InstrumentScriptVMFunction_change_cutoff; |
302 |
friend class InstrumentScriptVMFunction_change_reso; |
friend class InstrumentScriptVMFunction_change_reso; |
303 |
|
friend class InstrumentScriptVMFunction_change_attack; |
304 |
|
friend class InstrumentScriptVMFunction_change_decay; |
305 |
|
friend class InstrumentScriptVMFunction_change_release; |
306 |
|
friend class VMChangeSynthParamFunction; |
307 |
|
friend class InstrumentScriptVMFunction_change_amp_lfo_depth; |
308 |
|
friend class InstrumentScriptVMFunction_change_amp_lfo_freq; |
309 |
|
friend class InstrumentScriptVMFunction_change_pitch_lfo_depth; |
310 |
|
friend class InstrumentScriptVMFunction_change_pitch_lfo_freq; |
311 |
friend class InstrumentScriptVMFunction_event_status; |
friend class InstrumentScriptVMFunction_event_status; |
312 |
friend class InstrumentScriptVMFunction_wait; |
friend class InstrumentScriptVMFunction_wait; |
313 |
friend class InstrumentScriptVMFunction_stop_wait; |
friend class InstrumentScriptVMFunction_stop_wait; |
314 |
friend class InstrumentScriptVMDynVar_ENGINE_UPTIME; |
friend class InstrumentScriptVMDynVar_ENGINE_UPTIME; |
315 |
friend class InstrumentScriptVMDynVar_NI_CALLBACK_ID; |
friend class InstrumentScriptVMDynVar_NI_CALLBACK_ID; |
316 |
|
friend class InstrumentScriptVMDynVar_ALL_EVENTS; |
317 |
}; |
}; |
318 |
|
|
319 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |