abs in gen~

am.syn's icon

I try to use abs inside my gen~patch, the problem is when i type in a number into abs then i lost the input inlet, so i cant use abs to control my values from outside my gen~patch. Is there another in way in gen~ to realize my little switch?
best Volker

Open the patch in gen~ ;)

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

Graham Wakefield's icon

Hi there

Since there are no Max-like messages in gen, an object either has a signal connected, or else the input is a constant. So when you add an argument to the [abs] object, you effectively set the input to be constant, and no signal can be connected (so we remove the inlet). Just remove the argument and your inlet will come back.

If you wanted to have a 'default' value that can be overridden, there's no way to do that within a gen patcher, as there is no dynamic patching and no messaging. The only things that can have default values and also be overridden dynamically are those that interface with the outside world of the genpatcher, e.g. [in 1 @default 74], [param xyz 74], [history xyz 74] etc.

Hope that helps to explain!

Graham

am.syn's icon

I feared it.... :(
Thanks for your reply Graham. :)
best Volker