I currently am storing numbers in a list. The numbers are in sets of 3s for representing Pitch, Volume, Pan. For example, [70 127 .5] is one set and each list has multiple sets. I would like to be able to remove or skip reading a set if the first number in the set (Pitch) matches one already in the set. For example in [34 127 .5, 39 127 .1, 34 127 .7] the last set would be skipped or removed (when reading the list) since the first number (34) matches the first number in the first set. Essentially, I don't want any duplicate Pitch's to go through.
Is there a way to sort lists in sets of 3? If so, I could just use the 'change' object. How would I best do this. I thought about using an array or table, storing the set only if the first number wasn't already utilized in the array, but I don't know how I would handle all 3 numbers (3-axis) in one array.
Any thoughts?