2021-05-17 23:23:29 +03:00
|
|
|
use bliss_audio::Song;
|
2021-05-14 17:35:08 +03:00
|
|
|
use std::env;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Simple utility to print the result of an Analysis.
|
|
|
|
*
|
|
|
|
* Takes a list of files to analyse an the result of the corresponding Analysis.
|
|
|
|
*/
|
|
|
|
fn main() {
|
|
|
|
let args: Vec<String> = env::args().skip(1).collect();
|
|
|
|
for path in &args {
|
|
|
|
match Song::new(&path) {
|
2021-06-01 19:02:15 +03:00
|
|
|
Ok(song) => println!("{}: {:?}", path, song.analysis),
|
2021-05-14 17:35:08 +03:00
|
|
|
Err(e) => println!("{}: {}", path, e),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|