aboutsummaryrefslogblamecommitdiff
path: root/src/main.rs
blob: 8280e5e68d73703f2445cdb00431350553aca21b (plain) (tree)
1
2
3
4
5
6
7
8

             
            



                                        
                                                                       


            



                                               




                    
mod itfile;
mod midifile;
mod portmod;
mod convert;
mod utils;

fn main() -> Result<(), itfile::Error> {
  match itfile::load("/home/chrisoft/Music/mods/nb_tear of the sun.it")
  {
    Ok(f) =>
    {
      let mut conv = convert::Converter::new();
      conv.convert(&f);
      let mf = conv.result();
      midifile::write_file("output.mid", &mf)?;
      Ok(())
    }
    Err(e) => Err(e)
  }
}