hi @trickyflemming,
iām getting an error: init with this error messag in maiden:
do you know what iām doing wrong?
stack traceback:
[C]: in function āerrorā
/home/we/norns/lua/core/paramset.lua:194: in function ācore/paramset.lookup_paramā
/home/we/norns/lua/core/paramset.lua:153: in function ācore/paramset.getā
/home/we/dust/code/gemini/gemini.lua:279: in global āarc_redrawā
/home/we/dust/code/gemini/gemini.lua:293: in field āeventā
/home/we/norns/lua/core/metro.lua:165: in function </home/we/norns/lua/core/metro.lua:162>
lua:
/home/we/norns/lua/core/paramset.lua:194: invalid paramset index: jitterL
I think it tosses that error briefly because arc starts redrawing before the parameters are fully initialized. Does it still work otherwise? I need to push a fix when I find a chance.
Iāve been playing around with it and noticed that the default preset doesnāt seem to load when starting it.
Also, is there a way to reduce how sensitive the left most arc encoder is? It can be tricky to switch params.
If you donāt have time to work on these, they are very minor. It may be something I could contribute to at some point when I can take a look at the Lua code.
Yes, sorry! Just had a kid a month ago and am very busy. Iāll accept pull requests.
Exception error: The Arc timer is starting before the main thread. Just move one to after the other and that should fix it.
First knob being super jumpy: This will require more lines. Essentially, if a delta is sensed, it will change pages. What should happen is that you should multiply the page counter by 10 or so (letās say n), and then selecting the page by dividing the current delta count by n (bounding the delta count to [0, n*pages]), if that makes sense.
I get a new exception now, which is curious because it says the value of phase_poll is nil but it seems this value originates in the engine. I made a diff of the change that caused this new exception. I donāt really understand whatās going on here and Iāve only been looking at the code for 30 minutes
Update, I think I might have found a bug in how crone loads engines. Getting coffee before I look into it more
# script init
### SCRIPT ERROR: init
/home/we/dust/code/gemini/gemini.lua:28: attempt to index a nil value (local 'phase_poll')
stack traceback:
/home/we/norns/lua/core/norns.lua:185: in metamethod '__newindex'
/home/we/dust/code/gemini/gemini.lua:28: in function 'init'
/home/we/norns/lua/core/script.lua:71: in function 'core/script.init'
[C]: in function 'xpcall'
/home/we/norns/lua/core/norns.lua:186: in field 'try'
/home/we/norns/lua/core/engine.lua:83: in function </home/we/norns/lua/core/engine.lua:82>
>> reading PMAP /home/we/dust/data/gemini/gemini.pmap
update: it looks like the engine canāt be found and crone defaults to loading the previously successful engine, which in my case is FM7, which doesnāt have a poll with the correct name
/me reboots windows
WARNING: Bus has already been freed
WARNING: Bus has already been freed
FAILURE IN SERVER /n_free Node 1018 not found
warning: didn't find engine: Engine_Gemini
Rebooting āfixed the problemā, though this is a weird one. Moving over to the development thread. Meanwhile, I made a PR with my arc fix. Thanks for the great script!
Iād somehow missed this script as it didnt seem to make many ābest ofā lists when i was trawling through here initially - but itās easily one of my favourite now, completely amazing results from it