Max Signal Smoothing

Resinate's icon

Hello all, I am new to this forum and have been studying Max/MSP/Jitter on my uni course over the past year and am now beginning my final major project on an audio and music technology degree. My project involves motion tracking using colour and dispersing sound around speakers in relationship to user position and motion.

Without going into too much more detail, here is my problem that i hope can be helped: (i think it is pretty simple really, my knowledge of Max/MSP is pretty limited!)

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

This abstraction is used to determine the velocity of an object that is being tracked. It is fed XY co-ordinates from the jitter object findbounds however can take any input and the bucket object seems to output some form of rate of change.

My problem is the output from this is used to control LFO speed on a hardware synthesizer. The output currently jumps between numbers which incurs glitches with sound. I've looked at smoothing using the 'slide' object on the input for my MIDI out but doesn't seem to be working as i'd thought it might. This may be down to my lack of understanding of the object or that it doesn't do what i need. I need to ramp very quickly between values to control the synth appropriately.

I appreciate this is my first post on the forum but i hope there is someone who can help me

Josh

Steven Miller's icon

Did you have a look at [line] and/or [line~]?

Resinate's icon

hi thanks for your quick reply.

I had looked at the line object but wasn't sure how it would work with a constantly changing input. Having looked again i gather it will look at the input values coming in and then ramp up to the next one immediately? I had always used it before with set values to ramp between numbers.

As far as placing 'line' does it matter if it's done before or after scaling or is it best to place line just before the actual MIDI message is sent out.

thanks for your help think it should do it. I did think it was easily solved

cheers,
Josh

MIB's icon

I probably would do it like this:

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

I got rid of one of the metros. this way you are sure that the right side always gets the bang first and then the left side (you could also use a trigger to make sure).
I also put in a change object. this way you don't get an output if the number repeats.

Resinate's icon

cheers for the reply. This is pretty much what i ended up doing anyway with line object but the metro bangs should be at the same time really as they are both involved in the velocity of the object as they represent X and Y movement. Will add change in though thank you