Tools/com.renoise.Duplex.xrnx/Duplex/Controllers/LaunchpadMiniMK3/Configurations/LaunchpadMiniMK3_Keyboard.lua
--[[----------------------------------------------------------------------------
-- Duplex.Launchpad 
----------------------------------------------------------------------------]]--

duplex_configurations:insert {

  -- configuration properties
  name = "Keyboard",
  pinned = true,

  -- device properties
  device = {
    class_name = "LaunchpadMiniMK3",
    display_name = "Launchpad Mini MK3",
    device_port_in = "Launchpad Mini MK3 MIDI 2",
    device_port_out = "Launchpad Mini MK3 MIDI 2",
    control_map = "Controllers/LaunchpadMiniMK3/Controlmaps/LaunchpadMiniMK3_Keyboard.xml",
    thumbnail = "Controllers/LaunchpadMiniMK3/LaunchpadMiniMK3.bmp",
    protocol = DEVICE_PROTOCOL.MIDI,
  },

  applications = {
    KeypadsLeft = {
      application = "Keyboard",
      mappings = {
        key_grid = {
          group_name = "KeypadsLeft"
        },
      },
      palette = {
        key_pressed = {
          color = {0xFF,0xFF,0x80}
        },
        key_released = {
          color = {0x40,0x00,0x40}
        },
        key_released_content = {
          color = {0x80,0x40,0x40}
        },
        key_released_selected = {
          color = {0xFF,0x80,0x40}
        },
      },
      options = {
        base_octave = 4
      },
      hidden_options = {  -- display minimal set of options
        "channel_pressure","pitch_bend","release_type","button_width","button_height"
      },
    },
    KeypadsRight = {
      application = "Keyboard",
      mappings = {
        key_grid = {
          group_name = "KeypadsRight"
        },
      },
      palette = {
        key_pressed = {
          color = {0xFF,0xFF,0xFF}
        },
        key_released = {
          color = {0x00,0x40,0x40}
        },
        key_released_content = {
          color = {0x40,0x80,0x40}
        },
        key_released_selected = {
          color = {0x80,0xFF,0x40}
        },
      },
      options = {
        base_octave = 5
      },
      hidden_options = {  -- display minimal set of options
        "channel_pressure","pitch_bend","release_type","button_width","button_height"
      },
    },
    KeyboardLarge = {
      application = "Keyboard",
      mappings = {
        key_grid = {
          group_name = "LargeGrid",
          --orientation = ORIENTATION.VERTICAL,
        },
        octave_down = {
          group_name = "Controls",
          index = 2
        },
        octave_up = {
          group_name = "Controls",
          index = 1
        },
        volume = {
          group_name = "TriggersAlt",
          orientation = ORIENTATION.VERTICAL,
          index = 1
        },
        all_notes_off = {
          group_name = "Controls",
          index = 8
        },
        cycle_layout = {
          group_name = "Controls",
          index = 10
        },

      },
      palette = {
        key_pressed = {
          color = {0xFF,0x00,0xFF}
        },
        key_released = {
          color = {0x00,0x00,0x00}
        },
        key_released_content = {
          color = {0x40,0x00,0x40}
        },
        key_released_selected = {
          color = {0xC0,0x00,0x00}
        },
      },
      options = {
      },
      hidden_options = {  -- display minimal set of options
        "channel_pressure","pitch_bend","release_type","button_width","button_height","mod_wheel","velocity_mode","keyboard_mode"
      },
    },
    Instrument = {
      mappings = {
        prev_scale = {
          group_name = "Controls",
          index = 3,
        },
        next_scale = {
          group_name = "Controls",
          index = 4,
        },
        set_key = {
          group_name = "Triggers",
          orientation = ORIENTATION.VERTICAL
        },
      }
    },
    TrackSelector = {
      mappings = {
        prev_track = {
          group_name = "Controls",
          index = 5,
        },
        next_track = {
          group_name = "Controls",
          index = 6,
        },

      }
    },
    Transport = {
      mappings = {
        edit_mode = {
          group_name = "Controls",
          index = 9,
        },
      },
    },
  }
}

