@lcchy, confirming that commenting out references to audioop allows Eyesy to run as normal. I just did this:
def recv() :
global inp, etc, trig_this_time, trig_last_time, sin
# get audio
l,data = inp.read()
peak = 0
while l:
for i in range(0,100) :
try :
avg = 0
#avg = audioop.getsample(data, 2, i * 3)
#avg += audioop.getsample(data, 2, (i * 3) + 1)
#avg += audioop.getsample(data, 2, (i * 3) + 2)
#avg = avg / 3
# scale it
#avg = int(avg * etc.audio_scale)
if (avg > 20000) :
trig_this_time = time.time()
It also allows ânormalâ use of Sidekick for me, i.e. using the 3 buttons to invoke Sidekick and switch to say Norns (though, Norns tries to use the HDMI cable which, again, cute and hilarious!) But then I can switch back to Eyesy, and Eyesy loads as normal.
So, I would confirm youâre probably right, there is an issue somewhere with audioop
Update: set my 16n to send appropriate cc and messed around. Responding to audio is obviously the goal, but this is still fun
@lcchy thanks for your work on this!