From b89debcbd7d85953f2490d2b139b80cd31204265 Mon Sep 17 00:00:00 2001 From: Denis Redozubov Date: Thu, 15 Jun 2023 20:28:13 +0400 Subject: [PATCH] Fix tests --- src/midi/core.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/midi/core.rs b/src/midi/core.rs index fe5b797..beed277 100644 --- a/src/midi/core.rs +++ b/src/midi/core.rs @@ -439,12 +439,12 @@ fn group_to_event_grid( // grid.length = grid.length + eg.length; // time = time + grid.length; // } - Rest => { + Note::Rest => { let rest_end = time + note_length; time = rest_end; grid.length = rest_end; } - Hit => { + Note::Hit => { let note_end = time + note_length; let note_on = Event { tick: time,