2 <link rel=
"stylesheet" href=
"style.css" type=
"text/css">
3 <meta content=
"text/html; charset=iso-8859-1" http-equiv=
"Content-Type">
4 <link rel=
"Start" href=
"index.html">
5 <link title=
"Index of types" rel=Appendix
href=
"index_types.html">
6 <link title=
"Index of exceptions" rel=Appendix
href=
"index_exceptions.html">
7 <link title=
"Index of values" rel=Appendix
href=
"index_values.html">
8 <link title=
"Index of modules" rel=Appendix
href=
"index_modules.html">
9 <link title=
"Types" rel=
"Chapter" href=
"Types.html">
10 <link title=
"Parser" rel=
"Chapter" href=
"Parser.html">
11 <link title=
"Lexer" rel=
"Chapter" href=
"Lexer.html">
12 <link title=
"Value" rel=
"Chapter" href=
"Value.html">
13 <link title=
"Signal" rel=
"Chapter" href=
"Signal.html">
14 <link title=
"Faustexp" rel=
"Chapter" href=
"Faustexp.html">
15 <link title=
"Interpreter" rel=
"Chapter" href=
"Interpreter.html">
16 <link title=
"Preprocess" rel=
"Chapter" href=
"Preprocess.html">
17 <link title=
"Main" rel=
"Chapter" href=
"Main.html"><title>Interpreter.compute
</title>
20 <code class=
"code"><span class=
"keyword">let
</span> compute
fun_list
=
<br>
21 <span class=
"keyword">let
</span> ()
=
print_endline(
<span class=
"string">"Computing output signals..."</span>)
<span class=
"keyword">in
</span><br>
22 <br>
23 <span class=
"comment">(*
arrange
input
information
*)
</span><br>
24 <span class=
"keyword">let
</span> length
=
interpreter_macro_to_value
<span class=
"constructor">Number_samples_int
</span> <span class=
"keyword">in
</span><br>
25 <span class=
"keyword">let
</span> width
=
<span class=
"constructor">List
</span>.length
fun_list
<span class=
"keyword">in
</span><br>
26 <span class=
"keyword">let
</span> beam_fun
=
fun_array_to_fun
(
<span class=
"constructor">Array
</span>.of_list
fun_list)
<span class=
"keyword">in
</span><br>
28 <span class=
"comment">(*
calculate
output
wave
*)
</span><br>
29 <span class=
"keyword">let
</span> tmp_float_array_array_array
=
computing
beam_fun
width
length
<span class=
"keyword">in
</span><br>
31 <span class=
"comment">(*
arrange
output
data
*)
</span><br>
32 <span class=
"keyword">let
</span> output_float_array_array_array
=
matrix_transpose
tmp_float_array_array_array
width
<span class=
"keyword">in
</span><br>
33 <span class=
"keyword">let
</span> channel_array
=
channels
output_float_array_array_array
width
<span class=
"keyword">in
</span><br>
34 <span class=
"keyword">let
</span> channel_list
=
<span class=
"constructor">Array
</span>.to_list
channel_array
<span class=
"keyword">in
</span><br>
35 <span class=
"keyword">let
</span> output_float_array_list
=
arrange
output_float_array_array_array
width
<span class=
"keyword">in
</span><br>
36 (channel_list,
output_float_array_list)
</code></body></html>