Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Tue, 6 Sep 2011, martin.pe...@sympatico.ca wrote: Yes, I think it ought to be up to the external to implement its own symbol-to-float converter since there is no universally valid way of doing it. The same pattern will have different meanings in different context and Pd can't be expected

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Tue, 6 Sep 2011, Hans-Christoph Steiner wrote: Anything that just \ couldn't cover? The current backslash scheme in the parser does not handle things like \n, \t, \x with two hex digits, \u with four hex digits, \0 for nul character, etc. That's because the current backslash only means

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Wed, 7 Sep 2011, Jonathan Wilkes wrote: [openpanel] - outputs /home/hans/My documents | [set symbol $1( | [ ( -- What's printed here? ...My documents or ...My\ documents? DesireData makes it My documents, but it's a bug, as in it doesn't fit with what I wanted it to be. It ought to be My\

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Andy Farnell
On Fri, 9 Sep 2011 13:58:40 -0400 (EDT) Mathieu Bouchard ma...@artengine.ca wrote: Going out of Programming 101 doesn't get you automatically in the odd and weird stuff. I don't know why you talk about going from an extreme to another. Me neither, we are united in ignorance brother. Just

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Frank Barknecht
On Fri, Sep 09, 2011 at 12:07:20PM -0400, Hans-Christoph Steiner wrote: And indeed, if I was only going on what the manual said, it would be a very weak argument. Mostly, I'm going on how the type system works. You can directly interface the automatic typing of atoms by adding arguments in an

Re: [PD] pduino rewrite

2011-09-10 Thread Ingo
Upon further testing I have found two bugs so far. On is in the firmata and the second one is in the [debytemask]. This makes fixing it a bit difficult. 1) firmata: instead of sending two values for a digital pin connected or disconnected it sends three. The first one should be the address and

Re: [PD] pduino rewrite

2011-09-10 Thread Ingo
Hi Roman, Olsen and Hans, Here' a replacement object that fixes the behaviour that wrong digital in pins get recognized when more than the first 6 pins are used. I hope there is nothing else interfering with those pins anymore. The object digital_messages inside the patch should be placed here

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Martin Peach
On 2011-09-10 01:57, Mathieu Bouchard wrote: On Tue, 6 Sep 2011, martin.pe...@sympatico.ca wrote: Yes, I think it ought to be up to the external to implement its own symbol-to-float converter since there is no universally valid way of doing it. The same pattern will have different meanings in

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Martin Peach wrote: Which other ways are you thinking about, apart from something that behaves more or less like strtof ? OK, for example an object that converts names of numbers to floats: or binary to float: or imaginary numbers: or even some kind of [expr] that takes

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Thomas Mayer wrote: I have read the book myself, and it is not a book that claims I will teach you seven languages in seven weeks, but the author introduces the reader to basic concepts in each language (prototypal inheritance, functional programming) and shows some

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Andy Farnell wrote: Just wondering if there was anything in that book you thought was cool. It struck me as a nice idea to compare a bunch of languages. As a non-buyer, I only have access to two chapters, so, I can't comment on that book. But I have read other similar

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Martin Peach
On 2011-09-10 13:46, Mathieu Bouchard wrote: On Sat, 10 Sep 2011, Martin Peach wrote: Which other ways are you thinking about, apart from something that behaves more or less like strtof ? OK, for example an object that converts names of numbers to floats: or binary to float: or imaginary

Re: [PD] [PD-announce] Origination and Metacreation: a conversation with Ben Bogart

2011-09-10 Thread Mathieu Bouchard
On Thu, 8 Sep 2011, Marco Donnarumma wrote: Dear all, it's with great pleasure that I share with you this piece. I had an inspiring, in-depth conversation with artist and fellow Pd'er Ben Bogart over the last months, and this is the result: « Rational and creative thought are two extremes of

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Martin Peach wrote: If you say so. I was just saying that the default should avoid the all-encompassing conversion and not try second-guessing the users' intentions. It's probably safe to have Pd convert a symbol to a float by default iff there is no symbol method and

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Hans-Christoph Steiner wrote: I agree the style would match other languages and things quite well and might be clearer, but breaks backwards compatibility, though not horribly. We could start with the \ method, and if that is too painful, add a method. They would be

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Tue, 6 Sep 2011, martin.pe...@sympatico.ca wrote: The disaster would be if Pd tried to guess what the user intends based on some general idea of what Pd is 'for'. For instance I've been working on an xbee external where I need to specify numbers like 0x0a060123 for the remote address. I do

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Wed, 7 Sep 2011, Hans-Christoph Steiner wrote: Yeah, I agree, I have no problem if someone wants to make an externals that interprets 4+2 or four as 4, but it doesn't seem like something that should be in the core. Well, there would be no conflict if such a feature existed, because it

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Thu, 8 Sep 2011, Hans-Christoph Steiner wrote: Yes, I agree that [float] and [symbol] should also do conversions. A good example would be Python's str() and float(). I believe that the implicit conversions should be at a lower level than that, because then, they can apply all over pd,

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Fri, 9 Sep 2011, Jonathan Wilkes wrote: = really an empty string (just like the s_ given by A_DEFSYMBOL, that you nearly can't produce otherwise) [symbol( And also if you do $1 inside of a DOLLSYM, you will get a default empty string, though not separately, because it joins it to

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Andy Farnell
But we are trained to deduce unreasonable expectations from terse book titles and then blame that on the publishers. I'm glad Peter posted the Norvig article and guess the 'ars longa, vita brevis' theme is there in Tate's book title in a cheeky way. Of the languages I've encountered,

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Andy Farnell
On Sat, 10 Sep 2011 14:09:15 -0400 (EDT) Mathieu Bouchard ma...@artengine.ca wrote: BTW, the first study about programming language comparison happened around 1969-1972. Love to know more about that. Can you remember the study title or keywords? a. -- Andy Farnell

Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Andy Farnell wrote: On Sat, 10 Sep 2011 14:09:15 -0400 (EDT) Mathieu Bouchard ma...@artengine.ca wrote: BTW, the first study about programming language comparison happened around 1969-1972. Love to know more about that. Can you remember the study title or keywords?

[PD] Having trouble getting my external to work

2011-09-10 Thread Rick T
Greetings All I'm having trouble getting my external to work, It compiles with no errors and has 1 warning when I do a make but it completes successfully see warning below. cc -export_dynamic -shared -lc -lm -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -Wall -W -Wshadow

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Martin Peach
It should be -export-dynamic, not -export_dynamic. Martin On 2011-09-10 17:34, Rick T wrote: Greetings All I'm having trouble getting my external to work, It compiles with no errors and has 1 warning when I do a make but it completes successfully see warning below. cc -export_dynamic

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Hans-Christoph Steiner
There is no need to write your own build system, use the Library Template, it'll then build on GNU/Linux, Mac OS X, Windows, Android, etc. http://puredata.info/docs/developer/LibraryTemplate .hc On Sep 10, 2011, at 5:45 PM, Martin Peach wrote: It should be -export-dynamic, not

[PD] Can GEM select a color from an image?

2011-09-10 Thread Sebastian Valenzuela
I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I would then call on these numbers to determine the triggering of samples. Is there an object in Pure Data that can determine the

Re: [PD] Can GEM select a color from an image?

2011-09-10 Thread Olivier B
Hi, I think [pix_mean_color] is what you need. Cheers. 01ivier 2011/9/11 Sebastian Valenzuela svalenzuelamu...@gmail.com I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Rick T
Thanks Martin that got rid of the xport warning message aloha Rick On Sat, Sep 10, 2011 at 11:45 AM, Martin Peach martin.pe...@sympatico.cawrote: It should be -export-dynamic, not -export_dynamic. Martin On 2011-09-10 17:34, Rick T wrote: Greetings All I'm having trouble getting my

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Rick T
Greets Hans The site seems be down at the moment Reason: *Error reading from remote server* -- Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/4.4.4-8+etch6 mod_ssl/2.2.9 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.0 Server at puredata.info Port 80 but just to let you know

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: Frank Barknecht f...@footils.org; pd-list@iem.at pd-list@iem.at Sent: Saturday, September 10, 2011 3:40 PM Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers

Re: [PD] Can GEM select a color from an image?

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Sebastian Valenzuela wrote: I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I would then call on these numbers to determine the triggering of samples.

Re: [PD] Can GEM select a color from an image?

2011-09-10 Thread Mathieu Bouchard
On Sun, 11 Sep 2011, Olivier B wrote: I think [pix_mean_color] is what you need. This only finds the average colour, which is usually not the same as the most prevalent colour, even though it is the best estimator. The best estimator means that it's your best guess when someone asks you

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Jonathan Wilkes wrote: Is there a limit on the size of a symbol? The only thing that has traditionally limited the size of symbols used in practice, is the fact that they stay in RAM forever (for the lifetime of the process). Otherwise, people would have used them a lot

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Martin Peach wrote: It should be -export-dynamic, not -export_dynamic. The GCC manpage I have does not mention -export-dynamic other than to say that -rdynamic is a gcc option that corresponds to ld's -export-dynamic option. On which versions of GCC does

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Rick T
I did a gcc -v and this is what came back. I'm using ubuntu 10.04 64bit Linux Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs

[PD] pix_write questions

2011-09-10 Thread Sebastian Valenzuela
Subject: pix_write questions Hello, I would like to capture an image from the streaming video im getting in the pix_video object using pix_write. I would then want the outlet of pix_write to send that captured image to be loaded in pix_image. Here it is again: pix_video pix_write

Re: [PD] pduino rewrite

2011-09-10 Thread Ingo
There is another thing that I just noticed about the pduino test-patch. The mode buttons are suggesting that you can turn of all functions by selecting NONE. This is not true! These buttons have absolutely NO function and should be replaced with the correct commands. While doing this the option

[PD] audio 1.0 not clipping?

2011-09-10 Thread Rich E
Does anyone know why this doesn't clip?: [osc~ 200] | [*~ 1.5] | [dac~] I'm trying this using pd 0.43 and the audio still sounds good (although some extra harmonics can be heard), despite the phases being in the range of [-1.5, 1.5]... ? Cheers, Rich

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Martin Peach
On 2011-09-10 23:31, Mathieu Bouchard wrote: On Sat, 10 Sep 2011, Martin Peach wrote: It should be -export-dynamic, not -export_dynamic. The GCC manpage I have does not mention -export-dynamic other than to say that -rdynamic is a gcc option that corresponds to ld's -export-dynamic option.

Re: [PD] audio 1.0 not clipping?

2011-09-10 Thread Pall Thayer
If you want your signal to clip, use the [clip~] object. On Sun, Sep 11, 2011 at 1:03 AM, Rich E reakina...@gmail.com wrote: Does anyone know why this doesn't clip?: [osc~ 200] | [*~ 1.5] | [dac~] I'm trying this using pd 0.43 and the audio still sounds good (although some extra harmonics

Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-10 Thread Hans-Christoph Steiner
On Sep 10, 2011, at 9:25 PM, Jonathan Wilkes wrote: - Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: Frank Barknecht f...@footils.org; pd-list@iem.at pd-list@iem.at Sent: Saturday, September 10, 2011 3:40 PM Subject: Re:

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Hans-Christoph Steiner
On Sep 11, 2011, at 1:10 AM, Martin Peach wrote: On 2011-09-10 23:31, Mathieu Bouchard wrote: On Sat, 10 Sep 2011, Martin Peach wrote: It should be -export-dynamic, not -export_dynamic. The GCC manpage I have does not mention -export-dynamic other than to say that -rdynamic is a gcc

Re: [PD] Having trouble getting my external to work

2011-09-10 Thread Hans-Christoph Steiner
You can get it from svn: web: http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/template/ svn: http://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/template/ .hc On Sep 10, 2011, at 8:15 PM, Rick T wrote: Greets Hans The site seems be down at the

Re: [PD] audio 1.0 not clipping?

2011-09-10 Thread Mathieu Bouchard
On Sun, 11 Sep 2011, Rich E wrote: Does anyone know why this doesn't clip?: [osc~ 200] | [*~ 1.5] | [dac~] I'm trying this using pd 0.43 and the audio still sounds good (although some extra harmonics can be heard), despite the phases being in the range of [-1.5, 1.5]... ? No, you mean the

Re: [PD] audio 1.0 not clipping?

2011-09-10 Thread Miller Puckette
Hi all -- I assume this is happening on a Macintosh -- on that platform, Pd sends floating point straight to the Mac audio system. Rumor has it that the Mac might compress and/or equalize the signal on its way out, so who knows what you're actually getting. But anyway, (and probably contrary to