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

Annotation of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2600 - (hide annotations) (download) (as text)
Sat Jun 7 00:16:03 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 2564 byte(s)
* Implemented built-in instrument script function "set_controller()".
* Fixed built-in script functions "ignore_event()" and
  "ignore_controller()".
* Added extended instrument script VM for the Gigasampler/GigaStudio format
  sampler engine, which extends the general instrument script VM with Giga
  format specific variables and functions.
* Giga format instrument scripts: added built-in script int constant
  variables $GIG_DIM_CHANNEL, $GIG_DIM_LAYER, $GIG_DIM_VELOCITY,
  $GIG_DIM_AFTERTOUCH, $GIG_DIM_RELEASE, $GIG_DIM_KEYBOARD,
  $GIG_DIM_ROUNDROBIN, $GIG_DIM_RANDOM, $GIG_DIM_SMARTMIDI,
  $GIG_DIM_ROUNDROBINKEY, $GIG_DIM_MODWHEEL, $GIG_DIM_BREATH,
  $GIG_DIM_FOOT, $GIG_DIM_PORTAMENTOTIME, $GIG_DIM_EFFECT1,
  $GIG_DIM_EFFECT2, $GIG_DIM_GENPURPOSE1, $GIG_DIM_GENPURPOSE2,
  $GIG_DIM_GENPURPOSE3, $GIG_DIM_GENPURPOSE4, $GIG_DIM_SUSTAIN,
  $GIG_DIM_PORTAMENTO, $GIG_DIM_SOSTENUTO, $GIG_DIM_SOFT,
  $GIG_DIM_GENPURPOSE5, $GIG_DIM_GENPURPOSE6, $GIG_DIM_GENPURPOSE7,
  $GIG_DIM_GENPURPOSE8, $GIG_DIM_EFFECT1DEPTH, $GIG_DIM_EFFECT2DEPTH,
  $GIG_DIM_EFFECT3DEPTH, $GIG_DIM_EFFECT4DEPTH, $GIG_DIM_EFFECT5DEPTH.
* Giga format instrument scripts: Implemented built-in script function
  "gig_set_dim_zone(event_id, dimension, zone)", which allows to override
  dimension zone(s) for new voices.
* Bumped version (1.0.0.svn45).

1 schoenebeck 2596 /*
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_INSTRSCRIPTVMFUNCTIONS_H
11     #define LS_INSTRSCRIPTVMFUNCTIONS_H
12    
13     #include "../../common/global.h"
14     #include "../../scriptvm/CoreVMFunctions.h"
15    
16     namespace LinuxSampler {
17    
18     class InstrumentScriptVM;
19    
20 schoenebeck 2598 class InstrumentScriptVMFunction_play_note : public VMIntResultFunction {
21 schoenebeck 2596 public:
22     InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent);
23     int minRequiredArgs() const { return 1; }
24     int maxAllowedArgs() const { return 4; }
25     bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
26     ExprType_t argType(int iArg) const { return INT_EXPR; }
27     VMFnResult* exec(VMFnArgs* args);
28     protected:
29     InstrumentScriptVM* m_vm;
30     };
31    
32 schoenebeck 2600 class InstrumentScriptVMFunction_set_controller : public VMIntResultFunction {
33     public:
34     InstrumentScriptVMFunction_set_controller(InstrumentScriptVM* parent);
35     int minRequiredArgs() const { return 2; }
36     int maxAllowedArgs() const { return 2; }
37     bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
38     ExprType_t argType(int iArg) const { return INT_EXPR; }
39     VMFnResult* exec(VMFnArgs* args);
40     protected:
41     InstrumentScriptVM* m_vm;
42     };
43    
44 schoenebeck 2598 class InstrumentScriptVMFunction_ignore_event : public VMEmptyResultFunction {
45     public:
46     InstrumentScriptVMFunction_ignore_event(InstrumentScriptVM* parent);
47     int minRequiredArgs() const { return 1; }
48     int maxAllowedArgs() const { return 1; }
49     bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
50     ExprType_t argType(int iArg) const { return INT_EXPR; }
51     VMFnResult* exec(VMFnArgs* args);
52     protected:
53     InstrumentScriptVM* m_vm;
54     };
55    
56     class InstrumentScriptVMFunction_ignore_controller : public VMEmptyResultFunction {
57     public:
58     InstrumentScriptVMFunction_ignore_controller(InstrumentScriptVM* parent);
59     int minRequiredArgs() const { return 0; }
60     int maxAllowedArgs() const { return 1; }
61     bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
62     ExprType_t argType(int iArg) const { return INT_EXPR; }
63     VMFnResult* exec(VMFnArgs* args);
64     protected:
65     InstrumentScriptVM* m_vm;
66     };
67    
68 schoenebeck 2596 } // namespace LinuxSampler
69    
70     #endif // LS_INSTRSCRIPTVMFUNCTIONS_H

  ViewVC Help
Powered by ViewVC