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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2596 - (show annotations) (download) (as text)
Thu Jun 5 19:39:12 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 985 byte(s)
* ScriptVM (WIP): Implemented execution of script event
  handlers "note" and "release".
* ScriptVM (WIP): Implemented built-in script function
  "play_note()" (only two of the max. four function
  arguments are currently implemented yet though).
* ScriptVM (WIP): Fixed incorrect handling of
  suspended scripts.
* Bumped version (1.0.0.svn43).

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_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 class InstrumentScriptVMFunction_play_note : public VMEmptyResultFunction {
21 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 } // namespace LinuxSampler
33
34 #endif // LS_INSTRSCRIPTVMFUNCTIONS_H

  ViewVC Help
Powered by ViewVC