Skip to content

'window' input mode doesn't use hysteresis on change #494

@dndrks

Description

@dndrks

repro script (confirmed both with self-patching output 1 to input 2 and sending from another module):

-- self-patch output 1 to input 2
function init()
  input[2].mode('window',{-2,1,2,4},0.1)
end

input[2].window = function(c,d)
  if d then
    print('hello')
  else
    print('goodbye')
  end
end

when we hit any of the window values (eg. 2V), there's a deluge of salutations/valedictions printed. i assumed that the hysteresis argument would buffer against this, but perhaps i'm misunderstanding its function? <333

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions