From 67bd9d4d3092747c49babf795a143dda7784d6d2 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 30 Nov 2024 01:07:16 -0800 Subject: [PATCH] Version 1.0 Code corrections --- tegridy-tools/TMIDIX.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tegridy-tools/TMIDIX.py b/tegridy-tools/TMIDIX.py index e6d9f7f..92e6488 100644 --- a/tegridy-tools/TMIDIX.py +++ b/tegridy-tools/TMIDIX.py @@ -7883,19 +7883,21 @@ def solo_piano_escore_notes(escore_notes, chord = [] for cc in c: - if cc[pitches_index] not in seen: - if cc[channels_index] != 9: + if cc[channels_index] != 9: + if cc[pitches_index] not in seen: + cc[channels_index] = 0 cc[patches_index] = 0 - + chord.append(cc) seen.append(cc[pitches_index]) - - else: - if keep_drums: + + else: + if keep_drums: + if cc[pitches_index]+128 not in seen: chord.append(cc) - seen.append(cc[pitches_index]) + seen.append(cc[pitches_index]+128) sp_escore_notes.append(chord)