projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MRFausti -> Faustine in Makefile.in.
[Faustine.git]
/
interpretor
/
main.ml
diff --git
a/interpretor/main.ml
b/interpretor/main.ml
index
5e074a2
..
e214802
100644
(file)
--- a/
interpretor/main.ml
+++ b/
interpretor/main.ml
@@
-5,6
+5,7
@@
Created: 15/05/2013 Modified: 14/08/2013
*)
Created: 15/05/2013 Modified: 14/08/2013
*)
+open Aux;;
open Process;;
open Faustio;;
open Process;;
open Faustio;;
@@
-63,17
+64,35
@@
let main () =
let wave = new waveio in
let csv = new csvio in
let wave = new waveio in
let csv = new csvio in
- let input = wave#read (Array.of_list !inwavs) in
+ let input_wave = wave#read (Array.of_list !inwavs) in
+ let input_csv = csv#read (Array.of_list !incsvs) in
+ let input = input_wave#append input_csv in
+
+ let () = print_string(" Faustine -> Preprocessing...") in
+ let tic1 = Sys.time () in
let faust_core = Preprocess.preprocess !path_dsp in
let faust_core = Preprocess.preprocess !path_dsp in
+ let toc1 = Sys.time () in
+ let () = print_endline(" Done. (duration: " ^ (string_of_float (toc1 -. tic1)) ^ "s.)") in
+
+
+ let () = print_string(" Faustine -> Interpretation...") in
+ let tic2 = Sys.time () in
let faust_exp = exp_of_string faust_core in
let proc = (new proc_factory)#make faust_exp in
let faust_exp = exp_of_string faust_core in
let proc = (new proc_factory)#make faust_exp in
+ let toc2 = Sys.time () in
+ let () = print_endline(" Done. (duration: " ^ (string_of_float (toc2 -. tic2)) ^ "s.)") in
+
+
let output = proc#eval input in
let data = output#output time_maximum in
let rates = output#frequency in
let output_wave_paths = wave#write rates data in
let output = proc#eval input in
let data = output#output time_maximum in
let rates = output#frequency in
let output_wave_paths = wave#write rates data in
- let _ = csv#write rates data in
- let _ = Array.map print_endline output_wave_paths in
+ let output_csv_paths = csv#write rates data in
+ let _ = Array.map print_endline
+ (Array.map decorate output_wave_paths) in
+ let _ = Array.map print_endline
+ (Array.map decorate output_csv_paths) in
();;
();;