From 3cb0e3d47b1189dce3f03cd8474fad719c5d49b2 Mon Sep 17 00:00:00 2001 From: Magenta Team Date: Tue, 10 Dec 2024 19:41:54 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 704935015 --- mt3/note_sequences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt3/note_sequences.py b/mt3/note_sequences.py index 52bc1b3..8b64f17 100644 --- a/mt3/note_sequences.py +++ b/mt3/note_sequences.py @@ -239,7 +239,7 @@ def note_event_data_to_events( else: # program + velocity + pitch if state is not None: - state.active_pitches[(value.pitch, value.program)] = velocity_bin + state.active_pitches[(value.pitch, int(value.program))] = velocity_bin return [event_codec.Event('program', value.program), event_codec.Event('velocity', velocity_bin), event_codec.Event('pitch', value.pitch)]