param in gen subpatcher dont receive anything

phatline's icon

My Main Gen~ receive all param´s.
The named Subpatchers in there receive non of them?

Should this be? What is the workaround? I dont want to make 16inlets in the subpatcher only for let ín params from outside!?

Anybody use subpatchers?

stringtapper's icon

I think I ran into this as well. Nesting param operators in Gen doesn't seem to be supported.

Gregory Taylor's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You would use the setparam operator in a case like that

stringtapper's icon

Damn, I wish I had found that last semester. That should allow me to make some Gen patches considerably less messy.

Thanks GT!

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

Here's a commented version of what Gregory posted. I'm very OCD about documenting how things work and this is an example of the kind of basic help patchers I wish existed for Gen to help us mortals get our heads around simple patching operations like this in Gen.

phatline's icon

THX!

Not that nice that I wished, but a way better workaround then using inputs instead.

Ahhh this is how to use setparam, I was´nt clear about how it should work.

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

I have deleted one line in your doc-help-patcher, since it wasnt necessery...

`

Ernest's icon

When I see the word 'function' I'm led to believe different instances of the same object can receive different parameter values. Is there a way to have multiple copies of an identical gen subpatch, each of which receive different params from the parent gen patch? Or, does one edit each one to have different params internally?

Ernest's icon

That is not to say I am not delighted with being able to make subpatches in gen. Great improvement already )

Wesley Smith's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Each subpatcher has its own instances of parameters. You use setparam to manipulate them independently.

Ernest's icon

Hmm. Is there a way to make unique parameter names based on the name of the function container?

Wilson Ryan's icon

Seconding Ernest's question. I'd love to be able to create sub patches in gen with unique Data names, similar to #0 functionality in Max.

Helen Bledsoe's icon

You can use the "+ name of param" as well in your subpatch.

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