Commit 
							
							·
						
						5c6968d
	
1
								Parent(s):
							
							3e08221
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -364,12 +364,12 @@ def match_midi(midi, max_match_ratio, progress=gr.Progress()): | |
| 364 |  | 
| 365 | 
             
                plt.close()
         | 
| 366 | 
             
                plt.figure(figsize=(14,5))
         | 
| 367 | 
            -
                ax=plt.axes(title='MIDI  | 
| 368 | 
             
                ax.set_facecolor('black')
         | 
| 369 |  | 
| 370 | 
             
                plt.scatter(x,y, c=c)
         | 
| 371 | 
            -
                plt.xlabel("Time")
         | 
| 372 | 
            -
                plt.ylabel("Pitch")
         | 
| 373 |  | 
| 374 | 
             
                with open(f"MIDI-Match-Sample.mid", 'wb') as f:
         | 
| 375 | 
             
                    f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
         | 
|  | |
| 364 |  | 
| 365 | 
             
                plt.close()
         | 
| 366 | 
             
                plt.figure(figsize=(14,5))
         | 
| 367 | 
            +
                ax=plt.axes(title='MIDI Match Plot')
         | 
| 368 | 
             
                ax.set_facecolor('black')
         | 
| 369 |  | 
| 370 | 
             
                plt.scatter(x,y, c=c)
         | 
| 371 | 
            +
                plt.xlabel("Time in MIDI ticks")
         | 
| 372 | 
            +
                plt.ylabel("MIDI Pitch")
         | 
| 373 |  | 
| 374 | 
             
                with open(f"MIDI-Match-Sample.mid", 'wb') as f:
         | 
| 375 | 
             
                    f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
         | 
