/[svn]/linuxsampler/trunk/src/engines/gig/InstrumentScriptVMFunctions.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/engines/gig/InstrumentScriptVMFunctions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3557 - (show annotations) (download) (as text)
Sun Aug 18 00:06:04 2019 UTC (4 years, 8 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1809 byte(s)
* NKSP: Introducing 64 bit support for NKSP integer scripts
  variables (declare $foo).
* Require C++11 compiler support.
* Autoconf: Added m4/ax_cxx_compile_stdcxx.m4 macro which is used
  for checking in configure for C++11 support (as mandatory
  requirement) and automatically adds compiler argument if required
  (e.g. -std=C++11).
* Bumped version (2.1.1.svn3).

1 /*
2 * Copyright (c) 2014 - 2019 Christian Schoenebeck
3 *
4 * http://www.linuxsampler.org
5 *
6 * This file is part of LinuxSampler and released under the same terms.
7 * See README file for details.
8 */
9
10 #ifndef LS_GIG_INSTRSCRIPTVMFUNCTIONS_H
11 #define LS_GIG_INSTRSCRIPTVMFUNCTIONS_H
12
13 #include "../common/InstrumentScriptVMFunctions.h"
14
15 namespace LinuxSampler { namespace gig {
16
17 class InstrumentScriptVM;
18
19 /**
20 * Built-in script function:
21 *
22 * gig_set_dim_zone(event_id, dimension, zone)
23 */
24 class InstrumentScriptVMFunction_gig_set_dim_zone : public VMEmptyResultFunction {
25 public:
26 InstrumentScriptVMFunction_gig_set_dim_zone(InstrumentScriptVM* parent);
27 vmint minRequiredArgs() const OVERRIDE { return 3; }
28 vmint maxAllowedArgs() const OVERRIDE { return 3; }
29 bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
30 ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }
31 VMFnResult* exec(VMFnArgs* args) OVERRIDE;
32 protected:
33 InstrumentScriptVM* m_vm;
34 };
35
36 /**
37 * Built-in script function:
38 *
39 * same_region(key1, key2)
40 */
41 class InstrumentScriptVMFunction_same_region : public VMIntResultFunction {
42 public:
43 InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent);
44 vmint minRequiredArgs() const OVERRIDE { return 2; }
45 vmint maxAllowedArgs() const OVERRIDE { return 2; }
46 bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return INT_EXPR; }
47 ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }
48 VMFnResult* exec(VMFnArgs* args) OVERRIDE;
49 protected:
50 InstrumentScriptVM* m_vm;
51 };
52
53 }} // namespace LinuxSampler::gig
54
55 #endif // LS_GIG_INSTRSCRIPTVMFUNCTIONS_H

  ViewVC Help
Powered by ViewVC