aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 0b76033..728c3e2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,8 +9,10 @@ fn main() -> Result<(), itfile::Error> {
{
Ok(f) =>
{
- let mut conv = convert::Converter::new(&f);
- conv.convert();
+ let mut conv = convert::Converter::new();
+ conv.convert(&f);
+ let mf = conv.result();
+ midifile::write_file("output.mid", &mf)?;
Ok(())
}
Err(e) => Err(e)