Max MSP help with echo effect

First Last's icon

Hey im new to Max MSP, i created a patch that uses motion detection to create sound frequencies. However the frequencies change so often that it doesnt really create any melody and instead sounds really chaotic. I tried using the tapin and tapout objects but after a few seconds it just starts to sound like one frequency is playing with no change based on motion.

Is there a way to add an echo effect or delay to help make it sound more ambient and ordered ? I've uploaded the patch for anyone who thinks they can help to check it out.

**EDIT**

I changed the sound from a frequency to a piano using makenote instead of cycle~ and adjusted the timing using the metro command found at the top of the patch but it still doesnt sound very melodic. Is there a way to prevent notes from repeating and setting a melodic tempo ?

Many Thanks for any and all help.

waveform-tracking-32-bit.maxpat
Max Patch
piano-tracking-32-bit.maxpat
Max Patch
sepulcky's icon

I checked the waveform-tracking patch. The main problem with it is that you pass all three mean values from jit.3m to scale object. Unlike modular synths Max does not sum all values from different patchrods connected to one inlet. Instead it just quickly evaluates the object they are connected to several times (three times in your case). I would suggest you to use single value form jit.3m to control oscillator frequency.

First Last's icon

thanks so much i will see how that goes !

EDIT

so i adjusted the scaling but the problem seems to be that very often a piano note is played repetitively, is there a way to make the piano note generated from notein / noteout play continuously until the piano note changes to another note ?

sepulcky's icon

This happens because Max evaluates scale object every video frame video, i.e. you generate notes several times per second. You can try to limit message flow with speedlim object.

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

If you want to wait until note-off to generate new note, you can use gate to prevent all messages to pass to the makenote until it generates note-off. Try this:

You need to copy the text above, then click File > New From Clipboard.

Wetterberg's icon

and if repetition is a problem, try [change]

First Last's icon

wow this really helped a lot thank you guys so much !

I've tried investigating [change] but for some reason whenever i try and use it as a means of preventing repetition it just refuses to work ?

Wetterberg's icon

try to make a patch with it, and show it to us. Did you check the help file? Particularly on floating point changes?

First Last's icon

I managed to get the [change] object to work ! Ive included the patch with this post and its sounding/operating a lot better. Is there any way to play chords instead of single notes using notein / noteout ? Also is motion tracking dependent on quality of cam used or the code being used ? Although the motion tracking i am using at the moment is better than another i have tried is there any way to improve it further ?

Thank you for all the help, its very kind of you

EDIT

i've managed to put together another patch that might have better motion detection, i thought i would upload it in case anyone else might be interested

piano-tracking-32-bit-3.maxpat
Max Patch
paino-moton-4.maxpat
Max Patch