How do you make a gen external object?


    May 02 2014 | 4:01 am
    Yes! How? I want to make a round math function object for gen. If you could explain how to export a codebox or gen patch as a gen object, I can figure out the rest. I just don't want to have to type in "[gen round]". I just want it to type [round] like a normal object.
    ...Or let me know if a round object/external for gen already exists :)
    In 1 = round to number In 2 = resolution... so it could be a resolution of 0.5, 23, anything.
    function round(some ceil and floor logic)
    round(number/resolution)*resolution

    • May 02 2014 | 6:47 am
      figured it out. just save the gen patch and it will become a .gendsp file. Put that in a folder that max looks in (add them in folder preferences)
      in MSP, you have to write [gen~ patch] In gen, you just write [patch]
      sweet! I'll post my "round away from zero" code in a minute.