File: osci.box

package info (click to toggle)
faust 2.79.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 397,496 kB
  • sloc: cpp: 278,433; ansic: 116,164; javascript: 18,529; vhdl: 14,052; sh: 13,884; java: 5,900; objc: 3,852; python: 3,222; makefile: 2,655; cs: 1,672; lisp: 1,146; ruby: 954; yacc: 586; xml: 471; lex: 247; awk: 110; tcl: 26
file content (85 lines) | stat: -rw-r--r-- 2,529 bytes parent folder | download
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
declare version "2.77.2";
declare compile_options "-single -scal ../../build/bin/faust -I dsp -e dsp/osci.dsp -o reference/osci.box";
declare library_path0 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/music.lib";
declare library_path1 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/math.lib";
declare author "Grame";
declare copyright "(c)GRAME 2009";
declare filename "osci.dsp";
declare license "BSD";
declare math_lib_author "GRAME";
declare math_lib_copyright "GRAME";
declare math_lib_deprecated "This library is deprecated and is not maintained anymore. It will be removed in August 2017.";
declare math_lib_license "LGPL with exception";
declare math_lib_name "Math Library";
declare math_lib_version "1.0";
declare music_lib_author "GRAME";
declare music_lib_copyright "GRAME";
declare music_lib_license "LGPL with exception";
declare music_lib_name "Music Library";
declare music_lib_version "1.0";
declare name "osci";
declare version "1.0";
ID_0 = _, 1;
ID_1 = (ID_0 : +);
ID_2 = ID_1 ~ _;
ID_3 = ID_2, 1;
ID_4 = ID_3 : -;
ID_5 = (ID_4 : float);
ID_6 = ID_5, 6.2831855f;
ID_7 = (ID_6 : *);
ID_8 = (65536 : float);
ID_9 = ID_7, ID_8;
ID_10 = ID_9 : /;
ID_11 = (ID_10 : sin);
ID_12 = hslider("freq [unit:Hz]", 564.0f, 2e+01f, 2.4e+04f, 1.0f);
ID_13 = fconstant(int fSamplingFreq, <math.h>);
ID_14 = 1.0f, ID_13;
ID_15 = (ID_14 : max);
ID_16 = 1.92e+05f, ID_15;
ID_17 = ID_16 : min;
ID_18 = (ID_17 : float);
ID_19 = ID_12, ID_18;
ID_20 = ID_19 : /;
ID_21 = (+ : \(x1).(x1,(x1 : floor) : -));
ID_22 = ID_21 ~ _;
ID_23 = _, ID_8;
ID_24 = ID_23 : *;
ID_25 = ID_22 : ID_24;
ID_26 = ID_20 : ID_25;
ID_27 = (ID_26 : int);
ID_28 = ID_11, ID_27;
ID_29 = 65537, ID_28;
ID_30 = (ID_29 : rdtable);
ID_31 = (+ : \(x2).(x2,(x2 : floor) : -));
ID_32 = ID_31 ~ _;
ID_33 = _, 65536.0f;
ID_34 = ID_33 : *;
ID_35 = ID_32 : ID_34;
ID_36 = (ID_20 : ID_35);
ID_37 = (ID_36 : floor);
ID_38 = ID_36, ID_37;
ID_39 = (ID_38 : -);
ID_40 = ID_27, 1;
ID_41 = (ID_40 : +);
ID_42 = ID_11, ID_41;
ID_43 = 65537, ID_42;
ID_44 = (ID_43 : rdtable);
ID_45 = ID_44, ID_30;
ID_46 = (ID_45 : -);
ID_47 = ID_39, ID_46;
ID_48 = (ID_47 : *);
ID_49 = ID_30, ID_48;
ID_50 = (ID_49 : +);
ID_51 = hslider("volume [unit:dB]", 0.0f, -96.0f, 0.0f, 0.1f);
ID_52 = _, 0.001f;
ID_53 = ID_52 : *;
ID_54 = _, 0.999f;
ID_55 = (ID_54 : *);
ID_56 = + ~ ID_55;
ID_57 = ID_53 : ID_56;
ID_58 = \(x3).(10,(x3,2e+01f : /) : pow) : ID_57;
ID_59 = (ID_51 : ID_58);
ID_60 = ID_50, ID_59;
ID_61 = ID_60 : *;
ID_62 = vgroup("Oscillator", ID_61);
process = ID_62;