monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
633 stars 147 forks source link

Binary params now have a value of 1 rather than 0 #1784

Closed dstroud closed 5 months ago

dstroud commented 5 months ago

This behavior seems to have been introduced by PR improve binary-style params #1781

Initializing a binary param per the example script below now results in a value of 1 rather than 0. This is causing issues because it results in the param being banged when a .pset is loaded.

function init()
  params:add_binary("binary", "binary", "trigger")
  params:set_action("binary", function(val) print("BINARY PARAM ACTION FIRING: VAL " .. val) end)  
  print("BINARY PARAM INDEX " .. params:get("binary"))
end