Fix issue with undocumented Deflemask note 0
parent
375d85adb0
commit
e43c0dd541
|
@ -481,6 +481,7 @@ impl DmfModule {
|
||||||
10 => Note::ASharp( if channel > 5 { octave - 1 } else { octave } ),
|
10 => Note::ASharp( if channel > 5 { octave - 1 } else { octave } ),
|
||||||
11 => Note::B( 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??
|
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 ) )?
|
_ => return Err( format!( "invalid file: invalid note id {}", note ) )?
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue