Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -322,7 +322,8 @@ def tokens_to_MIDI(tokens, MIDI_name):
|
|
322 |
# =================================================================================================
|
323 |
|
324 |
@spaces.GPU
|
325 |
-
def CompareMIDIs(
|
|
|
326 |
print('=' * 70)
|
327 |
print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
328 |
start_time = reqtime.time()
|
@@ -365,15 +366,17 @@ def CompareMIDIs(input_midi, input_num_of_notes, input_patch_number):
|
|
365 |
print('Done!')
|
366 |
print('=' * 70)
|
367 |
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
input_num_of_notes = max(8, min(2048, input_num_of_notes))
|
372 |
|
|
|
|
|
|
|
373 |
print('-' * 70)
|
374 |
-
print('Input
|
375 |
-
print('
|
376 |
-
print('Req
|
|
|
377 |
print('-' * 70)
|
378 |
|
379 |
#===============================================================================
|
|
|
322 |
# =================================================================================================
|
323 |
|
324 |
@spaces.GPU
|
325 |
+
def CompareMIDIs(input_src_midi, input_trg_midi, input_sampling_resolution, input_sampling_overlap):
|
326 |
+
|
327 |
print('=' * 70)
|
328 |
print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
329 |
start_time = reqtime.time()
|
|
|
366 |
print('Done!')
|
367 |
print('=' * 70)
|
368 |
|
369 |
+
sfn = os.path.basename(input_src_midi.name)
|
370 |
+
sfn1 = sfn.split('.')[0]
|
|
|
|
|
371 |
|
372 |
+
tfn = os.path.basename(input_trg_midi.name)
|
373 |
+
tfn1 = tfn.split('.')[0]
|
374 |
+
|
375 |
print('-' * 70)
|
376 |
+
print('Input src MIDI name:', sfn)
|
377 |
+
print('Input trg MIDI name:', tfn)
|
378 |
+
print('Req sampling resolution:', input_sampling_resolution)
|
379 |
+
print('Req sampling overlap:', input_sampling_overlap)
|
380 |
print('-' * 70)
|
381 |
|
382 |
#===============================================================================
|