BrandonSpendlove

Kontakt - Merge of the 2 Scripts

Apr 8th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. on init
  2. make_perfview
  3. set_ui_height_px(305)
  4.  
  5. declare ui_button $purge
  6. set_text($purge, "Pots&Pans - Hits") {This control will purge the first 5 groups}
  7.  
  8. declare ui_button $purge2
  9. set_text($purge2, "Pots&Pans - Felt") {This control will purge the last 5 groups}
  10.  
  11. declare ui_knob $Delay1(0,1000000,1000000)
  12. move_control ($Delay1, 1,1)
  13. declare ui_knob $Delay2(0,1000000,1000000)
  14. move_control ($Delay2, 2,1)
  15. declare ui_knob $Flanger(0,1000000,1000000)
  16. move_control ($Flanger, 3,1)
  17. declare ui_knob $Phaser(0,1000000,1000000)
  18. move_control ($Phaser, 4,1)
  19. declare ui_knob $Reverb(0,1000000,1000000)
  20. move_control ($Reverb, 5,1)
  21.  
  22. end on
  23.  
  24. on ui_control ($purge)
  25.  
  26. if ($purge = 1)
  27.  
  28. {CODE: Purge_group(group_idx, state)}
  29. {Group_idx is the group number, state is off/on... 1 being "Deactivated"}
  30.  
  31. purge_group(0,1)
  32. purge_group(1,1)
  33. purge_group(2,1)
  34. purge_group(3,1)
  35. purge_group(4,1)
  36.  
  37. else
  38.  
  39. purge_group(0,0)
  40. purge_group(1,0)
  41. purge_group(2,0)
  42. purge_group(3,0)
  43. purge_group(4,0)
  44.  
  45. end if
  46.  
  47. end on
  48.  
  49. on ui_control ($purge2)
  50.  
  51. if ($purge2 = 1)
  52.  
  53. purge_group(5,1)
  54. purge_group(6,1)
  55. purge_group(7,1)
  56. purge_group(8,1)
  57. purge_group(9,1)
  58.  
  59. else
  60.  
  61. purge_group(5,0)
  62. purge_group(6,0)
  63. purge_group(7,0)
  64. purge_group(8,0)
  65. purge_group(9,0)
  66.  
  67. end if
  68.  
  69. end on
  70.  
  71.  
  72. on ui_control ($Delay1)
  73.  
  74. set_engine_par($ENGINE_PAR_SENDLEVEL_0,$Delay1,-1,7,-1)
  75.  
  76. end on
  77.  
  78.  
  79. on ui_control ($Delay2)
  80.  
  81. set_engine_par($ENGINE_PAR_SENDLEVEL_1,$Delay2,-1,7,-1)
  82. end on
  83.  
  84. on ui_control ($Flanger)
  85.  
  86. set_engine_par($ENGINE_PAR_SENDLEVEL_2,$Flanger,-1,7,-1)
  87.  
  88. end on
  89.  
  90. on ui_control ($Phaser)
  91.  
  92. set_engine_par($ENGINE_PAR_SENDLEVEL_3,$Phaser,-1,7,-1)
  93.  
  94. end on
  95.  
  96. on ui_control ($Reverb)
  97.  
  98. set_engine_par($ENGINE_PAR_SENDLEVEL_4,$Reverb,-1,7,-1)
  99.  
  100. end on
Advertisement
Add Comment
Please, Sign In to add comment