Skip to content

Commit

Permalink
Playtime: Make good use of play and record button on APC devices
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jun 5, 2024
1 parent 91f0faf commit 33e9515
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playtime-clip-engine
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export type ApcPlaytimePresetConfig = {
}

function module.create_compartment(config: ApcPlaytimePresetConfig): realearn.Compartment
-- TODO-high-playtime-before-release Make record and play buttons control Playtime's sequencer

-- Aliases

local partial_mapping = util.partial_mapping
Expand Down Expand Up @@ -590,10 +588,11 @@ function module.create_compartment(config: ApcPlaytimePresetConfig): realearn.Co
-- Mappings

local mappings = {
name("Play/stop") + no_mod + button("play") + toggle() + transport_action("PlayStop"),
name("Play/stop") + no_mod + button("play") + toggle() + clip_matrix_action("PlayIgnitedOrEnterSilenceMode"),
name("Shift modifier") + button("shift") + set_param(params.shift.index),
name("Sustain modifier") + button("sustain") + set_param(params.sustain.index),
name("Undo") + shift + button("play") + clip_matrix_action("Undo"),
name("Record") + no_mod + button("record") + clip_matrix_action("SmartRecord"),
name("Redo") + shift + button("record") + clip_matrix_action("Redo"),
name("Build scene") + sustain + button("record") + clip_matrix_action("BuildScene"),
name("Switch send")
Expand Down
4 changes: 2 additions & 2 deletions resources/main-presets/mft-to-clip-engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ function clip_quantize(col, row)
}
end

-- TODO-high-playtime-before-release Make short press toggle and long press be momentary.
-- TODO-high-playtime-after-release Make short press toggle and long press be momentary.
-- Problem 1: "Fire after timeout" somehow doesn't have an effect.
-- Problem 2: "Fire after timeout" doesn't switch off when button released.
-- Problem 2: "Fire after timeout" doesn't switch off when button released (in new versions it does!)
function mode_button(button_id, mode)
local target_value = mode.index / (mode_count - 1)
return {
Expand Down

0 comments on commit 33e9515

Please sign in to comment.