Waveform from clip?? Needin help. (^_^)

alersito's icon

Hi everybody. I know how to fire a clip. But i would like to know if its possible to see the waveform of this clip in the waveform object.

thanxxx!!

1704.Fireaclip.jpg
jpg
broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

A possible solution would be recording the clip into a buffer like this.

alersito's icon

But with this way you need play the clip before. i would like fire the clip and in this moment have a preview of all the waveform.

This is like when you use traktor or virtual dj. You put the song on the deck A or B and you have the all waveform of the song.

thankss broc!

broc's icon

You can load the clip audio file into buffer with a read file message. Make sure that the clip name is the same as the file name and the file is stored somewhere in Max's search path. Then you can send 'get name' to the clip object and use this name for the read file message.

alersito's icon

thankss broc more or less was the idea that i had. Would be fantastic that max know where is the file without put the file into the max carpet. i have done this.

1707.buffer.jpg
jpg
FRid's icon

I'd recommend using the "replace"-message otherwise (like in the buffer.jpg) the buffer doesn't adjust it's size to the loaded file.

alersito's icon

thankss frid for the replace- message. the buffer i know that doesnt adjust it was only a proof.

I think that the best way to resize de buffer is getting the size of loop.

thanxxx frid!

broc's icon

Regarding Max search paths;
Note that you can define additional paths with Options > File Preferences..

alersito's icon

I didnt know about it. Thanxxx one more time Broc.

Timo Rozendal's icon

no need to go the preferences for adding directories, this can be done dynamically with this object: [filepath search]

not being able to retreive the actual filename used in an audioclip is a big hiatus in the m4l api