crow input modes not changing? #910
Comments
|
i am not able to replicate this bug. can you post a snippet? also crow will report lua errors back to norns in the maiden window. |
|
thanks for taking a look @tehn - sorry, I should have added a quick script to repro instead of a PR. try this:
On my machine, only gates at input 2 get counted. |
|
sortof good news is that your script works fine on my machine. is your crow on v1.0.0 ? and i just pushed some changes to the crow code on norns. i'll have an update out tomorrow, or you can ssh in, pull the changes and re-run |
|
mysterious! I did need to update crow, but no change in behavior from norns. |
|
holy moly--- are you saying it's working as expected on druid? |
|
yep -
behaves as I would expect on druid. a real head-scratcher! |
|
I think I've resolved this? My engineering brain still wants to figure out what the underlying issue is, and how I managed to accidentally upload a script that disabled only one of the inputs, but I'm glad it's working. Thanks so much for the help, and for making this amazing device! Closing the issue. |
I found that crow's input[1] would not respond to triggers in
changemode, even though I could validate with input[1].query() that the input signal was rising above the threshold (and back below the hysteresis level); meanwhile, input[2] responds just fine to the same signals.More details in this thread: https://llllllll.co/t/crow-help-norns/25863/23, including a few other folks with similar issues.
I think what is going on is - crow is disregarding the
.mode()message that norns sends, because crow's method is called set_mode():https://github.com/monome/crow/blob/master/lua/input.lua#L39
whereas the norns crow.input.mode() method definitely sends
.mode()in the command text:https://github.com/monome/norns/blob/master/lua/core/crow.lua#L56
So I think, as it is now, norns cannot set input modes at all for crow, but people have been masking it by relying on input 2 being set to change mode via First.
A fix might be as easy as adjust the command to run set_mode()? I don't know either codebase well but I can make an initial PR if that helps.
The text was updated successfully, but these errors were encountered: