Upload TMIDIX.py
Browse files
    	
        TMIDIX.py
    CHANGED
    
    | @@ -5287,7 +5287,8 @@ def add_melody_to_enhanced_score_notes(enhanced_score_notes, | |
| 5287 | 
             
                                                  melody_patch=40,
         | 
| 5288 | 
             
                                                  melody_max_velocity=110,
         | 
| 5289 | 
             
                                                  acc_max_velocity=90,
         | 
| 5290 | 
            -
                                                  pass_drums=True
         | 
|  | |
| 5291 | 
             
                                                  ):
         | 
| 5292 |  | 
| 5293 | 
             
                if pass_drums:
         | 
| @@ -5365,7 +5366,11 @@ def add_melody_to_enhanced_score_notes(enhanced_score_notes, | |
| 5365 |  | 
| 5366 | 
             
                adjust_score_velocities(smoothed_melody, melody_max_velocity)
         | 
| 5367 |  | 
| 5368 | 
            -
                 | 
|  | |
|  | |
|  | |
|  | |
| 5369 |  | 
| 5370 | 
             
                return final_score
         | 
| 5371 |  | 
|  | |
| 5287 | 
             
                                                  melody_patch=40,
         | 
| 5288 | 
             
                                                  melody_max_velocity=110,
         | 
| 5289 | 
             
                                                  acc_max_velocity=90,
         | 
| 5290 | 
            +
                                                  pass_drums=True,
         | 
| 5291 | 
            +
                                                  return_melody=False
         | 
| 5292 | 
             
                                                  ):
         | 
| 5293 |  | 
| 5294 | 
             
                if pass_drums:
         | 
|  | |
| 5366 |  | 
| 5367 | 
             
                adjust_score_velocities(smoothed_melody, melody_max_velocity)
         | 
| 5368 |  | 
| 5369 | 
            +
                if return_melody:
         | 
| 5370 | 
            +
                  final_score = sorted(smoothed_melody, key=lambda x: (x[1], -x[4]))
         | 
| 5371 | 
            +
             | 
| 5372 | 
            +
                else:
         | 
| 5373 | 
            +
                  final_score = sorted(smoothed_melody + acc_score, key=lambda x: (x[1], -x[4]))
         | 
| 5374 |  | 
| 5375 | 
             
                return final_score
         | 
| 5376 |  | 
