mqr tests pass

This commit is contained in:
Henry Schimke
2023-04-25 12:50:54 -05:00
parent cf530422c9
commit b8b4bd523c
6 changed files with 6 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ impl<'a> PatternView<'a> {
self.isValidWithN(self.size())
}
fn has_quiet_zone_before(&self, scale: f32, acceptIfAtFirstBar: Option<bool>) -> bool {
pub fn has_quiet_zone_before(&self, scale: f32, acceptIfAtFirstBar: Option<bool>) -> bool {
(acceptIfAtFirstBar.unwrap_or(false) && self.isAtLastBar())
|| Into::<f32>::into(self.data.0[self.count])
>= Into::<f32>::into(self.sum(None)) * scale