asigalov61 commited on
Commit
5400c4b
1 Parent(s): be246c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -28,13 +28,11 @@ def AddMelody(input_midi, input_channel, input_patch, input_start_chord):
28
  fn = os.path.basename(input_midi.name)
29
  fn1 = fn.split('.')[0]
30
 
31
- input_num_tokens = max(4, min(128, input_num_tokens))
32
-
33
  print('-' * 70)
34
  print('Input file name:', fn)
35
- print('Req num toks:', input_num_tokens)
36
- print('Conditioning type:', input_conditioning_type)
37
- print('Strip notes:', input_strip_notes)
38
  print('-' * 70)
39
 
40
  #===============================================================================
@@ -62,7 +60,11 @@ def AddMelody(input_midi, input_channel, input_patch, input_start_chord):
62
  #===============================================================================
63
  # Add melody
64
 
65
- output = TMIDIX.add_melody_to_enhanced_score_notes(escore_notes, melody_channel=15, melody_start_chord=15)
 
 
 
 
66
 
67
  print('=' * 70)
68
  print('Done!')
 
28
  fn = os.path.basename(input_midi.name)
29
  fn1 = fn.split('.')[0]
30
 
 
 
31
  print('-' * 70)
32
  print('Input file name:', fn)
33
+ print('Req channel:', input_channel)
34
+ print('Req patch:', input_patch)
35
+ print('Req start chord:', input_start_chord)
36
  print('-' * 70)
37
 
38
  #===============================================================================
 
60
  #===============================================================================
61
  # Add melody
62
 
63
+ output = TMIDIX.add_melody_to_enhanced_score_notes(escore_notes,
64
+ melody_channel=input_channel,
65
+ melody_patch=input_patch,
66
+ melody_start_chord=input_start_chord
67
+ )
68
 
69
  print('=' * 70)
70
  print('Done!')