Sound draw Line

lalalali's icon

Hi,

I am trying to draw an horizontal line according a live recording,
the line translate the sound (so it varies (thickness, length, etc.. according
how loud, etc.. is the sound)
anyone know how to do it?

Thank for your help,

brendan mccloskey's icon

First you must determine which features you wish to extract from the audio source: amplitude, pitch, spectral content? When you know this, then there are tools in MaxMSP that will allow you access to this data.

Brendan

lalalali's icon

I would like to extract the amplitude and the pitch,
how should i extract its? What is the tool which allow the access to the data?

Thank you :)

brendan mccloskey's icon

here's a list of helpful externals:

if you can't get hold of the most important one (fiddle~), I'll try attaching it below

Brendan

1932.fiddle.mxe
mxe
llumen's icon

I've made this patch already where, pitch is vertical, amplitude thickness and a lot of other stuff, using xsense sensor to do opacity and so on, It was part processing, part max, but I've been redoing it in max solely. The best pitchtracker around according to me is sigmund~

if you want to further discuss this, you can contact me oflist at pieter.coussement at ugent dot be

(it's not that I don' want to share the patch, but it has some restrictions due to our research group's involvement
best

pieter

lalalali's icon

thanks!
fiddle works well,
i am now trying to draw a line,
i manage to be able to chage the width of it but struggle to change the length,i know rthat i have to touch the message 'line 1. 0 0' the '1.' represent the length (discover that by changing it)
find attached the patch,
any idea of doing it?

1933.drawline.maxpat
Max Patch
brendan mccloskey's icon

to dynamically change a message like this, try [pack 1. 0 0] -> [prepend line], in place of the line message

Brendan

lalalali's icon

thank you Brendan
could you please look at my patch,
so it works but note really smoothly,
like according the pitch, the length of the line which is drawing change not really well,
how could i make it better?
find attached the patch
merci

1934.TESTfiddle.maxhelp
maxhelp
lalalali's icon

sorry here is the right file

brendan mccloskey's icon

I'm afraid I'm not a Jitter expert (or a Max one, while we're at it!); to move smoothly between control values, use [float] --> [pack f 100.] --> [line 0.] --> smoothed values; in this examples the value 100 gives [line] its interpolation time in ms:

Max Patch
Copy patch and select New From Clipboard in Max.

HTH

Brendan