Forums > MaxMSP

Drawing a line that responds to sound

May 05 2011 | 8:40 am


I’m trying to make a patch that will draw a continuous line as a response
to sound input from a microphone. I.e. if there is no sound the line will just move forward at a constant level, if there is sound at a high pitch the line will rise at an appropriate angle, if there is a low pitch the line will go down…any pointers would be greatly appreciated :)

May 05 2011 | 10:16 am

Here’s one way to do it:

-- Pasted Max Patch, click to expand. --

You need to adjust it, though, to suit the range of incoming pitches, and also sensitivity issues etc etc (so, perhaps only count a pitch if it is above a certain dynamic etc).

NOTE: You need the [pitch~] external, which you can download here: . These might also be useful, if you haven’t got them already: (probably [fiddle~] in your case)

May 05 2011 | 11:59 am

Okay well I’ve managed to do this so far. But it’s not really working. Can anyone explain clearly how fiddle~ works?

  1. drawsound.maxpat
May 05 2011 | 12:04 pm

the pitch~ external isn’t working…I’m getting this error message:

this application failed to start because fftw3.ll was not found. re-installing the application may fix this problem.

…also, how do i open the patcher that you’ve uploaded? I’m sorry, I’m new at this.

May 05 2011 | 12:13 pm

To install the [pitch~] external, copy it to Applications -> Max5 -> Cycling74 -> max-externals (or create a folder).

To open the patcher I posted, copy the code and paste it into a new MaxMSP window.

Did you take a look at the [fiddle~] helpfile? It is a bit complicated, [pitch~] is based on [fiddle~] and is basically a more digestible version of it, focusing on pitches (but not as versatile).

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP