monome / norns

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

crow: input[x].query() is "unused event" #1555

Closed dndrks closed 2 years ago

dndrks commented 2 years ago

reported at lines (original), sending crow input[x].query() messages results in a returned "unused event" message with the relevant data printed to matron but not made available to the script.

test script, adopted from https://monome.org/docs/crow/norns/#none:

function process_stream(v)
  print("input stream: "..v)
end

function init()
  crow.input[1].stream = process_stream
  crow.input[1].mode("none")
  crow.input[1].query()
end

function key(n,z)
  if n == 3 and z == 1 then
    crow.input[1].query()
  end
end

pressing K3 with an LFO patched to input 1 returns:

unused event: ^^stream(1,0.950221)
unused event: ^^stream(1,3.10078)
unused event: ^^stream(1,3.93695)
unused event: ^^stream(1,4.40146)
unused event: ^^stream(1,4.78264)
unused event: ^^stream(1,5.16265)
unused event: ^^stream(1,5.52015)
unused event: ^^stream(1,6.0752)

on druid, this just typically displayed at the top-left of the terminal:

image

@trentgill , obv know you're putting deserved focus elsewhere at the moment, but lmk if there's anything i can further verify or test on my side!

dndrks commented 2 years ago

fixed by https://github.com/monome/crow/pull/463 !