Re: [PD-dev] [PATCH] Avoid crash in vd~ for nan/inf input values

2013-09-10 Thread Claude Heiland-Allen
Hi Kjetil, In my own code I tend to exploit the incomparibility of NaN. Instead of: if (x lo) x = lo; if (x hi) x = hi; I write: if (! (x = lo)) x = lo; if (! (x = hi)) x = hi; As any comparison with NaN gives false, the first version will pass NaN through unchanged, but the second version

[PD-dev] [pure-data:bugs] #1103 confusing help for subpatch and table

2013-08-08 Thread Claude Heiland-Allen
--- ** [bugs:#1103] confusing help for subpatch and table** **Status:** open **Labels:** documentation **Created:** Thu Aug 08, 2013 04:33 PM UTC by Claude Heiland-Allen **Last Updated:** Thu Aug 08, 2013 04:33 PM UTC **Owner:** nobody Pd-0.45.0 (test) compiled 17:10:02 Aug 8 2013 What

[PD-dev] [pure-data:bugs] #1099 misleading message when single-stepping with global dsp off

2013-08-07 Thread Claude Heiland-Allen
--- ** [bugs:#1099] misleading message when single-stepping with global dsp off** **Status:** open **Labels:** block~ switch~ **Created:** Wed Aug 07, 2013 07:15 AM UTC by Claude Heiland-Allen **Last Updated:** Wed Aug 07, 2013 07:15 AM UTC **Owner:** nobody Pd 0.45.0test (git from today

[PD-dev] [pure-data:bugs] #1101 make install fails if already installed to the same prefix

2013-08-07 Thread Claude Heiland-Allen
--- ** [bugs:#1101] make install fails if already installed to the same prefix** **Status:** open **Labels:** buildsystem **Created:** Wed Aug 07, 2013 11:09 AM UTC by Claude Heiland-Allen **Last Updated:** Wed Aug 07, 2013 11:09 AM UTC **Owner:** nobody Pd fresh from git. Reproduction

[PD-dev] floating point exception crashes (INT_MIN % -1)

2013-07-10 Thread Claude Heiland-Allen
Hi, Pd (tested with version 0.42.6 and its bundled expr) are crashable with: INT_MIN % -1 Pd aborts hard with Floating point exception. Linux cappuccino 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux sizeof(int) is 4 Claude -- http://mathr.co.uk #N canvas 0 0 415 307 10; #X obj 82

Re: [PD-dev] Functional Programming C code generation

2013-05-17 Thread Claude Heiland-Allen
On 16/05/13 16:32, Tom Schouten wrote: What I want to do is to get the image processing part of PDP to run on the GPU. Target platforms: desktop, Android, iOS, something like raspberry pi, ... Currently probably Android as first attempt. OpenGL ES2 is probably the best thing to target first

Re: [PD-dev] Functional Programming C code generation

2013-05-14 Thread Claude Heiland-Allen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Tom, pd-dev, On 14/05/13 17:18, Tom Schouten wrote: Is there anyone here interested in Functional Programming and C code generation for DSP code? Yes! My most recent experiments are: https://gitorious.org/maximus/tilde

Re: [PD-dev] shared class data and functions

2012-11-14 Thread Claude Heiland-Allen
On 14/11/12 23:07, Jonathan Wilkes wrote: Second, (t_foo *)x-member will give me an error: t_text has no member named x_member. I don't understand I guess it's precedence[0]? (T *)x-m equals: (T *)(x-m) when you really want: ((T *)x)-m Claude [0]

Re: [PD-dev] [ pure-data-Feature Requests-3578019 ] I'd like to...

2012-10-18 Thread Claude Heiland-Allen
Hi, On 18/10/12 08:39, SourceForge.net wrote: Feature Requests item #3578019, was opened at 2012-10-18 00:39 It's already implemented... Submitted By: Nobody/Anonymous (nobody) Summary: I'd like to... Initial Comment: ..know if it is possible to use other than 2^n-blocksizes?! Not for

Re: [PD-dev] [ pure-data-Feature Requests-3578019 ] I'd like to...

2012-10-18 Thread Claude Heiland-Allen
Hi, On 18/10/12 08:39, SourceForge.net wrote: Feature Requests item #3578019, was opened at 2012-10-18 00:39 It's already implemented... Submitted By: Nobody/Anonymous (nobody) Summary: I'd like to... Initial Comment: ..know if it is possible to use other than 2^n-blocksizes?! Not for

Re: [PD-dev] Pd-cvs Digest, Vol 92, Issue 2

2012-10-03 Thread Claude Heiland-Allen
On 03/10/12 11:00, pd-cvs-requ...@iem.at wrote: add -ffast-math flag to CC lines for linus and Mac Have you checked that this is safe on all architectures? IIRC, it optimizes with the assumption that everything is finite and not NaN, among other things. I know when I wrote 'tilde'

Re: [PD-dev] svn copy error in pure-data/branches/by-author/gg/externals/ggee

2012-05-19 Thread Claude Heiland-Allen
you didn't fill your disk? (just checking the obvious first...) maybe git-svn would be more reliable for getting such ane enormously huge repository as the whole of pure-data with all the vendor sources etc than the svn tool itself? On 19/05/12 19:41, Nicolas Montgermont wrote: Hello all,

[PD-dev] nusmuk audio [vdc~] missing?

2011-04-10 Thread Claude Heiland-Allen
Hi, I was hoping to try out [vdc~] but it seems to have vanished from current pure-data repository; I can grab an old revision, but I'm wondering if there was a particular reason it was removed? svn r14362 D /trunk/externals/nusmuk/tab svn r11606 A /trunk/externals/nusmuk/tab/vdc~.c Thanks,

Re: [PD-dev] integrating pdlua into Pd-extended

2011-03-18 Thread Claude Heiland-Allen
Hey, On 18/03/11 17:38, Martin wrote: The error actually seems to originate in pkg-config not finding lua5.1: From my limited experience, Lua 5.1 libraries have different names all over the place, even in different GNU/Linux distros (lua51, lua5.1, lua5, lua, ...). A bit of a nightmare.

Re: [PD-dev] Segfault without messages

2010-10-23 Thread Claude Heiland-Allen
On 23/10/10 20:36, Brian Neltner wrote: I have attached the offending script. Seems quite simple, but I don't have pd-extended and miss the required libraries to test. pd gui; pd process exited Segmentation Fault Not very useful... You could try 'gdb' or 'valgrind' to get more useful

Re: [PD-dev] Segfault without messages

2010-10-23 Thread Claude Heiland-Allen
, Claude Heiland-Allen wrote: On 23/10/10 20:36, Brian Neltner wrote: I have attached the offending script. Seems quite simple, but I don't have pd-extended and miss the required libraries to test. pd gui; pd process exited Segmentation Fault Not very useful... You could try 'gdb' or 'valgrind

[PD-dev] [maxlib/history] segfault

2010-10-23 Thread Claude Heiland-Allen
about the bug? Brian On Sun, 2010-10-24 at 00:38 +0100, Claude Heiland-Allen wrote: Yes, in the absence of symbol information from 'history.pd_linux', I would guess that it is these lines that are the problem: http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/0.42

[PD-dev] local libraries for local patches are impossible [Was: Re: 0.43 omission: 'set-startup' and 'set-path']

2010-07-27 Thread Claude Heiland-Allen
On 22/07/10 20:07, Claude Heiland-Allen wrote: On 22/07/10 05:09, Miller Puckette wrote: Oh yes, and -lib itself needs somehow to be made to work locally to the patch, but this is a huge issue I don't know how to deal with. At first glance it should be possible to have canvas-local

Re: [PD-dev] local libraries for local patches are impossible

2010-07-27 Thread Claude Heiland-Allen
On 27/07/10 22:41, Claude Heiland-Allen wrote: On 22/07/10 20:07, Claude Heiland-Allen wrote: On 22/07/10 05:09, Miller Puckette wrote: Oh yes, and -lib itself needs somehow to be made to work locally to the patch, but this is a huge issue I don't know how to deal with. At first glance

Re: [PD-dev] 0.43 omission: 'set-startup' and 'set-path'

2010-07-22 Thread Claude Heiland-Allen
On 22/07/10 05:09, Miller Puckette wrote: Oh yes, and -lib itself needs somehow to be made to work locally to the patch, but this is a huge issue I don't know how to deal with. At first glance it should be possible to have canvas-local objectmakers and have the put on load list put the

[PD-dev] new loader replacement progress report

2010-07-18 Thread Claude Heiland-Allen
Hi everyone, I've been working on some algorithms to eventually replace the way Pd finds and loads and creates objects. Sorry for the length of this mail, but you can skip some sections if you don't care about implementation details and/or user interface details :) Table of Contents *

[PD-dev] Pure-data libraries

2010-07-16 Thread Claude Heiland-Allen
Hey everyone, I had a chat with Hans on #dataflow about libraries in Pd (as I've been trying to get canvas-local namespaces working properly). Blog post here with more info and a link to the log, which I annotated with extra information after the fact (the right hand column):

Re: [PD-dev] uploading Pd git repository to sourceforge

2010-07-15 Thread Claude Heiland-Allen
On 15/07/10 17:08, IOhannes zmölnig wrote: On 07/12/2010 05:33 AM, Miller Puckette wrote: o Pd developers -- is it only me that cannot open files via open? No, I got this error too. Command line -open is what I used so far, but obviously unsatisfactory. i get: snip bad option

[PD-dev] modular pd-extended - when release?

2010-06-19 Thread Claude Heiland-Allen
Hi, I was hoping that pd-extended would be split into a core package (containing the Extended pd) and modular external packages, but it seems[1] that this has been postponed yet again until the next+1 release. In case this becomes jam tomorrow forever, what can I do to guarantee that the

Re: [PD-dev] WebPd in Pure Data's SVN

2010-05-30 Thread Claude Heiland-Allen
http://gitorious.org allows AGPL and runs on free/open source software; last time I checked github is proprietary. Claude On 30/05/10 18:40, Vilson Vieira wrote: What about github? 2010/5/30 Hans-Christoph Steiner h...@at.or.at mailto:h...@at.or.at How about just starting a new

Re: [PD-dev] changes in atom_getsymbol between pd 0.40-3 and 0.42.4?

2010-02-17 Thread Claude Heiland-Allen
Hi, B. Bogart wrote: The problem is passing the A_GIMME arguments from a wrapper function to a function that runs in a separate thread. [snip] This is the thread safety problem right here: threadArgs-argv = argv; You need to *copy* *all* the data needed by the child thread that

Re: [PD-dev] adding standard install paths to the 'puredata' package

2009-12-03 Thread Claude Heiland-Allen
Some quick comments.. Hans-Christoph Steiner wrote: By the way, is anyone from pure:dyne listening? It would be great to have some input from you. 1. The paths stuff: the status quo is fine, I don't understand what you are trying to fix at all, apart from disruptive change for the sake of

Re: [PD-dev] ATI + GridFlow + Gem + C++ + Linux = BOOM

2009-08-23 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: Do you have any documentation on this as a suggested workaround? http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround_.231 Explicitly linking against libstdc++ before linking against the opengl libraries resolves this issue! You can have an

Re: [PD-dev] bug???!?!?

2009-08-08 Thread Claude Heiland-Allen
Ed Kelly wrote: [snip] The only difference between them is an [envrms~] measuring object on the frequency signal to the filter - but it's not even in the chain of signals that affects anything. [snip] I didn't try the patch, but I looked at the source code (current svn, revision 11896)

Re: [PD-dev] Pure Data/adding _path for gridflow

2009-08-01 Thread Claude Heiland-Allen
and failed tried ./Gem/Gem.pd_linux and failed tried /usr/lib/pd/extra/gridflow/bundled/Gem/Gem.pd_linux and failed tried /usr/lib/pd/extra/Gem/Gem.pd_linux and failed Gem: can't load library Thnks, Sisil On Sat, Aug 1, 2009 at 8:58 PM, Claude Heiland-Allen claudiusmaxi...@goto10.org wrote: sisil

Re: [PD-dev] Pure Data/adding _path for gridflow

2009-08-01 Thread Claude Heiland-Allen
sisil mehta wrote: hello, i have just compiled gridflow from cvs and get a : /usr/lib/pd/extra/gridflow/gridflow.pd_linux: /usr/lib/pd/extra/gridflow/gridflow.pd_linux: undefined symbol: _ZN9CPPExtern8m_holderE gridflow: can't load library did you compile gridflow with Gem support? if so,

Re: [PD-dev] [PD] packaging pd and friends WAS: GIT repo

2009-05-17 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: Since you are also thinking about packaging, it would be good to open up a discussion about how to handle some things. If you plan on just packaging pd-vanilla, then its easy. If you want to support multiple versions of Pd then it gets a bit more complicated.

Re: [PD-dev] proper debs (pure:dyne+pd-extended = good)

2009-04-24 Thread Claude Heiland-Allen
Hi, Hans-Christoph Steiner wrote: On Apr 21, 2009, at 3:09 PM, Claude Heiland-Allen wrote: Hi Hans, all, Hans-Christoph Steiner wrote: [snip] The key here is to make sure that the library packages can work with separate versions of pd. Something like 'puredata' and 'pd-extended' which

Re: [PD-dev] proper debs (pure:dyne+pd-extended = good)

2009-04-21 Thread Claude Heiland-Allen
Hi Hans, all, Hans-Christoph Steiner wrote: I don't know if any of the active pure:dyne packagers are on this list, but I thought I'd try. From what I have seen, it looks like pure:dyne is doing a much better job of making .deb packages than Pd-extended. I would be great to 'officially'

Re: [PD-dev] How to construct a dynamic length list in PD external?

2009-03-20 Thread Claude Heiland-Allen
B. Bogart wrote: Hey all, I searched the archives and looked at some of the code in SVN, but I'm still unsure how to do this. I have a nested for loop that grabs the config options from the PTP camera. The length depends on the camera and its mode. How can I append each name to a list

Re: [PD-dev] How to pass indeterminate args to a thread

2009-02-27 Thread Claude Heiland-Allen
B. Bogart wrote: I figured that doing this with a PD type was unlikely, so I started messing with creating a structure for my args and passing a pointer to that. So I have defined my structure for a single float arg: struct floatArgStruct { gphoto2_struct *gphoto2; t_symbol

Re: [PD-dev] library proposal

2009-02-20 Thread Claude Heiland-Allen
IOhannes m zmoelnig wrote: Hans-Christoph Steiner wrote: The current setup means that you can override a pd-vanilla abstraction using a binary class in ., but you can't override a pd_vanilla binary using an abstraction in . That seems to treat .pd objectclasses as second class classes

Re: [PD-dev] pd-devel code structure meeting on IRC

2009-02-15 Thread Claude Heiland-Allen
Steffen Juul wrote: On 14/02/2009, at 23.48, Claude Heiland-Allen wrote: Has the log been posted anywhere yet? Please do - i'd like to see it. Maybe http://puredata.info/dev/pddevel is a good place to stick it. http://puredata.info/dev/pddevel/dataflow-2009-02-13.log/view

Re: [PD-dev] pd-devel code structure meeting on IRC

2009-02-14 Thread Claude Heiland-Allen
Has the log been posted anywhere yet? I think I have it if no one else has a copy. ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev

Re: [PD-dev] developer

2008-12-14 Thread Claude Heiland-Allen
Daniel Aschauer wrote: I wanted to add my external to the repository. How do I become a developer? Send a bio (with your sourceforge username) and description of project to this list and wait for people to not object, or something. BTW: this seems to be obsolete, if someone wants to update it

Re: [PD-dev] representing parent patch levels as args

2008-12-08 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: So I am just adding support to canvas_name and window_name for getting the names from other canvases besides the current one, i.e. parent, toplevel, etc. OK. I am using the now standard numeric notation that is used in [getdir], iemguts, getdollarzero,

[PD-dev] abstraction caching

2008-10-01 Thread Claude Heiland-Allen
Benchmarking an Abstraction Cache for Pd I implemented a rudimentary abstraction caching mechanism for Miller Puckette's pd-0.41-4, which stores the parsed text (binbuf) associated with the class name instead of looking for files to load every time it is

Re: [PD-dev] Problem building pdlua on MinGW (solved for now)

2008-09-03 Thread Claude Heiland-Allen
Hi, Thanks for the help, hopefully pdlua svn should now build (and run!) on mingw with the only changes required being in the user configuration section at the top of the 'Makefile.static'. PSPunch wrote: 1. Copy the following files to the same directory as Makefile.static 1)

[PD-dev] cross-platform support for externals (extern not enough?) (Was: Re: Problem building pdlua on MinGW (solved for now))

2008-09-03 Thread Claude Heiland-Allen
Claude Heiland-Allen wrote: After: EXTERN void lua_setup(void) { Applied this change. Actually, I had to define a new macro depending on MSW, because otherwise the EXTERN stuff operates in the wrong direction (oops). Should work now, thanks to IOhannes for pointing out the issue

Re: [PD-dev] Problem building pdlua on MinGW

2008-09-02 Thread Claude Heiland-Allen
PSPunch wrote: Hi Claude, I have lua.dll and pd.lua both in my extra directory now. A little excerpt of the output of -stderr -verbose.. This is when trying to create a [lua] object. tried C:\Program Files\pd\extra\flatspace\lua.dll and failed tried C:\Program

Re: [PD-dev] dump OSC bugs?

2008-08-23 Thread Claude Heiland-Allen
IOhannes m zmoelnig wrote: whenever i find the time, i want to add a note into the constructor of the OSCx objects, so you get a warning each and everytime you create one of these objects. if someone finds the time before me, i would be glad... can you make it use pd_error (or whatever it's

[PD-dev] pd_error in constructors (Was: Re: dump OSC bugs?)

2008-08-23 Thread Claude Heiland-Allen
Claude Heiland-Allen wrote: can you make it use pd_error (or whatever it's called) so you can find the object more easily? would that even work in the constructor? I was curious, so I tested it.. Calling pd_error on the newly constructed object in the newmethod does work (in that find last

Re: [PD-dev] recording the overall state of a patch

2008-08-17 Thread Claude Heiland-Allen
forwind wrote: Hello Everybody, Apologies if this is not the correct place to post this but could someone point me towards ways to record/save the overall state of a patch. http://lists.puredata.info/search/PD-list?query=state+saving What solutions do people generally use ? sssad

Re: [PD-dev] sms pd external - design choices

2008-07-19 Thread Claude Heiland-Allen
[EMAIL PROTECTED] wrote: Quoting Mathieu Bouchard [EMAIL PROTECTED]: On Fri, 18 Jul 2008, Hans-Christoph Steiner wrote: It would be great to have people start using this string/blob functionality, but it needs to be changed so that it'll work without patching Pd itself. IOhannes

Re: [PD-dev] sms pd external - design choices

2008-07-12 Thread Claude Heiland-Allen
Rich E wrote: I do not see how I could have more than one buffer at the same time if it were declared statically. The data has to be 'findable', so I need some way to name it. Well, you could do what Pd does, and have a static datastructure pointer, with a list/tree/whatever that you can

Re: [PD-dev] sms pd external - design choices

2008-07-10 Thread Claude Heiland-Allen
m_pd.h declares: EXTERN t_pd *pd_findbyclass(t_symbol *s, t_class *c); maybe that's worth investigating? Rich E wrote: Hi all, As I may have mentioned in a few other places, I have been working with a c library for analysis/synthesis known as SMS. The library, although in flux still, is

Re: [PD-dev] 'cnv' colors

2008-07-07 Thread Claude Heiland-Allen
Mike McGonagle wrote: Hello all, I have a program that I have written that creates lots of small 'cnv' objects, where I am changing the colors of the backgrounds and the text in the object. I was noticing that when I create these cnv objects, I have to use a different 'color number' to get

[PD-dev] please remove old pdlua from SVN

2008-06-19 Thread Claude Heiland-Allen
Hello, Can one of you fine developers with sf.net access please delete: pure-data/trunk/externals/loaders/pdlua It's at pdlua-0.3, 2 versions behind the current release... Either that or make it refer dynamically to the current development repository:

Re: [PD-dev] changing glob_setfilename() to handle spaces in the dirname

2008-04-28 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: How does that sound? Hacky. What about multiple consecutive spaces? etc Any better approach? Some sort of escaping mechanism to allow spaces (and other characters) to be safely transmitted in symbols in both directions. .hc Claude --

Re: [PD-dev] pd external memory weirdness

2008-04-16 Thread Claude Heiland-Allen
Hi Tim, list, First, I never wrote anything with pthreads, so this may be way off the mark, but this looks suspicious: tim redfern wrote: void thread_bang(t_thread *x) { char* temp=(char*)malloc(100); free(temp); pthread_t stest;

Re: [PD-dev] allow only one instance of external object

2008-03-23 Thread Claude Heiland-Allen
best boy wrote: hi is there a way to keep track of the number of opened instances of an external? Is this an external you are writing? Then yes. Otherwise there's weird tricks you can probably do to keep track, but not control. if so, can anyone point me to an example object? Just have

Re: [PD-dev] Calling a method periodically

2008-03-17 Thread Claude Heiland-Allen
Greg Surges wrote: Hi all, Is there any way to have an external call a method periodically, without being triggered? Clocks. Check the C API in m_pd.h.. I'm thinking of a histogram with a decay function, where the values are decremented every second (or other time value). I've done

Re: [PD-dev] naming loaders: pdlua, tclpd, etc.

2008-03-13 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: XXX --- lua.pd_linux ^^ this is what I use. The project as a whole is called 'pdlua' but the external for Pd is called 'lua', like '-lib lua' and [lua]. tcl.pd_linux haskell.pd_linux ^^ this is probably what I will use if I ever resume work on my Haskell

Re: [PD-dev] naming loaders: pdlua, tclpd, etc.

2008-03-13 Thread Claude Heiland-Allen
Albert Graef wrote: Frank Barknecht wrote: May I throw in another one: As loaders are a bit different than externals, Uhm, did I miss anything? In which way is a loader different from an external? A loader-external adds a hook into Pd's loader (the bit that searches for files to load

[PD-dev] Pd OSC implementation(s) incompatible with SC3? [Fwd: Re: [sc-users] NetAddr]

2008-03-05 Thread Claude Heiland-Allen
Hi all, Thought this might be of interest to developers of OSC externals. In short: Pd OSC implementations should send OSC on the same port that they listen on, as that is the standard way OSC works. Claude Original Message Subject: Re: [sc-users] NetAddr Date: Tue, 04 Mar

Re: [PD-dev] pd-extended loadlib request

2008-01-25 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: On Jan 24, 2008, at 2:31 PM, Mathieu Bouchard wrote: On Wed, 23 Jan 2008, Hans-Christoph Steiner wrote: What other programming language has aliases? Ruby accepts both 'indices' and 'indexes' as selectors in the Array and Hash classes. Ruby has 'alias' as a

Re: [PD-dev] Lua object help-path strangeness

2007-12-05 Thread Claude Heiland-Allen
Hi Frank, all, Frank Barknecht wrote: This doesn't seem to be specific to Lua: pdlua doesn't do anything regarding help file searches at all, grep help pdlua/src/* yields no results. So Claude and I suspect it's something with the loader functionality. Can someone comment on this? I did

[PD-dev] autotools magic for externals?

2007-11-29 Thread Claude Heiland-Allen
Hi all, I've been trying to use autotools (autoconf and friends) to build pdlua, but have ended up in a world of pain and deleted my experiments out of frustration. I tried to understand the system used in CVS/externals/moocow/, but the wizardry was somewhat beyond me. Even more so with the

Re: [PD-dev] getting the classname in an class

2007-10-27 Thread Claude Heiland-Allen
Hi, See attached external and Pd patch for a solution (workaround?) using an A_GIMME constructor, at least with pd-miller-0.40-2... Thanks, Claude -- http://claudiusmaximus.goto10.org howto-get-creation-classname.tar.gz Description: application/gzip

Re: [PD-dev] getting the classname in an class

2007-10-27 Thread Claude Heiland-Allen
Mathieu Bouchard wrote: On Sat, 27 Oct 2007, Claude Heiland-Allen wrote: See attached external and Pd patch for a solution (workaround?) using an A_GIMME constructor, at least with pd-miller-0.40-2... This is because the first argument of the constructor is the same thing as the first

Re: [PD-dev] pdlua: volatile objects...?

2007-09-23 Thread Claude Heiland-Allen
[EMAIL PROTECTED] wrote: hi list, hi claude. using the great pdlua extension it is easy to create object(classe)s in lua. however, the class is registered on loading and then kept in memory of pd. The problem is Pd doesn't give loaders the chance to load a class if it is already loaded, but

Re: [PD-dev] pdlua: volatile objects...?

2007-09-23 Thread Claude Heiland-Allen
Claude Heiland-Allen wrote: [EMAIL PROTECTED] wrote: hi list, hi claude. [snip] would this be easy to implement? Not too hard, hopefully, but not trivial either. I found it rather harder than I expected (eg: what is the rationale behind the type of class_addcreator()?), so I wrote

[PD-dev] sys_idlehook and audio API interaction

2007-09-05 Thread Claude Heiland-Allen
Hi, I made an external to let patches do things when Pd is idle: [idlebang] -- output a bang when Pd is idle but it seems to be heavily dependent on the audio API. With OSS, I get around 200 bangs per second. With ALSA, I get around 7 bangs per second. With JACK, I get around 1 bang

Re: [PD-dev] sys_idlehook and audio API interaction

2007-09-05 Thread Claude Heiland-Allen
:48 schrieb Claude Heiland-Allen: Hi, I made an external to let patches do things when Pd is idle: [idlebang] -- output a bang when Pd is idle but it seems to be heavily dependent on the audio API. With OSS, I get around 200 bangs per second. With ALSA, I get around 7 bangs per

[PD-dev] fix for pd compilation on OpenSUSE (HZ and sysconf())

2007-08-26 Thread Claude Heiland-Allen
irc.freenode.net/#dataflow 2007-08-26 11:21 AndyGraybeal x_misc.c: In function 'cputime_bang2': 11:21 AndyGraybeal x_misc.c:233: error: 'HZ' undeclared (first use in this function) 11:21 AndyGraybeal x_misc.c:233: error: (Each undeclared identifier is reported only once 11:21 AndyGraybeal

Re: [PD-dev] help-array crashing outlet_anything

2007-07-25 Thread Claude Heiland-Allen
[EMAIL PROTECTED] wrote: Intstore *storepointer; Intstore *storepointer = new Intstore(); storepointer[arraynumber] = *pointer; This is the problem. You have only one Intstore object pointed to by storepointer, but you're assuming you have more than one whenever arraynumber is not

Re: [PD-dev] pd_error() deprecated

2007-07-19 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: How about a compiler warning, isn't it something like #warning? No, that emits a warning when the #warning line is reached by the preprocessor. In GNU C you can emit warnings when deprecated functions are *used* like this: int old_fn () __attribute__

[PD-dev] definitions in m_pd.h that aren't present in pd (and vice versa)

2007-04-29 Thread Claude Heiland-Allen
Hi, I'm trying to use SWIG in my work on a Lua external for Pd, and had to comment out the following definitions in m_pd.h to get code generated by SWIG to load without undefined symbol errors: EXTERN t_symbol *pd_getfilename(void); EXTERN t_symbol *pd_getdirname(void); EXTERN void

Re: [PD-dev] how do I get my containing canvas? [solved]

2007-03-24 Thread Claude Heiland-Allen
valid in the _new function, I assume? rich Thanks, Claude On 3/23/07, Claude Heiland-Allen claudiusmaximus at goto10.org wrote: Steffen wrote: On 22/03/2007, at 23.41, Roman Haefeli wrote: When opening patches by sending messages to pd, the path is relative to pd's startup

[PD-dev] how do I get my containing canvas? (Was: Re: [PD] relative pathes: problems with [open(-message to pd)

2007-03-23 Thread Claude Heiland-Allen
Steffen wrote: On 22/03/2007, at 23.41, Roman Haefeli wrote: When opening patches by sending messages to pd, the path is relative to pd's startup-location. when loading other files (text-, audio-, data-files etc) the path is set relative to the location of the patch. since the patch

Re: [PD-dev] how do I go about pd_bind()ing multiple symbols to one object and distinguish between them?

2007-03-04 Thread Claude Heiland-Allen
Frank Barknecht wrote: Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote: The initial aim is to write an external that does similar to what an abstraction made up of loads of copies of [receive $1-balb]--[list prepend balb]--[list trim]--[outlet] would do, with 'balb

Re: [PD-dev] how do I go about pd_bind()ing multiple symbols to one object and distinguish between them?

2007-03-03 Thread Claude Heiland-Allen
Frank Barknecht wrote: Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote: I'm writing an external, and I want it to have multiple named receivers that do different things (something that seems trivial for an abstraction but rather tricky for an external). Does

[PD-dev] how do I go about pd_bind()ing multiple symbols to one object and distinguish between them?

2007-03-02 Thread Claude Heiland-Allen
Hi, I'm writing an external, and I want it to have multiple named receivers that do different things (something that seems trivial for an abstraction but rather tricky for an external). I worked out how to have multiple 'anything' inlets using a proxy class (modelled after the [list ...]

[PD-dev] float a vs symbol 1

2007-01-10 Thread Claude Heiland-Allen
float a | [print] error: Bad arguments for message 'float' to object 'messresponder' but symbol 1 | [print] print: symbol (in fact an empty symbol: selectorsymbol messagesymbol, checked with Print.hs from hsext [1]) I think *both* cases should error, with a more informative error

[PD-dev] inverse of myclass_setup()? myclass_unsetup()?

2007-01-07 Thread Claude Heiland-Allen
Hi, Say I have the following: hsext_setup() { /* start Haskell run time system */ } hsext_unsetup() { /* stop Haskell run time system cannot be restarted hereafter */ } Am I correct in assuming hsext_setup() will be called at most once? How can I ensure hsext_unsetup() is

Re: [PD-dev] glob for windows?

2007-01-05 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: Does anyone know of a glob implementation in C for Windows? My naive Google Code Search turns up this: http://tinyurl.com/yfllga -- part of PHP5, BSD license ___ PD-dev mailing list PD-dev@iem.at