< Back to IRCAM Forum

Adding new inputs/outputs to generic functions with the shift + . (dot) command

Is it possible to set a generic function so it may have additional inputs/outputs after it is summoned in a patch? I mean, in the same way we do with objects like lisp “list” using the shift + . (dot) command? (windows/pc user here)

Thank you!

what kind of generic function are you referring to ? Lisp (programmed as text) or graphical ?

  • with graphical OM generic function, this is not possible.
  • with text, just follow the Common Lisp spec for “optional” function arguments

=> (defmethod! mymethod (a b &optional c d) …)

Alright! Actually I was referring to the graphical type, but I’ll take a look into the Lisp option, then.
Thank you!