Warp 3D PShape's vertices from frequency/beat? (Minim)

edited April 2015 in How To...

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.

Tagged:

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... ?

Sign In or Register to comment.