Skip to content

Commit

Permalink
Version 1.0 Code corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
asigalov61 authored Nov 30, 2024
1 parent a6c104c commit 67bd9d4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tegridy-tools/TMIDIX.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 67bd9d4

Please sign in to comment.