So, I made a new, updated version of this sketch (which, BTW, check out my amazing newfound embedding processing sketch w/ PImage skills):
and I made it controllable via this little potentiometer on my ‘duino! YESSSSSSSSSS!The more you turn the knob, the higher the volume of sonars (echolocations? gosh these plurals are awkwards):
IT’S ALL COMING TOGETHER BWUAHAHAHAHAHAHAH!
Also, I earned a valuable array trick called “subset” to do the disappearing waves trick. Basically, the sketch has a class called Sonar and an array called sonars, and this handy line of code:
makes the sonar waves (rays?) disappear after four bounces. I think it’s kinda like the opposite of the shorten function, but don’t quote me on that. In fact, please correct me if that’s misinformation?