1 |
/* |
/* |
2 |
* Copyright (c) 2016 Christian Schoenebeck |
* Copyright (c) 2016 - 2017 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
12 |
|
|
13 |
#include "../../common/global.h" |
#include "../../common/global.h" |
14 |
#include "../../scriptvm/CoreVMDynVars.h" |
#include "../../scriptvm/CoreVMDynVars.h" |
15 |
|
#include "Event.h" |
16 |
|
|
17 |
namespace LinuxSampler { |
namespace LinuxSampler { |
18 |
|
|
42 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
43 |
}; |
}; |
44 |
|
|
45 |
|
/** |
46 |
|
* Implements the built-in %ALL_EVENTS script array variable. |
47 |
|
*/ |
48 |
|
class InstrumentScriptVMDynVar_ALL_EVENTS : public VMDynIntArrayVar { |
49 |
|
public: |
50 |
|
InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); |
51 |
|
virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); |
52 |
|
VMIntArrayExpr* asIntArray() const OVERRIDE; |
53 |
|
int arraySize() const OVERRIDE; |
54 |
|
bool isAssignable() const OVERRIDE { return false; } |
55 |
|
int evalIntElement(uint i) OVERRIDE; |
56 |
|
void assignIntElement(uint i, int value) OVERRIDE {} |
57 |
|
protected: |
58 |
|
void updateNoteIDs(); |
59 |
|
private: |
60 |
|
InstrumentScriptVM* m_vm; |
61 |
|
note_id_t* m_ids; |
62 |
|
uint m_numIDs; |
63 |
|
}; |
64 |
|
|
65 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
66 |
|
|
67 |
#endif // LS_INSTRSCRIPTVMDYNVARS_H |
#endif // LS_INSTRSCRIPTVMDYNVARS_H |