Skip to content

Commit

Permalink
Revert "Update MIDI2LR_Client.lua"
Browse files Browse the repository at this point in the history
This reverts commit 31c029c in an attempt to reverse an apparent regression in Temperature handling.
  • Loading branch information
rsjaffe committed Oct 25, 2015
1 parent 9818a04 commit d24f025
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/LRPlugin/MIDI2LR.lrdevplugin/MIDI2LR_Client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ local LAST_PARAM = ''
local function midi_lerp_to_develop(param, midi_value)
-- map midi range to develop parameter range
local min,max = LrDevelopController.getRange(param)
if(param == 'Temperature' and max > 8000) then
min = 2000
max = 8000
if(param == 'Temperature' and max > 9000) then
min = 3000
max = 9000
end

local result = midi_value/127 * (max-min) + min
Expand Down

0 comments on commit d24f025

Please sign in to comment.