Glitches!! Help with crossfade

Aled Smith's icon

Hi,

I'm going through the Kadenze course and I'm stuck on some of the coursework for session 4 which is about crossfading (linear interpolation between two scales) and I just can't get the patch to work.

When I use the slider to move between A and B the range seems to effective for a few pixels on the left side and then it starts spitting out all kinds of pitches for most of the travel to the right. I'm sure there's probably something really simple that isn't checked or a patch that's in the wrong place but I can't figure it out. Can someone please help!? It would be awesome for someone to explain this to me as I really want to learn how to use Max properly.

Thanks!

HW4starter.maxpat
Max Patch

TFL's icon

The [slider] by default outputs values between 0 and 127, while for your crossfade formula to work you need a crossfade value between 0. and 1.

You can solve this either by setting the [slider] 'Float Output' attribute to 1 and then its 'Range' to 1., or adding a [/ 127.] after the [slider] (or edit your crossfade formula to $f1*(127-$f2)+$f3*$f2/127 ).

Also please remind that sharing patches with the copy compressed method is preferred over uploading a file.

Aled Smith's icon

Thanks for helping out and for the heads up with the compression - This is literally the first time I've been on this forum :)