Forums > MaxMSP

Cosine generator as final step for gain staging?

Oct 20 2012 | 1:23 am

Hey Guys, I'm just working my way through the M4L tutorial devices and got stuck with a question.

In the attached screenshot there is the patch. I got that the cycle~ objects are going to put out a constant value of 0 or 1 for a phase input of 0 – 0.25 and 0.75 – 1.

The part that I dont understand is why they use the cycle object for it and don't go in the * object with the output of two line~ objects.

Is there some benefit with the cycle that I dont see?

Would be glad for some help!



  1. ScreenShot20121019at6.16.18PM.png


Oct 20 2012 | 4:27 am

the cycle~ wavetable is used for mapping.

it contains a consine wave by default, and a quarter of a cosine makes a squared ramp, which is often used to generate what we call natural pan.

if you do linear fades for pan or balance youll find that the loudness seems to be wrong when panned from a side to the center.


Oct 20 2012 | 8:34 am

Hey Roman, thanks for the good explanation!
Now I understand why it’s better than just use the line objects linear output.

Would there also be another way to create these squared ramps, without using the cycle object?

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP