Cyclic Panner with gen~?

Masa's icon

I have been trying to achieve Cyclic Panner with gen~, but not successful.
The conditions for Cyclic Panner would be:
1. Stereo input and Stereo output
2. When right channel is louder, you hear right channel louder at the default panning (0.5).
3. You can still pan the signal to the left if you want, even the input signal only has right channel, or right channel is louder.

A.O.M. Cyclic Panner does the above, and I am interested in implementing this with gen~.
http://doc.aom-factory.jp/plugins/manual.pdf

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

km.pan_help1.maxpat
Max Patch
Masa's icon

If you own A.O.M. Cyclic Panner, you need to configure it like this patcher to achieve the conditions.

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

Julien Tieman's icon

The "gen~ @file seesaw.gendsp" is not included in the file. I can't see what's inside.
Thanks

Graham Wakefield's icon

Cartopol then poltocar. Add a rotation between them (2nd inlet of poltocar) in radians.

Expansions if this idea will lead to ambisonics.