iii debugging tips #9
Replies: 3 comments 5 replies
-
it seems like there's an underlying issue with grid keys getting lost, so i'll debug this ahead of checking out your script as a test case. thanks for submitting it. |
Beta Was this translation helpful? Give feedback.
-
So I updated to the latest firmware, and it seems like I get syntax errors everytime I try to upload this script to the grid. I know that there are no syntax errors due to successful execution through seamstress. I wonder if the data for larger scripts is not being uploaded properly to the grid? |
Beta Was this translation helpful? Give feedback.
-
ah, i reduced the script buffer to 16k during testing to assess the heap size. i'll push it back up to 32k. also, just an observation: your test script to me has a huge amount of abstraction--- lots of code to do simple things. i am not completely confident that this will run well (if at all how you want) on such a constrained CPU and memory footprint. i might suggest considering some of the more lightweight approaches to script building similar to what we present in the norns studies. |
Beta Was this translation helpful? Give feedback.
-
I'm curious what debugging tips people have discovered while programming with
iii
.I'm particularly confused at moments when even
ps(...)
doesn't run in thegrid(x, y, z)
callback.Here's an example script which demonstrates this issue:
https://gist.github.com/vijaymarupudi/1816d9a9aeefe898864fb054a26f55cc (24680 bytes)
This script is written so that it can run unmodified in both seamstress (and norns, I think) and iii. This is my debugging tip: it allows me to test whether the issues are in my logic or the platform specific parts. It also reduces the time taken to develop a script as I don't have to go through
diii
to upload a script and test it.When you run the script in seamstress, you see 16 buttons, each 8 buttons long. Pressing on each button illuminates the entire column.
A proof of concept script with only a single column runs fine in both environments.
However, when I run the 16 column script in
iii
, it stops working after the first, second, or third button press, and the grid becomes unresponsive to further script uploads. I've tried reducing the computational load by reducing the frame rate (currently 24fps, line 1012), but it doesn't seem to help.Would appreciate any tips on how to diagnose errors in such circumstances!
Beta Was this translation helpful? Give feedback.
All reactions