Anyone good with javascript know how to group together and analyze lists to produce a brand new list out of the [js] outputs? If you look at the printed "fret" data to the far left (now labeled by string), you can see how each new group of lists (separated by spaces to show button presses and releases) starts with a list in which 35 is always the first element. I need to group these together so I can analyze all the lists that come in with each button press and release, and use that information to deduce which fret is being pushed, then I can translate that into a new 2-element list (first element = string # 1-6 and second element being the fret number 0-17).
As I said above, the troublesome strings will be the A and B strings, because the javascript will need to look for the presence of two lists in order to distinguish between frets 1-7 and 9-17). Not sure why the wireless data is set up like this, but at least there is a way to distinguish the different frets.
Thanks, any help at all would be awesome... I'm completely new to scripting and this kind of data analysis is way too far over my head.