File: DspFaustNode.h

package info (click to toggle)
faust 2.30.5~ds0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 279,348 kB
  • sloc: cpp: 239,368; javascript: 32,310; ansic: 17,442; sh: 11,925; java: 5,903; objc: 3,879; makefile: 3,030; cs: 1,139; python: 987; ruby: 951; xml: 693; yacc: 537; lex: 239; lisp: 201; awk: 110
file content (69 lines) | stat: -rw-r--r-- 3,749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/************************************************************************
 ************************************************************************
 FAUST API Architecture File 
 Copyright (C) 2017 GRAME, Romain Michon, CCRMA - Stanford University
 Copyright (C) 2014-2017 GRAME, Centre National de Creation Musicale
 ---------------------------------------------------------------------

 This is sample code. This file is provided as an example of minimal
 FAUST architecture file. Redistribution and use in source and binary
 forms, with or without modification, in part or in full are permitted.
 In particular you can create a derived work of this FAUST architecture
 and distribute that work under terms of your choice.

 This sample code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 ************************************************************************
 ************************************************************************/

#ifndef __faust_nodejs__
#define __faust_nodejs__

#include <node.h>
#include <node_object_wrap.h>
#include "DspFaust.h"

class DspFaustNode : public node::ObjectWrap, public DspFaust {
public:
  static void Init(v8::Handle<v8::Object> exports);

private:
  explicit DspFaustNode();
  explicit DspFaustNode(int, int);
  ~DspFaustNode();
  static void destroy(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void start(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void stop(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void isRunning(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void keyOn(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void keyOff(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void newVoice(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void deleteVoice(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void allNotesOff(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void propagateMidi(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getJSONUI(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getJSONMeta(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamsCount(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void setParamValue(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamValue(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void setVoiceParamValue(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getVoiceParamValue(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamAddress(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getVoiceParamAddress(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamMin(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamMax(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getParamInit(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getMetadata(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void propagateAcc(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void setAccConverter(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void propagateGyr(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void setGyrConverter(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void getCPULoad(const v8::FunctionCallbackInfo<v8::Value>& args);
  static void configureOSC(const v8::FunctionCallbackInfo<v8::Value>& args);
  
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
  static v8::Persistent<v8::Function> constructor;
};

#endif