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

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

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

revision 3580 by schoenebeck, Sun Aug 18 00:06:04 2019 UTC revision 3581 by schoenebeck, Fri Aug 30 11:40:25 2019 UTC
# Line 21  namespace LinuxSampler { Line 21  namespace LinuxSampler {
21      /**      /**
22       * Implements the built-in $ENGINE_UPTIME script variable.       * Implements the built-in $ENGINE_UPTIME script variable.
23       */       */
24      class InstrumentScriptVMDynVar_ENGINE_UPTIME : public VMDynIntVar {      class InstrumentScriptVMDynVar_ENGINE_UPTIME FINAL : public VMDynIntVar {
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; }
# Line 33  namespace LinuxSampler { Line 33  namespace LinuxSampler {
33      /**      /**
34       * Implements the built-in $NI_CALLBACK_ID script variable.       * Implements the built-in $NI_CALLBACK_ID script variable.
35       */       */
36      class InstrumentScriptVMDynVar_NI_CALLBACK_ID : public VMDynIntVar {      class InstrumentScriptVMDynVar_NI_CALLBACK_ID FINAL : public VMDynIntVar {
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; }
# Line 45  namespace LinuxSampler { Line 45  namespace LinuxSampler {
45      /**      /**
46       * Implements the built-in array %NKSP_CALLBACK_CHILD_ID[] script variable.       * Implements the built-in array %NKSP_CALLBACK_CHILD_ID[] script variable.
47       */       */
48      class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID : public VMDynIntArrayVar {      class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID FINAL : public VMDynIntArrayVar {
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;
# Line 53  namespace LinuxSampler { Line 53  namespace LinuxSampler {
53          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
54          vmint evalIntElement(vmuint i) OVERRIDE;          vmint evalIntElement(vmuint i) OVERRIDE;
55          void assignIntElement(vmuint i, vmint value) OVERRIDE {}          void assignIntElement(vmuint i, vmint value) OVERRIDE {}
56            vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; }
57            void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment
58      protected:      protected:
59          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
60      };      };
# Line 60  namespace LinuxSampler { Line 62  namespace LinuxSampler {
62      /**      /**
63       * Implements the built-in %ALL_EVENTS script array variable.       * Implements the built-in %ALL_EVENTS script array variable.
64       */       */
65      class InstrumentScriptVMDynVar_ALL_EVENTS : public VMDynIntArrayVar {      class InstrumentScriptVMDynVar_ALL_EVENTS FINAL : public VMDynIntArrayVar {
66      public:      public:
67          InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent);          InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent);
68          virtual ~InstrumentScriptVMDynVar_ALL_EVENTS();          virtual ~InstrumentScriptVMDynVar_ALL_EVENTS();
# Line 69  namespace LinuxSampler { Line 71  namespace LinuxSampler {
71          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
72          vmint evalIntElement(vmuint i) OVERRIDE;          vmint evalIntElement(vmuint i) OVERRIDE;
73          void assignIntElement(vmuint i, vmint value) OVERRIDE {}          void assignIntElement(vmuint i, vmint value) OVERRIDE {}
74            vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; }
75            void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment
76      protected:      protected:
77          void updateNoteIDs();          void updateNoteIDs();
78      private:      private:

Legend:
Removed from v.3580  
changed lines
  Added in v.3581

  ViewVC Help
Powered by ViewVC