Fix issue with undocumented Deflemask note 0

master
Ashley N. 2023-08-27 14:22:45 -04:00
parent 375d85adb0
commit e43c0dd541
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) )?
}
)