[PD] coll object

2007-12-13 Thread Donal Carey
Hi all Apoligies if this is not the correct place for asking these sorts of questions. Can the 'coll' object read items from a text file? What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try

Re: [PD] PD VideoPedia Project

2007-12-13 Thread giucant
Hallo, i've signed up a 'pilot' PD Videopedia community channel. http://www.youtube.com/PureDataVideopedia user: PureDataVideopedia pass: puredata i've also started organizing playlists: http://www.youtube.com/profile_play_list?user=PureDataVideopedia Please feel free to manage/add/move...

Re: [PD] coll object

2007-12-13 Thread marius schebella
coll uses a special format to store its data, it always uses an ID, then a comma and then the message content. this has some advantages (sorting, lookup) but does not work with all textfiles. I suggest to use textfile or messagefile. or, if you want to use coll, then look at the fileformat and

Re: [PD] coll object

2007-12-13 Thread Hans-Christoph Steiner
This is the right place to ask! :) coll is supposed to be able to open textfiles, but I think they are supposed to have a specific format. It is meant for Max/MSP compatibility, you might have better luck with the native Pd versions: textfile and qlist .hc On Dec 13, 2007, at 9:33 AM,

Re: [PD] coll object

2007-12-13 Thread Donal Carey
Thanks Derek - this took care of the problem ! :) Donal - Original Message - From: Derek Holzer [EMAIL PROTECTED] To: Donal Carey [EMAIL PROTECTED] Cc: pd-list@iem.at Sent: Thursday, December 13, 2007 4:17 PM Subject: Re: [PD] coll object Did you use [col] to create the textfile? Or

[PD] kml files

2007-12-13 Thread marius schebella
hi, google earth uses a special format to save geo information data (kml files). I am trying to build a (simple) gem earth projector and read these files (and also some other file types...) The conversion should be easy, but precision might become a problem. this is a shape in kml file format

Re: [PD] coll object

2007-12-13 Thread Claude Heiland-Allen
Derek Holzer wrote: Did you use [col] to create the textfile? Or is it a random textfile? Formatting is important. A sample: 1, ah_yes.wav; 2, hokoji.loop.wav; 3, kenchoji.loop.wav; Maybe try to format it in this way? Or if it's plain text, use read file.txt (for ';'-terminated

Re: [PD] kml files

2007-12-13 Thread Miller Puckette
If I'm doing it right, single precision float should be able to represent latitude and longitude to within about two meters. If more precision than that is needed, you'll want to use tr to change periods (as well as commas) into spaces so that you get lines like: -112 3348783983763 36

[PD] honk abstractions

2007-12-13 Thread Johannes Kreidler
hi list, over the last months, i've been programming a couple of abstractions to enhance faster and comfortable programming in pd. maybe they're useful for anyone else out there. some ideas arent't new, of course, and there might exist similar objects. i called the collection honk abstractions.

Re: [PD] kml files

2007-12-13 Thread Mathieu Bouchard
On Thu, 13 Dec 2007, Miller Puckette wrote: If I'm doing it right, single precision float should be able to represent latitude and longitude to within about two meters. longitude has to be from -180 to 180. The epsilon is then the previous power of two divided by 2^23. In metres this is 0.61

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Mathieu Bouchard
On Wed, 12 Dec 2007, Hans-Christoph Steiner wrote: This is purely a practical issue. If your patches don't work across Pd and Desiredata, then they are not compatible. It's that simple. Compatibility is one goal that can get in the way of fixing bugs. Why not just write separate bugfree

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Mathieu Bouchard
On Wed, 12 Dec 2007, Hans-Christoph Steiner wrote: Full answer: you use the tcl flags to save the arguments. This works fine in binbufs: -text this is my label -font Lucida Sans 10 bold -fg black -bg green Check tkwidgets/text.c for more info. so, how do you put double-quotes within labels?

Re: [PD] Inlet Proxy object example

