From e43c0dd5414783529fbb493b0d8468d1aabcc8dd Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 27 Aug 2023 14:22:45 -0400 Subject: [PATCH] Fix issue with undocumented Deflemask note 0 --- src/reskit/soundtrack/formats/dmf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reskit/soundtrack/formats/dmf.rs b/src/reskit/soundtrack/formats/dmf.rs index b8df736..5197545 100644 --- a/src/reskit/soundtrack/formats/dmf.rs +++ b/src/reskit/soundtrack/formats/dmf.rs @@ -481,6 +481,7 @@ impl DmfModule { 10 => Note::ASharp( if channel > 5 { octave - 1 } else { octave } ), 11 => Note::B( if channel > 5 { octave - 1 } else { octave } ), 12 => Note::C( if channel > 5 { octave } else { octave + 1 } ), // deflemask y u shift the octave down 1 for C?? + 0 => Note::C( if channel > 5 { octave - 1 } else { octave } ), // deflemask y u do this?? 0 is not documented _ => return Err( format!( "invalid file: invalid note id {}", note ) )? } )