Here's a funny one:
There is a "rewrap" object in Zexy, and a "rewrap" object in Maxlib. Only one of them does what I want it to, which is to rewrap forwards and backwards between the two creation arguments, and not wrap all the way back to the first [this is what "wrap" is for, I guess].
Now, if I need both libraries, how can I specify which of the same-named objects PD will use?
hmmmm....
d.
derek holzer wrote:
Here's a funny one:
There is a "rewrap" object in Zexy, and a "rewrap" object in Maxlib. Only one of them does what I want it to, which is to rewrap forwards and backwards between the two creation arguments, and not wrap all the way back to the first [this is what "wrap" is for, I guess].
Now, if I need both libraries, how can I specify which of the same-named objects PD will use?
'maxlib_rewrap' instead of 'rewrap' will give you the one from maxlib, don't know how to make sure that the other one will be the one from zexy. I guess you'll have to load the libs in the correct order, probably zexy first, followed by maxlib. But I never tried this.
Olaf
Whichever version you want, you load that library first in your .pdrc.
FYI: the maxlib version is the standard version in the packages
(Debian, MacOS X, Windows).
.hc
On Sunday, Apr 11, 2004, at 13:45 America/New_York, derek holzer wrote:
Here's a funny one:
There is a "rewrap" object in Zexy, and a "rewrap" object in Maxlib.
Only one of them does what I want it to, which is to rewrap forwards
and backwards between the two creation arguments, and not wrap all the
way back to the first [this is what "wrap" is for, I guess].Now, if I need both libraries, how can I specify which of the
same-named objects PD will use?hmmmm....
d.
--
derek holzer ::: http://www.umatic.nl ---Oblique Strategy # 104: "Listen in total darkness, or in a very large room, very quietly"
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an
idea, which an individual may exclusively possess as long as he keeps
it to himself; but the moment it is divulged, it forces itself into the
possession of everyone, and the receiver cannot dispossess himself of
it."
- Thomas Jefferson
Hans, Olaf,
Hans-Christoph Steiner wrote:
Whichever version you want, you load that library first in your .pdrc.
FYI: the maxlib version is the standard version in the packages (Debian, MacOS X, Windows).
Olaf Matthes wrote:
'maxlib_rewrap' instead of 'rewrap' will give you the one from maxlib, don't know how to make sure that the other one will be the one from zexy. I guess you'll have to load the libs in the correct order, probably zexy first, followed by maxlib. But I never tried this.
Thanks much for the tips. I also realized I could build Zexy without the "rewrap" object, just to be sure. That avoids any ambiguities. But knowing that the order you load the libs changes things is also good.
Related question: how much memory does it take when a library is loaded? By which, I mean: would it make sense to not load certain libraries you know you won't use if the patch you are running is CPU or memory intensive already?
d.
On Mon, 12 Apr 2004, derek holzer wrote:
Hans-Christoph Steiner wrote:
Whichever version you want, you load that library first in your .pdrc.
Actually, I just tested it, and it's whichever library is loaded _last_. every class_new() overwrites the previous entry in the class-table (the method-table of objectmaker).
Mathieu Bouchard http://artengine.ca/matju
Mathieu Bouchard wrote:
On Mon, 12 Apr 2004, derek holzer wrote:
Hans-Christoph Steiner wrote:
Whichever version you want, you load that library first in your .pdrc.
Actually, I just tested it, and it's whichever library is loaded _last_. every class_new() overwrites the previous entry in the class-table (the method-table of objectmaker).
In case of the 'rewrap' object, maxlib's rewrap is actually called 'maxlib_rewrap' (that's the real name set in class_new()). the short name 'rewrap' is set using class_addcreator(), maybe this changes the bahaviour? Does class_addcreator() overwrite class_new()? - I have to admit that I never tried it, just wanted a way to make sure to get the object from maxlib by prepending 'maxlib_' to the object's names.
Olaf
derek holzer wrote:
Hans, Olaf,
Thanks much for the tips. I also realized I could build Zexy without the "rewrap" object, just to be sure. That avoids any ambiguities. But knowing that the order you load the libs changes things is also good.
the weird thing is, that i was not able to build zexy *with* [rewrap]. this object is not part of zexy. (as far as i know)
mfg.a.sdr IOhannes