asigalov61 commited on
Commit
b324ee1
1 Parent(s): e8f5afe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -177,7 +177,7 @@ def ClassifyMIDI(input_midi):
177
  seq.extend([time, dur+128, ptc+256])
178
  notes_counter += 1
179
 
180
- for i in range(0, len(seq)-SEQ_LEN-4, (SEQ_LEN-4) // 2):
181
  schunk = seq[i:i+SEQ_LEN-4]
182
  input_data.append([14624] + schunk + [14625])
183
 
@@ -191,7 +191,7 @@ def ClassifyMIDI(input_midi):
191
 
192
  print('Composition has', notes_counter, 'notes')
193
  print('=' * 70)
194
- print('Composition was split into' , len(input_data), 'chunks of 340 notes each with 170 notes overlap')
195
  print('Number of notes in all composition chunks:', len(input_data) * 340)
196
 
197
  classification_summary_string += 'Composition has ' + str(notes_counter) + ' notes\n'
 
177
  seq.extend([time, dur+128, ptc+256])
178
  notes_counter += 1
179
 
180
+ for i in range(0, len(seq)-SEQ_LEN-4, (SEQ_LEN-4) // 4):
181
  schunk = seq[i:i+SEQ_LEN-4]
182
  input_data.append([14624] + schunk + [14625])
183
 
 
191
 
192
  print('Composition has', notes_counter, 'notes')
193
  print('=' * 70)
194
+ print('Composition was split into' , len(input_data), 'chunks of 340 notes each with 255 notes overlap')
195
  print('Number of notes in all composition chunks:', len(input_data) * 340)
196
 
197
  classification_summary_string += 'Composition has ' + str(notes_counter) + ' notes\n'