asigalov61 commited on
Commit
b01de93
1 Parent(s): 4a74f82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -60,6 +60,9 @@ def find_midi(search_string, search_options):
60
  print('=' * 70)
61
 
62
  fn = AUX_DATA[search_match_index][0]
 
 
 
63
  raw_score = AUX_DATA[search_match_index][4]
64
  single_track_score_notes = TMIDIX.advanced_score_processor(raw_score,
65
  return_score_analysis=False,
@@ -74,7 +77,7 @@ def find_midi(search_string, search_options):
74
 
75
  colors = ['red', 'yellow', 'green', 'cyan',
76
  'blue', 'pink', 'orange', 'purple',
77
- 'gray', 'white', 'gold', 'silver',
78
  'lightgreen', 'indigo', 'maroon', 'turquoise']
79
 
80
  for s in single_track_score_notes:
@@ -84,10 +87,10 @@ def find_midi(search_string, search_options):
84
 
85
  plt.close()
86
  plt.figure(figsize=(14,5))
87
- ax=plt.axes(title='MIDI Match Plot')
88
- ax.set_facecolor('black')
89
 
90
- plt.scatter(x,y, s=0.1, c=c)
91
  plt.xlabel("Time in MIDI ticks")
92
  plt.ylabel("MIDI Pitch")
93
 
 
60
  print('=' * 70)
61
 
62
  fn = AUX_DATA[search_match_index][0]
63
+ title = AUX_DATA[search_match_index][1]
64
+ lyric = AUX_DATA[search_match_index][2]
65
+ summary = AUX_DATA[search_match_index][3]
66
  raw_score = AUX_DATA[search_match_index][4]
67
  single_track_score_notes = TMIDIX.advanced_score_processor(raw_score,
68
  return_score_analysis=False,
 
77
 
78
  colors = ['red', 'yellow', 'green', 'cyan',
79
  'blue', 'pink', 'orange', 'purple',
80
+ 'gray', 'black', 'gold', 'silver',
81
  'lightgreen', 'indigo', 'maroon', 'turquoise']
82
 
83
  for s in single_track_score_notes:
 
87
 
88
  plt.close()
89
  plt.figure(figsize=(14,5))
90
+ ax=plt.axes(title=title)
91
+ ax.set_facecolor('white')
92
 
93
+ plt.scatter(x,y, s=0.5, c=c)
94
  plt.xlabel("Time in MIDI ticks")
95
  plt.ylabel("MIDI Pitch")
96