Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'window' input mode behaving unexpectedly #494

Open
dndrks opened this issue Oct 30, 2024 · 1 comment
Open

'window' input mode behaving unexpectedly #494

dndrks opened this issue Oct 30, 2024 · 1 comment

Comments

@dndrks
Copy link
Member

dndrks commented Oct 30, 2024

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

@xmacex
Copy link

xmacex commented Oct 31, 2024

I tried the above script via druid, yes I get the same behavior. I put a little counter inside the handler before the if statement, and that is unstable. Many events are happening during physically plugging or unplugging the jack, something like 5-20 but once a few dozen. Not as many salutations/valedictions¹ get printed.

Newest crow firmware and druid 1.1.5 running on norns, I reset my norns before trying.

¹ I learned a word today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants