/[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 3072 by schoenebeck, Fri Jul 15 15:29:04 2016 UTC revision 3073 by schoenebeck, Thu Jan 5 16:04:00 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2016 Christian Schoenebeck   * Copyright (c) 2016 - 2017 Christian Schoenebeck
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 12  Line 12 
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    
# Line 41  namespace LinuxSampler { Line 42  namespace LinuxSampler {
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

Legend:
Removed from v.3072  
changed lines
  Added in v.3073

  ViewVC Help
Powered by ViewVC