Help me get this less clicky sounding.

saulpimpson's icon

I'm not really a noob but I am super rusty. I am trying to select 1 of 4 predetermined cycle~ sounds but obviously selector~ creates abrupt click sounds when changing the tones. I have been trying to find a substitute way of doing this. I'm afraid i am going to have to find another way of doing this.

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

Please help! I have copied the code below.

cudnylon's icon

look into the matrix~ object, specifically the "ramp" feature.

cudnylon's icon

or for a slightly quicker version:

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

just in case you should trigger the load bang to get the initial ramp value working. to set your own ramp value in milliseconds, use the num box. your values will want to go into the [pack] where the random is going into for example. they'll need to be from 0 to 3 to work with [matrix~]. the [t l clear] method might not be perfect. it's basically telling the [matrix~] to fade out all sounds right before sending it the new sound to trigger, thus causing a crossfade as the new sound comes in while the other fades out.

edit: a thought, put a [change] object between your selected number and the [pack]. this will prevent anything from happening when you send the same value. no use triggering the ramp if you're not changing values.

AudioMatt's icon
Max Patch
Copy patch and select New From Clipboard in Max.
cudnylon's icon

the differences between my version and audiomatt's, yet both still being successful, is why i love this program so much.

AudioMatt's icon
saulpimpson's icon

You are AWESOME! 1,000 Thanks!

saulpimpson's icon

Both of you!

AudioMatt's icon

Very welcome!

AudioMatt's icon

ps... check out poly.