timcapelle

TouchOSC GridPie.lua

Dec 4th, 2011
428
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[----------------------------------------------------------------------------
  2. -- Duplex.Launchpad
  3. ----------------------------------------------------------------------------]]--
  4.  
  5. -- setup GridPie for TouchOSC
  6.  
  7. duplex_configurations:insert {
  8.  
  9.   -- configuration properties
  10.   name = "GridPie",
  11.   pinned = true,
  12.  
  13.   -- device properties
  14.   device = {
  15.     class_name = "TouchOSC",
  16.     display_name = "TouchOSC",
  17.     device_prefix = nil,
  18.     device_address = "10.0.0.2",
  19.     device_port_in = "8001",
  20.     device_port_out = "8081",
  21.     control_map = "Controllers/TouchOSC/Controlmaps/TouchOSC.xml",
  22.     thumbnail = "Controllers/TouchOSC/TouchOSC.bmp",
  23.     protocol = DEVICE_OSC_PROTOCOL,
  24.   },
  25.  
  26.   applications = {
  27.     Mixer = {
  28.       mappings = {
  29.         levels = {
  30.           group_name = "1_Faders",
  31.         },
  32.         mute = {
  33.           group_name = "1_Buttons",
  34.         },
  35.         master = {
  36.           group_name = "1_Fader",
  37.         }
  38.       },
  39.     },
  40.     Recorder = {
  41.       mappings = {
  42.         recorders = {
  43.           group_name = "2_Buttons",
  44.         },
  45.         sliders = {
  46.           group_name = "2_TriggerPad",
  47.         },
  48.       },
  49.       options = {
  50.       }
  51.     },
  52.     GridPie = {
  53.       mappings = {
  54.         grid = {
  55.           group_name = "4_Grid",
  56.         },
  57.       },
  58.       options = {
  59.         sequence_mode = 2,  -- to support "togglebutton" input
  60.         --FOLLOW_POS = 1,
  61.         --POLYRHYTHMS = 1,
  62.       }
  63.     }
  64.   }
  65. }
RAW Paste Data