2007-12-13 Thread Hans-Christoph Steiner
Thanks for this, it looks like a nice, clean example of how to do this. Very valuable. I'm sure I'll have questions about this stuff. For example, right now I am in the process of figuring out how to parse the object arguments for ?, then dynamically create an inlet for each ? it

[PD] Another simple gemmouse query

2007-12-13 Thread Rebecca Schatz
Hi All, thanks for everyone's responses last time, they were really helpful. I'm just wondering if anyone can explain (as though I'm a five year old) how I would use gemmouse to control the speed at which a sound sample is playing (presuming its looping)?? Thanks in advance! Rebecca.

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Hans-Christoph Steiner
On Dec 13, 2007, at 12:58 PM, Mathieu Bouchard wrote: On Wed, 12 Dec 2007, Hans-Christoph Steiner wrote: This is purely a practical issue. If your patches don't work across Pd and Desiredata, then they are not compatible. It's that simple. Compatibility is one goal that can get in the

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Hans-Christoph Steiner
On Dec 13, 2007, at 1:00 PM, Mathieu Bouchard wrote: On Wed, 12 Dec 2007, Hans-Christoph Steiner wrote: Full answer: you use the tcl flags to save the arguments. This works fine in binbufs: -text this is my label -font Lucida Sans 10 bold -fg black -bg green Check tkwidgets/text.c for

Re: [PD] Inlet Proxy object example

2007-12-13 Thread Claude Heiland-Allen
Hans-Christoph Steiner wrote: I was trying to figure out how this is done in [expr], but that code is super strange, so no luck yet. Anyone else have examples of dynamically creating inlets in C based on object arguments? pdlua does this, the relevant functions in pdlua/src/lua.c are: //

Re: [PD] Another simple gemmouse query

2007-12-13 Thread Jack
Hello, Have a look at this patch. I hope it will help you. ++ Jack gemmouseAndSound.pd Description: Binary data Le 13 déc. 07 à 19:08, Rebecca Schatz a écrit : Hi All, thanks for everyone's responses last time, they were really helpful. I'm just wondering if anyone can explain (as

Re: [PD] Inlet Proxy object example

2007-12-13 Thread Martin Peach
Hans-Christoph Steiner wrote: I was trying to figure out how this is done in [expr], but that code is super strange, so no luck yet. Anyone else have examples of dynamically creating inlets in C based on object arguments? str_new() in mrpeach/str/str.c adds an extra inlet for some of its

Re: [PD] PD VideoPedia Project

2007-12-13 Thread Kyle Klipowicz
Vade~ Please do keep CDM informed. It would be a great PR boost to Pd, and I know that you and Peter Kirn have made some wonderful expositions on the benefits of Pd on the blogs in the past. It would be very much welcomed! ~Kyle On Dec 12, 2007 12:52 PM, vade [EMAIL PROTECTED] wrote: I think

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Mathieu Bouchard
On Thu, 13 Dec 2007, Hans-Christoph Steiner wrote: In the past you have said that you want to make DesireData compatible with Pd. Yes, I want it! I am pointing out a possible incompatibility. You don't even know what compatibility is! If you don't want to make it compatible, that is

Re: [PD] symbolatom: why does it not allow to type spaces?

2007-12-13 Thread Mathieu Bouchard
On Thu, 13 Dec 2007, Hans-Christoph Steiner wrote: I should correct the above line, it's not quite right: -text {this is my label} -font {Lucida Sans 10 bold} -fg black -bg green AFAIK, using the {} as quotes means it should had over everything inside of those brackets. So {} should show a

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: I started a pdpedia page on the topic, please add anything useful: http://wiki.puredata.info/en/proxy_objects You copied from my email. Emails are property of the sender unless otherwise specified. For publicly visible emails it doesn't seem

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: For a place where you are expecting a number, you can protect against a SQL injection attack by merely putting a [float] before the message box with the SQL in it. In other situations, I think that Perl has a pretty decent idea: a SQL quote

Re: [PD] honk abstractions

2007-12-13 Thread Kyle Klipowicz
Johannes~ These objects are very nice, and would be a great contribution to Pd-extended! Thanks so much for sharing them. One thing that would be helpful for you to do is to create a simple object-help.pd file for each object. The reason this is preferred over the help being within the

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: It is useful to represent the pieces in Pd space, so you can understand what's going on. That's one reason why I advocate having the core object represent the connection to the database rather than a query. Otherwise, it's starts to become

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: The other somewhat common style that I saw in my searches was printf patterns (%s, %f, etc). In Pd, [makefilename], [makesymbol], [sprintf], and perhaps others use this syntax. The single ? notation seems to be supported by at least these,

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Tue, 11 Dec 2007, Jamie Bullock wrote: I like this idea. What do you think about using an implicit receive-symbol, '$0-psql.1001', '$0-psql.1002' etc? No, because if you don't have an explicit receive-symbol, then you can't share database connections and logins in the way that you choose,

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Roman Haefeli
On Thu, 2007-12-13 at 14:28 -0500, Mathieu Bouchard wrote: On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: I started a pdpedia page on the topic, please add anything useful: http://wiki.puredata.info/en/proxy_objects You copied from my email. Emails are property of the sender unless

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mathieu Bouchard
On Tue, 11 Dec 2007, IOhannes m zmoelnig wrote: i don't claim that Gem is a good example. however, i also don't see how the data-flow vs control-flow is especially bad in Gem. As long as you pass a gem message around that is only a pointer to a shared state that all objects modify, it's all

Re: [PD] honk abstractions

2007-12-13 Thread Andy Farnell
More goodies. Thanks for making and sharing these Johannes. On Thu, 13 Dec 2007 18:04:25 +0100 Johannes Kreidler [EMAIL PROTECTED] wrote: hi list, over the last months, i've been programming a couple of abstractions to enhance faster and comfortable programming in pd. maybe they're useful

Re: [PD] honk abstractions

2007-12-13 Thread hard off
yes thanks. have just added this to my blog: http://practical-data.wikidot.com ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Mike McGonagle
On Dec 13, 2007 1:59 PM, Mathieu Bouchard [EMAIL PROTECTED] wrote: On Mon, 10 Dec 2007, Hans-Christoph Steiner wrote: The other somewhat common style that I saw in my searches was printf patterns (%s, %f, etc). In Pd, [makefilename], [makesymbol], [sprintf], and perhaps others use this

Re: [PD] kml files

2007-12-13 Thread Mathieu Bouchard
On Thu, 13 Dec 2007, Mathieu Bouchard wrote: longitude has to be from -180 to 180. The epsilon is then the previous power of two divided by 2^23. In metres this is 0.61 metre near equator. This is the worst case. For latitude the precision is twice better than longitude at equator. In

Re: [PD] [psql] object hand-holding

2007-12-13 Thread Chris McCormick
On Thu, Dec 13, 2007 at 03:12:18PM -0500, Mathieu Bouchard wrote: On Tue, 11 Dec 2007, IOhannes m zmoelnig wrote: i don't claim that Gem is a good example. however, i also don't see how the data-flow vs control-flow is especially bad in Gem. As long as you pass a gem message around that

[PD] Gem, arguments to particle domains.

2007-12-13 Thread PSPunch
Hi, all. Below is an excerpt from the help file to [part_source] I found in the latest Pd-extended (stable), describing the arguments understood by the object. --- From here --- domain: one of point, line, triangle, plane, box, sphere, cylinder, cone, blob, disc, rectangle arguments: up to

Re: [PD] windows latency down to 15 milliseconds

2007-12-13 Thread PSPunch
asio4all is certainly a nifty program. I'd like to share a story regarding this application I thought was interesting. -- A few months ago I purchased a MIDI controller by Alesis which came with a soft synth. As far as I know, most soft synths have pages in their manual explaining methods of