Advertisement
BrandonSpendlove

Kontakt - Keyswitching Messages

Apr 11th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. on init
  2.  
  3. declare ui_button $keyswitch1
  4. declare ui_button $keyswitch2
  5. declare ui_button $keyswitch3
  6.  
  7. $keyswitch1 := 1
  8. $keyswitch2 := 0
  9. $keyswitch3 := 0
  10.  
  11. hide_part($keyswitch1, $HIDE_WHOLE_CONTROL)
  12. hide_part($keyswitch2, $HIDE_WHOLE_CONTROL)
  13. hide_part($keyswitch3, $HIDE_WHOLE_CONTROL)
  14.  
  15. end on
  16.  
  17. on note
  18.  
  19. select ($EVENT_NOTE)
  20.  
  21. case 24
  22.  
  23. $keyswitch1 := 1
  24. $keyswitch2 := 0
  25. $keyswitch3 := 0
  26.  
  27. case 26
  28.  
  29. $keyswitch1 := 0
  30. $keyswitch2 := 1
  31. $keyswitch3 := 0
  32.  
  33. case 28
  34.  
  35. $keyswitch1 := 0
  36. $keyswitch2 := 0
  37. $keyswitch3 := 1
  38.  
  39. end select
  40.  
  41. if ($keyswitch1 = 1)
  42.  
  43. select ($EVENT_NOTE)
  44.  
  45. case 60
  46.  
  47. message("Sustain")
  48.  
  49. end select
  50.  
  51. end if
  52.  
  53. if ($keyswitch2 = 1)
  54.  
  55. select ($EVENT_NOTE)
  56.  
  57. case 60
  58.  
  59. message("Trem...")
  60.  
  61. end select
  62.  
  63. end if
  64.  
  65. if ($keyswitch3 = 1)
  66.  
  67. select ($EVENT_NOTE)
  68.  
  69. case 60
  70.  
  71. message("Short")
  72.  
  73. end select
  74.  
  75. end if
  76.  
  77. end on
  78.  
  79. on release
  80.  
  81. message("")
  82.  
  83. end on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement