1 |
/* |
/* |
2 |
* Copyright (c) 2016 - 2017 Christian Schoenebeck |
* Copyright (c) 2016 - 2019 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
25 |
public: |
public: |
26 |
InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} |
InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} |
27 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
28 |
int evalInt() OVERRIDE; |
vmint evalInt() OVERRIDE; |
29 |
protected: |
protected: |
30 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
31 |
}; |
}; |
37 |
public: |
public: |
38 |
InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} |
InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} |
39 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
40 |
int evalInt() OVERRIDE; |
vmint evalInt() OVERRIDE; |
41 |
protected: |
protected: |
42 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
43 |
}; |
}; |
49 |
public: |
public: |
50 |
InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent); |
InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent); |
51 |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
52 |
int arraySize() const OVERRIDE; |
vmint arraySize() const OVERRIDE; |
53 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
54 |
int evalIntElement(uint i) OVERRIDE; |
vmint evalIntElement(vmuint i) OVERRIDE; |
55 |
void assignIntElement(uint i, int value) OVERRIDE {} |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
56 |
protected: |
protected: |
57 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
58 |
}; |
}; |
65 |
InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); |
InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); |
66 |
virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); |
virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); |
67 |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
68 |
int arraySize() const OVERRIDE; |
vmint arraySize() const OVERRIDE; |
69 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
70 |
int evalIntElement(uint i) OVERRIDE; |
vmint evalIntElement(vmuint i) OVERRIDE; |
71 |
void assignIntElement(uint i, int value) OVERRIDE {} |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
72 |
protected: |
protected: |
73 |
void updateNoteIDs(); |
void updateNoteIDs(); |
74 |
private: |
private: |
75 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
76 |
note_id_t* m_ids; |
note_id_t* m_ids; |
77 |
uint m_numIDs; |
vmuint m_numIDs; |
78 |
}; |
}; |
79 |
|
|
80 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |