Advertisement
Guest User

C3notes.py

a guest
Nov 21st, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.64 KB | None | 0 0
  1. from reaper_python import *
  2.  
  3. global notesname_array
  4. ###########################################################
  5. #
  6. # GLOBALS
  7. #
  8. ###########################################################
  9. notesname_instruments_array = {
  10. "PART DRUMS" : "DRUMS",
  11. "PART GUITAR" : "5LANES",
  12. "PART BASS" : "5LANES",
  13. "PART VOCALS" : "VOCALS",
  14. "PART KEYS" : "5LANES",
  15. "PART REAL_KEYS_X": "PROKEYS",
  16. "PART REAL_KEYS_H": "PROKEYS",
  17. "PART REAL_KEYS_M": "PROKEYS",
  18. "PART REAL_KEYS_E": "PROKEYS",
  19. "PART KEYS_ANIM_LH": "PROKEYS",
  20. "PART KEYS_ANIM_RH": "PROKEYS",
  21. "HARM1": "VOCALS",
  22. "HARM2": "VOCALS",
  23. "HARM3": "VOCALS",
  24. "PART DRUMS 2X": "DRUMS",
  25. "PART RHYTHM": "5LANES",
  26. "PART REAL_GUITAR": "PROGUITAR",
  27. "PART REAL_GUITAR_22": "PROGUITAR",
  28. "PART REAL_BASS": "PROGUITAR",
  29. "PART REAL_BASS_22": "PROGUITAR"
  30. }
  31.  
  32. notesname_array = {
  33. "5LANES" :
  34. {
  35. 127 : ["TRILL MARKER", "markers"],
  36. 126 : ["TREMOLO MARKER", "markers"],
  37. 124 : ["BRE", "bre"],
  38. 123 : ["BRE", "bre"],
  39. 122 : ["BRE", "bre"],
  40. 121 : ["BRE", "bre"],
  41. 120 : ["BRE", "bre"],
  42. 116 : ["Overdrive", "od"],
  43. 103 : ["Solo Marker", "solo"],
  44. 102 : ["Expert Force HOPO Off", "markers"],
  45. 101 : ["Expert Force HOPO On", "markers"],
  46. 100 : ["Expert Orange", "notes_x", "O"],
  47. 99 : ["Expert Blue", "notes_x", "B"],
  48. 98 : ["Expert Yellow", "notes_x", "Y"],
  49. 97 : ["Expert Red", "notes_x", "R"],
  50. 96 : ["Expert Green", "notes_x", "G"],
  51. 90 : ["Force HOPO Off", "markers"],
  52. 89 : ["Force HOPO On", "markers"],
  53. 88 : ["Hard Orange", "notes_h", "O"],
  54. 87 : ["Hard Blue", "notes_h", "B"],
  55. 86 : ["Hard Yellow", "notes_h", "Y"],
  56. 85 : ["Hard Red", "notes_h", "R"],
  57. 84 : ["Hard Green", "notes_h", "G"],
  58. 78 : ["Medium Force HOPO Off", "markers"],
  59. 77 : ["Medium Force HOPO On", "markers"],
  60. 76 : ["Medium Orange", "notes_m", "O"],
  61. 75 : ["Medium Blue", "notes_m", "B"],
  62. 74 : ["Medium Yellow", "notes_m", "Y"],
  63. 73 : ["Medium Red", "notes_m", "R"],
  64. 72 : ["Medium Green", "notes_m", "G"],
  65. 64 : ["Easy Orange", "notes_e", "O"],
  66. 63 : ["Easy Blue", "notes_e", "B"],
  67. 62 : ["Easy Yellow", "notes_e", "Y"],
  68. 61 : ["Easy Red", "notes_e", "R"],
  69. 60 : ["Easy Green", "notes_e", "G"],
  70. 59 : ["Left Hand Highest", "animations"],
  71. 58 : ["Left Hand Highest 2", "animations"],
  72. 57 : ["Left Hand Highest 3", "animations"],
  73. 56 : ["Left Hand Highest 4", "animations"],
  74. 55 : ["Left Hand Highest 5", "animations"],
  75. 54 : ["Left Hand Highest 6", "animations"],
  76. 53 : ["Left Hand Highest 7", "animations"],
  77. 52 : ["Left Hand Highest 8", "animations"],
  78. 51 : ["Left Hand Highest 9", "animations"],
  79. 50 : ["Left Hand Highest 10", "animations"],
  80. 49 : ["Left Hand Highest 11", "animations"],
  81. 48 : ["Left Hand Highest 12", "animations"],
  82. 47 : ["Left Hand Highest 13", "animations"],
  83. 46 : ["Left Hand Highest 14", "animations"],
  84. 45 : ["Left Hand Highest 15", "animations"],
  85. 44 : ["Left Hand Highest 16", "animations"],
  86. 43 : ["Left Hand Highest 17", "animations"],
  87. 42 : ["Left Hand Highest 18", "animations"],
  88. 41 : ["Left Hand Highest 19", "animations"],
  89. 40 : ["Left Hand Lowest", "animations"]
  90. },
  91. "DRUMS" :
  92. {
  93. 127 : ["Cymbal Swell", "markers"],
  94. 126 : ["Drum Roll", "markers"],
  95. 124 : ["Drum Fill Green", "bre"],
  96. 123 : ["Drum Fill Blue", "bre"],
  97. 122 : ["Drum Fill Yellow", "bre"],
  98. 121 : ["Drum Fill Red", "bre"],
  99. 120 : ["Drum Fill Orange", "bre"],
  100. 116 : ["Overdrive", "od"],
  101. 112 : ["Toms Gems Green", "markers", "G"],
  102. 111 : ["Tom Gems Blue", "markers", "B"],
  103. 110 : ["Toms Gems Yellow", "markers", "Y"],
  104. 103 : ["Solo Marker", "solo"],
  105. 100 : ["Expert Green", "notes_x", "G"],
  106. 99 : ["Expert Blue", "notes_x", "B"],
  107. 98 : ["Expert Yellow", "notes_x", "Y"],
  108. 97 : ["Expert Red", "notes_x", "R"],
  109. 96 : ["Expert Kick", "notes_x", "O"],
  110. 88 : ["Hard Green", "notes_h", "G"],
  111. 87 : ["Hard Blue", "notes_h", "B"],
  112. 86 : ["Hard Yellow", "notes_h", "Y"],
  113. 85 : ["Hard Red", "notes_h", "R"],
  114. 84 : ["Hard Kick", "notes_h", "O"],
  115. 76 : ["Medium Green", "notes_m", "G"],
  116. 75 : ["Medium Blue", "notes_m", "B"],
  117. 74 : ["Medium Yellow", "notes_m", "Y"],
  118. 73 : ["Medium Red", "notes_m", "R"],
  119. 72 : ["Medium Kick", "notes_m", "O"],
  120. 64 : ["Easy Green", "notes_e", "G"],
  121. 63 : ["Easy Blue", "notes_e", "B"],
  122. 62 : ["Easy Yellow", "notes_e", "Y"],
  123. 61 : ["Easy Red", "notes_e", "R"],
  124. 60 : ["Easy Kick", "notes_e", "O"],
  125. 51 : ["Anim. Floort Tom RH", "animations"],
  126. 50 : ["Anim. Floor Tom LH", "animations"],
  127. 49 : ["Anim. TOM2 RH", "animations"],
  128. 48 : ["Anim. TOM2 LH", "animations"],
  129. 47 : ["Anim. TOM1 RH", "animations"],
  130. 46 : ["Anim. TOM1 LH", "animations"],
  131. 45 : ["Anim. SOFT CRASH 2 LH", "animations"],
  132. 44 : ["Anim. CRASH 2 LH", "animations"],
  133. 43 : ["Anim. RIDE LH", "animations"],
  134. 42 : ["Anim. RIDE CYM RH", "animations"],
  135. 41 : ["Anim. CRASH2 CHOKE", "animations"],
  136. 40 : ["Anim. CRASH1 CHOKE", "animations"],
  137. 39 : ["Anim. CRASH2 SOFT RH", "animations"],
  138. 38 : ["Anim. CRASH2 HARD RH", "animations"],
  139. 37 : ["Anim. CRASH1 SOFT RH", "animations"],
  140. 36 : ["Anim. CRASH1 HARD RH", "animations"],
  141. 35 : ["Anim. CRASH1 SOFT LH", "animations"],
  142. 34 : ["Anim. CRASH1 HARD LH", "animations"],
  143. 33 : ["Anim. ", "animations"],
  144. 32 : ["Anim. PERCUSSION RH", "animations"],
  145. 31 : ["Anim. HI-HAT RH", "animations"],
  146. 30 : ["Anim. HI-HAT LH", "animations"],
  147. 29 : ["Anim. SOFT SNARE RH", "animations"],
  148. 28 : ["Anim. SOFT SNARE LH", "animations"],
  149. 27 : ["Anim. SNARE RH", "animations"],
  150. 26 : ["Anim. SNARE LH", "animations"],
  151. 25 : ["Anim. HI-HAT OPEN", "animations"],
  152. 24 : ["Anim. KICK RF", "animations"]
  153. },
  154. "VOCALS" :
  155. {
  156. 116: ["Overdrive", "od"],
  157. 105: ["Phrase Marker", "phrase"],
  158. 97: ["Non-Displayed Percussion", "percussion"],
  159. 96: ["Displayed Percussion", "percussion"],
  160. 83: ["Highest Note B5", "notes"],
  161. 82: ["A#4", "notes"],
  162. 81: ["A4", "notes"],
  163. 80: ["G#4", "notes"],
  164. 79: ["G4", "notes"],
  165. 78: ["F#4", "notes"],
  166. 77: ["F4", "notes"],
  167. 76: ["E4", "notes"],
  168. 75: ["D#4", "notes"],
  169. 74: ["D4", "notes"],
  170. 73: ["C#4", "notes"],
  171. 72: ["C4", "notes"],
  172. 71: ["B3", "notes"],
  173. 70: ["A#3", "notes"],
  174. 69: ["A3", "notes"],
  175. 68: ["G#3", "notes"],
  176. 67: ["G3", "notes"],
  177. 66: ["F#3", "notes"],
  178. 65: ["F3", "notes"],
  179. 64: ["E3", "notes"],
  180. 63: ["D#3", "notes"],
  181. 62: ["D3", "notes"],
  182. 61: ["C#3", "notes"],
  183. 60: ["C3", "notes"],
  184. 59: ["B2", "notes"],
  185. 58: ["A#2", "notes"],
  186. 57: ["A2", "notes"],
  187. 56: ["G#2", "notes"],
  188. 55: ["G2", "notes"],
  189. 54: ["F#2", "notes"],
  190. 53: ["F2", "notes"],
  191. 52: ["E2", "notes"],
  192. 51: ["D#2", "notes"],
  193. 50: ["D2", "notes"],
  194. 49: ["C#2", "notes"],
  195. 48: ["C2", "notes"],
  196. 47: ["B1", "notes"],
  197. 46: ["A#1", "notes"],
  198. 45: ["A1", "notes"],
  199. 44: ["G#1", "notes"],
  200. 43: ["G1", "notes"],
  201. 42: ["F#1", "notes"],
  202. 41: ["F1", "notes"],
  203. 40: ["E1", "notes"],
  204. 39: ["D#1", "notes"],
  205. 38: ["D1", "notes"],
  206. 37: ["C#1", "notes"],
  207. 36: ["Lowest Note C1", "notes"],
  208. 1: ["Lyric Shift", "shift"],
  209. 0: ["Range Shift", "shift"]
  210. },
  211. "PROKEYS" :
  212. {
  213. 127 : ["TRILL MARKER", "markers"],
  214. 126 : ["GLISSANDO MARKER", "markers"],
  215. 124 : ["BRE", "bre"],
  216. 123 : ["BRE", "bre"],
  217. 122 : ["BRE", "bre"],
  218. 121 : ["BRE", "bre"],
  219. 120 : ["BRE", "bre"],
  220. 116 : ["Overdrive", "od"],
  221. 115 : ["Solo Marker", "solo"],
  222. 72: ["C4", "notes"],
  223. 71: ["B3", "notes"],
  224. 70: ["A#3", "notes"],
  225. 69: ["A3", "notes"],
  226. 68: ["G#3", "notes"],
  227. 67: ["G3", "notes"],
  228. 66: ["F#3", "notes"],
  229. 65: ["F3", "notes"],
  230. 64: ["E3", "notes"],
  231. 63: ["D#3", "notes"],
  232. 62: ["D3", "notes"],
  233. 61: ["C#3", "notes"],
  234. 60: ["C3", "notes"],
  235. 59: ["B2", "notes"],
  236. 58: ["A#2", "notes"],
  237. 57: ["A2", "notes"],
  238. 56: ["G#2", "notes"],
  239. 55: ["G2", "notes"],
  240. 54: ["F#2", "notes"],
  241. 53: ["F2", "notes"],
  242. 52: ["E2", "notes"],
  243. 51: ["D#2", "notes"],
  244. 50: ["D2", "notes"],
  245. 49: ["C#2", "notes"],
  246. 48: ["C2", "notes"],
  247. 9: ["Range A2-C4", "shift"],
  248. 7: ["Range G2-B3", "shift"],
  249. 5: ["Range F2-A3", "shift"],
  250. 4: ["Range E2-G3", "shift"],
  251. 2: ["Range D2-F3", "shift"],
  252. 0: ["Range C2-C3", "shift"]
  253. },
  254. "PROGUITAR" :
  255. {
  256. 127 : ["TRILL MARKER", "markers"],
  257. 126 : ["TREMOLO MARKER", "markers"],
  258. 125 : ["BRE", "bre"],
  259. 124 : ["BRE", "bre"],
  260. 123 : ["BRE", "bre"],
  261. 122 : ["BRE", "bre"],
  262. 121 : ["BRE", "bre"],
  263. 120 : ["BRE", "bre"],
  264. 116 : ["Overdrive", "od"],
  265. 115 : ["Solo Marker", "solo"],
  266. 108 : ["LEFT HAND POSITION", "fhp"],
  267. 104 : ["Expert Arpeggio Marker", "markers"],
  268. 103 : ["Expert Slider Marker", "markers"],
  269. 102 : ["Expert Force HOPO On", "markers"],
  270. 101 : ["Expert E String (High)", "notes_x"],
  271. 100 : ["Expert B String", "notes_x"],
  272. 99 : ["Expert G String", "notes_x"],
  273. 98 : ["Expert D String", "notes_x"],
  274. 97 : ["Expert A String", "notes_x",],
  275. 96 : ["Expert E String (Low)", "notes_x"],
  276. 80 : ["Expert Arpeggio Marker", "markers"],
  277. 79 : ["Hard Slider Marker", "markers"],
  278. 78 : ["Hard Force HOPO On", "markers"],
  279. 77 : ["Hard E String (High)", "markers"],
  280. 76 : ["Hard B String", "notes_h"],
  281. 75 : ["Hard G String", "notes_h"],
  282. 74 : ["Hard D String", "notes_h"],
  283. 73 : ["Hard A String", "notes_h"],
  284. 72 : ["Hard E String (Low)", "notes_h"],
  285. 55 : ["Medium Slider Marker", "markers"],
  286. 54 : ["Medium Force HOPO On", "markers"],
  287. 53 : ["Medium E String (High)", "markers"],
  288. 52 : ["Medium B String", "notes_m"],
  289. 51 : ["Medium G String", "notes_m"],
  290. 50 : ["Medium D String", "notes_m"],
  291. 49 : ["Medium A String", "notes_m"],
  292. 48 : ["Medium E String (Low)", "notes_m"],
  293. 31 : ["Easy Slider Marker", "markers"],
  294. 29 : ["Easy E String (High)", "notes_e"],
  295. 28 : ["Easy B String", "notes_e"],
  296. 27 : ["Easy G String", "notes_e"],
  297. 26 : ["Easy D String", "notes_e"],
  298. 25 : ["Easy A String", "notes_e"],
  299. 24 : ["Easy E String (Low)", "notes_e"],
  300. 17 : ["Hide Chord Names", "markers"],
  301. 15 : ["Eb root note", "root_notes"],
  302. 14 : ["D root note", "root_notes"],
  303. 13 : ["Db root note", "root_notes"],
  304. 12 : ["C root note", "root_notes"],
  305. 11 : ["B root note", "root_notes"],
  306. 10 : ["Bb root note", "root_notes"],
  307. 9 : ["A root note", "root_notes"],
  308. 8 : ["Ab root note", "root_notes"],
  309. 7 : ["G root note", "root_notes"],
  310. 6 : ["Gb root note", "root_notes"],
  311. 5 : ["F root note", "root_notes"],
  312. 4 : ["E root note", "root_notes"]
  313. }
  314. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement