storing numbers in an abstraction

    Mar 18 2006 | 10:32 am

    • Mar 18 2006 | 10:41 pm
      I can't think of one, but it's a problem I've run into from time to time
      as well, and probably worth a think-through, for a solution in the future.
    • Mar 19 2006 | 12:13 am
      it is not the idea of abstractions to store
      stuff inside them.
      do not forget that a patch could call two
      instances of the abstraction patcher.
      what might be the right solution for you is
      adding arguments to your abstractions.
      that means use [#1 i] and [#2 f] instead of
      numboxes and connect a loadbang to them.
      later when called as abstraction the
      arguments can be initialized from inside,
      or by giving the abstraction object box s
      arguments, and can be set by inlets.
      when you want to store "last use values"
      you can now that from outside much easier
      than with numboxes.
    • Mar 19 2006 | 12:39 am
      The solution, actually, is to store the values at the level above: you
      would need to get the values somehow (pattrstorage?), and then you'd
      restore them when the patcher loads.
      Any built in solution would have to do more or less the same thing, but