We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am attempting to warp certain vertices of a PShape on beat from music with minim. I want vertices on the left to bend out left, vertices on right to bend out right, and so on. I have a very complex PShape, so I'm kind of lost on how I should do this. Any help is much appreciated! Thanks.
Answers
also, ideally I'd like to find a way to do the same thing with midi data (like note-on from a kick drum) to do the same thing.
Also, I received some advice this but I'm confused as to how to implement it.
"To make a deformation effect, try adding to each vertices, a normalized vector from the center of the obj to the vertex and then multiply it by a frequency of the sound, this frequency is chosen by mapping and rounding y value of the vertex to the number of frequencies. ie. freqIndex = int( map(vertex.y, minY, maxY, 0, nbOfFreqs) );"
Can someone explain the code necessary to make that happen... ?