diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-11-25 23:34:51 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-11-25 23:34:51 -0500 |
commit | f8cf52fa4b2bbaff5627fa397a26589070084d3e (patch) | |
tree | 6ffc67fbba825eed811409732ce8e6cbda0dc38f /src/itfile.rs | |
parent | 736033237b41f91bcc093c06780e47c4ad5febaa (diff) | |
download | it2midi-f8cf52fa4b2bbaff5627fa397a26589070084d3e.tar.xz |
Actually produce some valid midi output.
Major restructure in the IT player: No more custom trait objects,
let's just use closures instead...
Basic note handling.
Fixes to the midi file modules so the output is now valid.
Other fixes to appease the Rust Gods.
Current converter handles no IT effects (except timing effects like
Axx, Bxx, Cxx, SBx and SEx, as those are handled as a part of
the player). But this is a start.
Diffstat (limited to 'src/itfile.rs')
-rw-r--r-- | src/itfile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/itfile.rs b/src/itfile.rs index 12788b3..57d235d 100644 --- a/src/itfile.rs +++ b/src/itfile.rs @@ -53,7 +53,7 @@ impl Header fn time_signature(self: &Self) -> Option<(u32, u32)> { if self.special & 0x4 != 0 && self.pat_highlight != 0 - { Some(((self.pat_highlight >> 8) as u32, (self.pat_highlight & 0xff) as u32)) } + { Some(((self.pat_highlight & 0xff) as u32, (self.pat_highlight >> 8) as u32)) } else { None } } } |