asigalov61 commited on
Commit
b62d385
verified
1 Parent(s): 7c8b992

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +103 -2
TMIDIX.py CHANGED
@@ -51,7 +51,7 @@ r'''############################################################################
51
 
52
  ###################################################################################
53
 
54
- __version__ = "25.7.5"
55
 
56
  print('=' * 70)
57
  print('TMIDIX Python module')
@@ -5076,7 +5076,7 @@ def patch_enhanced_score_notes(enhanced_score_notes,
5076
  else:
5077
  e[3] = patches.index(e[6])
5078
 
5079
- enhanced_score_notes_with_patch_changes.append(e)
5080
 
5081
  #===========================================================================
5082
 
@@ -13417,6 +13417,107 @@ def find_deepest_midi_dirs(roots,
13417
 
13418
  ###################################################################################
13419
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13420
  print('Module loaded!')
13421
  print('=' * 70)
13422
  print('Enjoy! :)')
 
51
 
52
  ###################################################################################
53
 
54
+ __version__ = "25.7.7"
55
 
56
  print('=' * 70)
57
  print('TMIDIX Python module')
 
5076
  else:
5077
  e[3] = patches.index(e[6])
5078
 
5079
+ enhanced_score_notes_with_patch_changes.append(e)
5080
 
5081
  #===========================================================================
5082
 
 
13417
 
13418
  ###################################################################################
13419
 
13420
+ PERCUSSION_GROUPS = {
13421
+
13422
+ 1: { # Bass Drums
13423
+ 35: 'Acoustic Bass Drum',
13424
+ 36: 'Bass Drum 1',
13425
+ },
13426
+ 2: { # Stick
13427
+ 37: 'Side Stick',
13428
+ },
13429
+ 3: { # Snares
13430
+ 38: 'Acoustic Snare',
13431
+ 40: 'Electric Snare',
13432
+ },
13433
+ 4: { # Claps
13434
+ 39: 'Hand Clap',
13435
+ },
13436
+ 5: { # Floor Toms
13437
+ 41: 'Low Floor Tom',
13438
+ 43: 'High Floor Tom',
13439
+ },
13440
+ 6: { # Hi-Hats
13441
+ 42: 'Closed Hi-Hat',
13442
+ 44: 'Pedal Hi-Hat',
13443
+ 46: 'Open Hi-Hat',
13444
+ },
13445
+ 7: { # Toms
13446
+ 45: 'Low Tom',
13447
+ 47: 'Low-Mid Tom',
13448
+ 48: 'Hi-Mid Tom',
13449
+ 50: 'High Tom',
13450
+ },
13451
+ 8: { # Cymbals
13452
+ 49: 'Crash Cymbal 1',
13453
+ 51: 'Ride Cymbal 1',
13454
+ 52: 'Chinese Cymbal',
13455
+ 55: 'Splash Cymbal',
13456
+ 57: 'Crash Cymbal 2',
13457
+ 59: 'Ride Cymbal 2',
13458
+ },
13459
+ 9: { # Bells
13460
+ 53: 'Ride Bell',
13461
+ },
13462
+ 10: { # Tambourine
13463
+ 54: 'Tambourine',
13464
+ },
13465
+ 11: { # Cowbell
13466
+ 56: 'Cowbell',
13467
+ },
13468
+ 12: { # Vibraslap
13469
+ 58: 'Vibraslap',
13470
+ },
13471
+ 13: { # Bongos
13472
+ 60: 'Hi Bongo',
13473
+ 61: 'Low Bongo',
13474
+ },
13475
+ 14: { # Congas
13476
+ 62: 'Mute Hi Conga',
13477
+ 63: 'Open Hi Conga',
13478
+ 64: 'Low Conga',
13479
+ },
13480
+ 15: { # Timbales
13481
+ 65: 'High Timbale',
13482
+ 66: 'Low Timbale',
13483
+ },
13484
+ 16: { # Agog么
13485
+ 67: 'High Agogo',
13486
+ 68: 'Low Agogo',
13487
+ },
13488
+ 17: { # Cabasa
13489
+ 69: 'Cabasa',
13490
+ },
13491
+ 18: { # Maracas
13492
+ 70: 'Maracas',
13493
+ },
13494
+ 19: { # Whistles
13495
+ 71: 'Short Whistle',
13496
+ 72: 'Long Whistle',
13497
+ },
13498
+ 20: { # Guiros
13499
+ 73: 'Short Guiro',
13500
+ 74: 'Long Guiro',
13501
+ },
13502
+ 21: { # Claves
13503
+ 75: 'Claves',
13504
+ },
13505
+ 22: { # Wood Blocks
13506
+ 76: 'Hi Wood Block',
13507
+ 77: 'Low Wood Block',
13508
+ },
13509
+ 23: { # Cuica
13510
+ 78: 'Mute Cuica',
13511
+ 79: 'Open Cuica',
13512
+ },
13513
+ 24: { # Triangles
13514
+ 80: 'Mute Triangle',
13515
+ 81: 'Open Triangle',
13516
+ },
13517
+ }
13518
+
13519
+ ###################################################################################
13520
+
13521
  print('Module loaded!')
13522
  print('=' * 70)
13523
  print('Enjoy! :)')