Group Admins

  • Profile picture of Karim
  • Profile picture of Jean


Public Group active 2 hours, 35 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

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

Author 2 Subscribed Users |
Profile photo of puccini

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!

January 4, 2017 at 15:56 #20384
Profile photo of Jean

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) …)

January 4, 2017 at 22:21 #20385
Profile photo of puccini

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

January 5, 2017 at 00:24 #20386

You must be logged in to reply to this topic.

Log in now