/[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 2630 - (show annotations) (download) (as text)
Fri Jun 13 15:01:06 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1092 byte(s)
* Implemented built-in instrument script function "set_event_mark()".
* Implemented built-in instrument script function "delete_event_mark()".
* Implemented built-in instrument script function "by_marks()".
* Added built-in instrument script int const variables $MARK_1 to $MARK_28.
* Built-in instrument script functions "ignore_event()", "note_off()" and
  "gig_set_dim_zone()" now also accept an array of event IDs as argument
  (i.e. return value of new script function "by_marks()").
* Bumped version (1.0.0.svn53).

1 /*
2 * Copyright (c) 2014 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 int minRequiredArgs() const { return 3; }
28 int maxAllowedArgs() const { return 3; }
29 bool acceptsArgType(int iArg, ExprType_t type) const;
30 ExprType_t argType(int iArg) const { return INT_EXPR; }
31 VMFnResult* exec(VMFnArgs* args);
32 protected:
33 InstrumentScriptVM* m_vm;
34 };
35
36 }} // namespace LinuxSampler::gig
37
38 #endif // LS_GIG_INSTRSCRIPTVMFUNCTIONS_H

  ViewVC Help
Powered by ViewVC