blob: 728c3e28104300ac18d5915994b347eae5e824af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mod itfile;
mod midifile;
mod portmod;
mod convert;
mod utils;
fn main() -> Result<(), itfile::Error> {
match itfile::load("/home/chrisoft/Music/mods/p/rr_e.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)
}
}
|