Reply To: why is this method looping through several times?

Home Forums General Programming why is this method looping through several times? Reply To: why is this method looping through several times?

#83672
human fly
Participant
  • Topics: 124
  • Replies: 1070
  • Total: 1194
  • ★★★★

note that i use the term debugging very loosely, don’t
know exactly what that means technically. i’m ‘fault-finding’.

it seems that as ‘keyselct’ is global, ie: not local
and i’m looking for an index in a ‘global’ table, with:
(_G[ "tbl_keyassgn"..keyselct ])[ i ]
there is an issue there. as these are created on start-up,
they already exist, and not nil.

i will try it with fewer iterations to see what happens.
nb: this does not seem to affect the operation of the UI;
but sometimes there does seem to be a refresh delay, as if
‘something’ as going on. generally, it seems fast enough.
but if this is going to cause problems further down the line,
with sysex messages triggered 20x, obviously that is no good.

i will think about the structure of my code again. it’s definitely
that bit that’s doing it. i’ll look to see if it happens elsewhere.
all the other console commands i’ve re-activated only trigger once.

Ctrlr