Param problems with gen~ codebox

Holland Hopson's icon

I'm trying to duplicate the functionality of a gen~ patcher using codebox, and I'm running into issues with params. The params in the gen~ patcher work fine, but the params in the codebox version are either ignored or trigger the message "gen~ • doesn't understand "_some_param_name_here_". There's no message about the codebox not compiling. I've tried renaming the params in the codebox version so they're all unique, but it didn't help. What am I doing wrong?

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

By the way, this came up while working through some DSP block diagrams referenced in this keeper of a thread: https://cycling74.com/forums/good-sources-for-gen-dsp-code-online/replies/1#reply-5b0ca589b0617a5d022ae2b5 So many great resources on this forum!

jvkr's icon

Your patch has a gen object laying on top of another, and patch chords are connected to the wrong one.

Holland Hopson's icon

Thanks @JVKR. That solves it. Silly mistake makes me feel like a Max beginner again.