Opps, forgot to send this back to the list...
---------- Forwarded message ---------- From: Mike McGonagle mjmogo@gmail.com Date: Oct 9, 2006 4:03 PM Subject: Re: [PD] Kaos 0.01 Release To: Martin Peach martin.peach@sympatico.ca
On 10/9/06, Martin Peach martin.peach@sympatico.ca wrote:
These look very interesting!
Thanks, Martin. Have you had a chance to work through the "short tutorial" in setting up the Abstractions?
I found that when compiling with Visual C++ 2005 Express Edition the functions srand48, drand48 and isnan are not available. Maybe they exist for a mingw build.
Yeah, these are pure Unix calls. I completely forgot about those. I would think that compiling with Mingw would do the trick.
Did you try at all to compile the Mask stuff? While this library only uses one external from that set, I would think that they would compile straight out of the box, as there are no Unix calls in them (at least as far as I remember).
I got them to compile by making my own wrapper functions that call random instead, and replacing isnan by _isnan from float.h. I wonder if there could be a way to use a particular random source: given that all the pseudorandom generators are compromised from the start, could a random source be specified as a user-defined function somewhere?
Hum, I do have a C program/object that could be used instead of the Unix drand48. I am not really sure just how "random" the generator is, I will have to look at it and see if it is possible to use that.
That way the user could substitute a hardware generator or a file for the random source. Of course this applies to all the pd externals and builtins that use random, not only kaos.
Thanks again, Martin. Please do let me know any thoughts you have about Kaos. This is the first thing that I have released with a "gui", and as such, I am wondering just how logical it appears to others (it makes perfect sense to me, but hey, I could be either too entrenched in it to notice, or just a little crazy...)
Mike
-- Help the Environment, Plant a Bush back in Texas!
"I place economy among the first and most important republican virtues, and public debt as the greatest of the dangers to be feared. To preserve our independence, we must not let our rulers load us with perpetual debt." -- Thomas Jefferson, third US president, architect and author (1743-1826)
"Give Peace a Chance" -- John Lennon (9 October 1940 – 8 December 1980)
Mike McGonagle wrote:
On 10/9/06, Martin Peach martin.peach@sympatico.ca wrote:
These look very interesting!
Thanks, Martin. Have you had a chance to work through the "short tutorial" in setting up the Abstractions?
Not yet, I'm still getting them to compile...
I found that when compiling with Visual C++ 2005 Express Edition the functions srand48, drand48 and isnan are not available. Maybe they exist for a mingw build.
Yeah, these are pure Unix calls. I completely forgot about those. I would think that compiling with Mingw would do the trick.
Did you try at all to compile the Mask stuff? While this library only uses one external from that set, I would think that they would compile straight out of the box, as there are no Unix calls in them (at least as far as I remember).
I'm getting missing functions in masker.c: masker.obj : error LNK2001: unresolved external symbol _ctoh_setup masker.obj : error LNK2001: unresolved external symbol _htoc_setup masker.obj : error LNK2001: unresolved external symbol _cbuffer_setup
...so I guess ctoh.c, htoc.c and cbuffer.c are missing?
Martin