/[svn]/linuxsampler/trunk/src/scriptvm/common.cpp
ViewVC logotype

Annotation of /linuxsampler/trunk/src/scriptvm/common.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2598 - (hide annotations) (download)
Fri Jun 6 12:38:54 2014 UTC (9 years, 10 months ago) by schoenebeck
File size: 774 byte(s)
* ScriptVM (WIP): Built-in script function "play_note()" now returns the
  event ID of the triggered note.
* ScriptVM (WIP): Implemented built-in script int variable $EVENT_ID.
* ScriptVM (WIP): Implemented built-in script function "ignore_event()".
* ScriptVM (WIP): Implemented built-in script function
  "ignore_controller()" (accepts one and no argument).
* Bumped version (1.0.0.svn44).

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     #include "common.h"
11 schoenebeck 2598 #include <iostream>
12 schoenebeck 2596
13     namespace LinuxSampler {
14    
15     VMIntExpr* VMExpr::asInt() const {
16     return const_cast<VMIntExpr*>( dynamic_cast<const VMIntExpr*>(this) );
17     }
18    
19     VMStringExpr* VMExpr::asString() const {
20     return const_cast<VMStringExpr*>( dynamic_cast<const VMStringExpr*>(this) );
21     }
22    
23 schoenebeck 2598 void VMFunction::wrnMsg(const String& txt) {
24     std::cout << "[ScriptVM] " << txt << std::endl;
25     }
26    
27     void VMFunction::errMsg(const String& txt) {
28     std::cerr << "[ScriptVM] " << txt << std::endl;
29     }
30    
31 schoenebeck 2596 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC