bliss-rs/examples/analyse.rs
Polochon-street 6a070a6d13 Merge pull request #5 from Polochon-street/final-touches
Final touches to adhere to the Rust API Guidelines
2021-05-18 21:58:00 +02:00

18 lines
449 B
Rust

use bliss_audio::Song;
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) {
Ok(song) => println!("{}: {:?}", path, song.analysis,),
Err(e) => println!("{}: {}", path, e),
}
}
}