Re: [PD] Installing GridFlow on MacOSX
I get gridflow.pd_darwin and gridflow_bundle after : //#include execinfo.h void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; inSize; i++) fprintf(stderr,%d: %s\n,i,symbols[i]); //free(symbols); } in main.c And : ./configure ./configure --no-quartz --no-quicktimeapple (because i get errors) Then i put gridflow folder with gridflow.pd_darwin in '/Contents/Resources/Extra' and gridflow_bundle in '/sw/libruby/1.8/powerpc-darwin'. Then after [import gridflow] i get : setting up Ruby-for-PureData... gridflow.pd_darwin found itself in /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow we are using Ruby version 1.8.2 DIR = /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow ERROR: Cannot load GridFlow-for-Ruby (gridflow.so) [import] loaded library: gridflow Can i do //#include execinfo.h and ./configure ./configure --no-quartz --no-quicktimeapple ? If it's ok what is the next step ? thx. ++ Jack On Thu, 13 Dec 2007, Jack wrote: g++ -bundle -undefined suppress -o gridflow.bundle base/main.o base/ grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/ number.2.o base/number.3.o base/number.4.o format/x11.o format/ quartz.o format/aalib.o format/jpeg.o format/png.o format/ quicktimeapple.o -L/Users/rybn12/lib -L/usr/local/lib -L/sw/lib -lm - L/usr/X11R6/lib -L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/ lib64 -lX11 -lXext -lobjc -framework Cocoa -laa -ljpeg -lpng -lz - framework Quicktime -L. -lruby -ldl -lcrypt -lm /usr/bin/ld: -undefined error or -undefined define_a_way must be used when -twolevel_namespace is in effect apparently, this is fixed in 0.8.5... now if you fix the problem with 0.8.5 the way I just said in another mail, it might work. Please tell me if it does, so that I can fix it in my copy too. _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Installing GridFlow on MacOSX
it seems that i must replace [#out window] by [#out quartz] with macosx. So i have a big problem because i think that it is not good to do ./configure --no-quartz before. Hmm. ++ Jack Oops, i remove 'gridflow_bundle' from the gridflow folder and it was an error, now ALL WORKS FINE Yeah ! I can load GF in PD. But i got [#out window] : couldn't create. Any idea ? ++ Jack I get gridflow.pd_darwin and gridflow_bundle after : //#include execinfo.h void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; inSize; i++) fprintf(stderr,%d: %s\n,i,symbols[i]); // free(symbols); } in main.c And : ./configure ./configure --no-quartz --no-quicktimeapple (because i get errors) Then i put gridflow folder with gridflow.pd_darwin in '/Contents/Resources/Extra' and gridflow_bundle in '/sw/libruby/1.8/powerpc-darwin'. Then after [import gridflow] i get : setting up Ruby-for-PureData... gridflow.pd_darwin found itself in /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow we are using Ruby version 1.8.2 DIR = /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow ERROR: Cannot load GridFlow-for-Ruby (gridflow.so) [import] loaded library: gridflow Can i do //#include execinfo.h and ./configure ./configure --no-quartz --no-quicktimeapple ? If it's ok what is the next step ? thx. ++ Jack On Thu, 13 Dec 2007, Jack wrote: g++ -bundle -undefined suppress -o gridflow.bundle base/main.o base/ grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/ number.2.o base/number.3.o base/number.4.o format/x11.o format/ quartz.o format/aalib.o format/jpeg.o format/png.o format/ quicktimeapple.o -L/Users/rybn12/lib -L/usr/local/lib -L/sw/lib -lm - L/usr/X11R6/lib -L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/ lib64 -lX11 -lXext -lobjc -framework Cocoa -laa -ljpeg -lpng -lz - framework Quicktime -L. -lruby -ldl -lcrypt -lm /usr/bin/ld: -undefined error or -undefined define_a_way must be used when -twolevel_namespace is in effect apparently, this is fixed in 0.8.5... now if you fix the problem with 0.8.5 the way I just said in another mail, it might work. Please tell me if it does, so that I can fix it in my copy too. _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Pix_record issue
Hi, there's a problem with the pix_record object which is atm makes it totally unusable on debian testing. Unofortunately for me , I did a patch which relies on it, and that used to work until May , and when I reopened it in December dont work any more. Neither the official Debian package of Gem nor Pd-extended or CVS compiled version work. I asked around me a couple of other Pders and actually it doesnt look platform specific, since that, most people avoid using it and turn to pix_write, recordmydesktop and miscellaneous exotic workarounds. So I guess it is related to the source code (i read the archive of gem-dev about hard coded 20fps and the many pd crashes that occur ) and I was wondering if there was a way have its bugs corrected (be it by the magical powers of a bounty) or will it stay postponed to the Greek calendas? Is it more reasonable to patch a woraround with pix_write? Thanks for any advice or opinion. O. signature.asc Description: Ceci est une partie de message numériquement signée ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pix_record issue
pix_record crashes also in OSX 10.4 Powerbook PPC Pd version 0.41 i don´t have the gem version with me right now but i could send it soon. best, J On 12/26/07, Olivier Heinry [EMAIL PROTECTED] wrote: Hi, there's a problem with the pix_record object which is atm makes it totally unusable on debian testing. Unofortunately for me , I did a patch which relies on it, and that used to work until May , and when I reopened it in December dont work any more. Neither the official Debian package of Gem nor Pd-extended or CVS compiled version work. I asked around me a couple of other Pders and actually it doesnt look platform specific, since that, most people avoid using it and turn to pix_write, recordmydesktop and miscellaneous exotic workarounds. So I guess it is related to the source code (i read the archive of gem-dev about hard coded 20fps and the many pd crashes that occur ) and I was wondering if there was a way have its bugs corrected (be it by the magical powers of a bounty) or will it stay postponed to the Greek calendas? Is it more reasonable to patch a woraround with pix_write? Thanks for any advice or opinion. O. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Jaime E Oliver LR [EMAIL PROTECTED] www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Question about SQL Placeholder Implementation
Hans, From looking at this (I didn't compile the external yet), but my first thought about your patch is that it would be very cumbersome to have the result sets coming out of the server object. They should be coming out of the query object, as that is the object that is handling that particular result set. I kind of envision that once someone has finished with creating the SQL queries, that they would then create the processing code to handle each query. That is something that is specific to the query, and not the server object. The way that you have this, we would still need to create a separate query and server object for each query. That would make swapping the server object in and out very difficult, as it would require replacing ALL of the server objects for each query. Just to let you know, I need to clean up some more stuff, but I will post my latest version of the server and query objects tomorrow. I have not done a whole lot of testing, but I am able to insert SQL and make the queries, and get results out. It also handles errors and most recent insert row id stuff... Mike On Dec 22, 2007 1:27 AM, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: I just committed my first stabs at a sketch for the [sql_query] object. It doesn't do anything yet, but it does recognize ? placeholders as object arguments and creates inlets. Other than that, the only thing it currently does is crash :). http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/sql_query-help.pd http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/sql_query.c .hc On Dec 21, 2007, at 1:36 PM, Mike McGonagle wrote: On 12/21/07, Mathieu Bouchard [EMAIL PROTECTED] wrote: On Tue, 18 Dec 2007, Mike McGonagle wrote: [query srv_id insert into mytable (id, name, token) values (?f,'?s','?s')] In this example, the first placeholder would expect a Float, with the next two expecting a Symbol (just think of this as a variation on the printf string substitutions). It looks more like the types of [t] [pack] [unpack] [expr] etc. Yes, they are PD types. You don't really need to type your data. SQL is largely typeless: at least at the level of what you can put in one table cell, anything is a string. It becomes typed (but auto-cast) when put in the cell, but rebecomes untyped when taken out of the cell. Yes, I know that these things can be stored in a typeless manner, but the functions that bind the SQL statement with their placeholders can be of any type, as there are functions for the various datatypes. http://www.sqlite.org/c3ref/bind_blob.html This link shows all the different functions used to bind the data to the statement placeholders. http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statement-datatypes.html And if you look at how MySQL does this, while they only provide a single bind function, it does have the datatypes for the data in a structure that gets passed into the bind function. Also, from looking at libdbi, it appears that they don't even bother with placeholders at all. This is not an issue of how the user sees these things, it is how the C code interfaces with the database. So, just how do we do this in a consistent manner when all the different interfaces don't support these things, AND if they do, they do them differently. but considering that the databases need to know the specific data types for each placeholder, heh? do they? SQLite does. MySQL appears to as well. And yes, it is possible to just force everything to be a string/c-string and be done with it. SQLite actually stores everything as a string anyway, despite the defined types in the create statement. Mike _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada -- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list kill your television -- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] xp review
On Dec 20, 2007 1:55 PM, Ed Kelly [EMAIL PROTECTED] wrote: SQL database (mogo - I want your sqlite object for linux) based around the metastudio patching system, but a bit more standardised - i.e. you can I will be sure to include your name on the list of people who I inform about the release. I am cleaning things up a bit, and making the example patches, and will be releasing things tomorrow. Thanks, Mike -- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] xp review
On Dec 24, 2007 10:02 AM, илья .d [EMAIL PROTECTED] wrote: i think employing databases in pd for sound related stuff is not a good idea at all. Could you tell us why you think this? Just saying this isn't a good argument against doing this. Mike ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] complex metronomes sequencing problem
Hallo, Libero Mureddu hat gesagt: // Libero Mureddu wrote: thanks for your message, it clarified a lot my problem. In fact I need a time aware synchronous system, could you send a basic example of that? I can guess that I need a metro plus counter and different [mod]s, but I dont get how to use [moses] and [change] for that. In another attempt that I did, I made a select with many arguments, each one representing a playing point. Unfortunately it seems impossible to send a list of arguments as message and set dynamically all the values for set (at least I was unable to do that). [multiselect] that should do that is broken. Do you have an example of the sample timing based idea that you mentioned? In fact, the compositions I'm working on are not longer than 4-5 minutes. The signal based approach Andy mentioned is in fact a very old one: Old voltage controlled analog synthesizers were sequenced like that. Miller's book has a little chapter on that Audio signals as control at http://crca.ucsd.edu/~msp/techniques/latest/book-html/node47.html Its advantage is that smooth tempo changes are possible. A disadvantage is, that syncing is a bit tricky because phasor~'s phase inlet is not sample accurate, but operates on block sizes. And you need to take great care when converting from control messages to signals, so often you're tied to do signal sequencing all the time. Another approach besides constant metro bangs and a global counter is working with so called inter onset times. IOIs are the delay times between two events. If the IOI between two events is 0, they happen at the same time, if it is 0, one comes first, the other later. [qlist] works with IOIs but you can also build chains of IOIs yourself using [delay] or [pipe]. With IOIs you can build irregular metros. The basic idiom there is to drip or serialize a list of IOIs, either using [list-drip] from [list]-abs or manually using variations of the idiom in list-help.pd. So assuming you have an IOI-list like this: 2 2 1 2 2 2 1, where each number is the IOI in beats. Drip this list one by one into a [* 200]--[delay] where 200 is your beat length, and feed back the delay to list-drip. You get a nice little pattern, which you also can change through simple messages. Then the nice things come with the fact, that you can do various list operations on the lists you use as patterns, like reversing them of selecting random elements. A lot of this stuff is already implemented in the Rhythm abstractions of the Realtime Composition Library (RTC-lib). IOI is called entry delay (ED) time there, but it's the same concept. See attached patch for a simple example. Ciao -- Frank Barknecht _ __footils.org__ ioi-sequencer.pd Description: application/puredata ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pd + asterisk?
Hans-Christoph Steiner wrote: When building on Mac OS X/Intel 10.4.11, I got this: [CC] app_jack.c - app_jack.o app_jack.c:42:20: error: values.h: No such file or directory app_jack.c: In function 'handle_input': app_jack.c:217: error: 'FLT_MAX' undeclared (first use in this function) app_jack.c:217: error: (Each undeclared identifier is reported only once app_jack.c:217: error: for each function it appears in.) app_jack.c: In function 'queue_voice_frame': app_jack.c:407: error: 'FLT_MAX' undeclared (first use in this function) make[1]: *** [app_jack.o] Error 1 make: *** [apps] Error 2 This made it build OK: Index: apps/app_jack.c === --- apps/app_jack.c (revision 94662) +++ apps/app_jack.c (working copy) @@ -39,7 +39,11 @@ ASTERISK_FILE_VERSION(__FILE__, $Revision$) +#ifdef __APPLE__ +#include float.h +#else #include values.h +#endif Oops, and thanks. :) I actually hit the same problem over the weekend when playing on my powerbook. It should be ok now ... -- Russell ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] GEM nightly issue with Pd version 0.40.3.extended-20071224
This seems to be related to this bug, is this happening on an nVidia card? http://sourceforge.net/tracker/index.php? func=detailaid=1839973group_id=64325atid=507079 Maybe you can add your details to that bug report. .hc On Dec 24, 2007, at 1:04 AM, vade wrote: Using pix_movie on OS X 10.5.1 Quicktime 7.3 / Intel results in weird YUV cruft on the rendered output, but it alternates between proper rendering and the weird YUV frame, back and forth and back and forth at the regular framerate. Also, within the helpfile: mode message does not work (console states pix_movieDarwin: no method for 'mode'), same for client_storage. How does one set the texture unit for pix_movie ? a texunit message would be nice. Thanks, pastedGraphic2.jpgpastedGraphic.jpg___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] GEM nightly issue with Pd version 0.40.3.extended-20071224
Thanks for the heads up, ill login to sourceforge and add my details. Im on 10.5, with an ATI x1600 card, so it is not related to nVidia drivers, unless 10.5s new GL architecture has some unified cross vendor GL doo dad :) On Dec 26, 2007, at 2:36 PM, Hans-Christoph Steiner wrote: This seems to be related to this bug, is this happening on an nVidia card? http://sourceforge.net/tracker/index.php? func=detailaid=1839973group_id=64325atid=507079 Maybe you can add your details to that bug report. .hc On Dec 24, 2007, at 1:04 AM, vade wrote: Using pix_movie on OS X 10.5.1 Quicktime 7.3 / Intel results in weird YUV cruft on the rendered output, but it alternates between proper rendering and the weird YUV frame, back and forth and back and forth at the regular framerate. Also, within the helpfile: mode message does not work (console states pix_movieDarwin: no method for 'mode'), same for client_storage. How does one set the texture unit for pix_movie ? a texunit message would be nice. Thanks, pastedGraphic2.jpgpastedGraphic.jpg___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Question on Arduino and PD
I was wondering if there is anyone who is keeping a list of various projects that create Arduino devices that link up with PD? I would be curious to see what others have done, and if they would be willing to share the blueprints for the devices they have built. Thanks, Mike ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pd-extended + Ubuntu Gutsy generic kernel versus rt kernel
Hallo, Jerome Tuncer hat gesagt: // Jerome Tuncer wrote: Interesting point here. Do you mean you edited the /etc/security/limits.conf even when running the non rt kernel and that it made things better than with the non-edited /etc/security/limits.conf ? That's definitely one thing I must try then... The settings in /etc/security/limits.conf are not making relatime performance any better or worse. They don't change the latency behaviour of a system at all. The settings just allow users other than root to run an application with higher rt-priorities. So on a system with bad latency not only root can enjoy the bad latency, other users may do so as well. ;) Ciao -- Frank Barknecht _ __footils.org__ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pd + asterisk?
Chris wrote: I tried it first with 48KHz and only got noise I'm surprised it didn't just crash, actually. :) I have made a lot of fixes to the resampling code. I think it works now, but haven't been able to test since my last set of changes. A really long delay, but that may was because of my setup... (ISDN - Asterisk - IAX over Wlan - Asterisk with Jack) ;) Ha, yes, there is a little bit of noticeable delay in that setup ... Pd patch was a really simple [adc~ 1] for audio input from the first jack-channel, a [osc~ 440] for testing and a [dac~ 1] for audio output to the first jack-channel When I connected the osc~ with the dac~ I heard nothing at my phone, when I connected the adc~ from asterisk to a dac~ patched to alsa I neither heard a thing from the phone. Oh, alright. That makes sense... I don't know if you can patch two jack-channels together in pd, telling app_jack to connect it's channel to a specific pd-channel would be really easy, but having Pd handling it would be more flexible. Anyway, sending something to pd, that there's a new caller definitely is a good idea for various reasons. Thanks for the feedback. Adding a feature to app_jack such that you can not just create the ports, but have them connected to some other jack ports sounds like a reasonable feature to add. Like you said, having more control over connecting jack ports via Pd sounds more flexible, but that will take me some more time to figure out. :) Thanks again for the feedback. It is very much appreciated. -- Russell ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] complex metronomes sequencing problem
Thanks Frank, in fact I started already to study some other examples of yours (the list-rhythm one posted on this list) and I was thinking to look at some list stuff. I will soon look your example, thanks a lot. I have a question about how to install the RTC library on MacOs Pd-extended: I made a folder called my-pd-libraries and added to the pd path (I do this always with max, so it's easy for me to know which libraries I have installed), I also put rtc in the preferences-startup. Unfortunately now the pd-window shows only the loading of GEM at startup, the RTC seems to work, but the other libraries are not loaded. Which is the right way to install it? It would be nice also to have access to other libraries from the pd-browser; is there a way to do that? btw, thanks a lot for porting the RTC-library to pd! Libero Message: 3 Date: Wed, 26 Dec 2007 20:01:10 +0100 From: Frank Barknecht [EMAIL PROTECTED] Subject: Re: [PD] complex metronomes sequencing problem To: pd-list@iem.at Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hallo, Libero Mureddu hat gesagt: // Libero Mureddu wrote: thanks for your message, it clarified a lot my problem. In fact I need a time aware synchronous system, could you send a basic example of that? I can guess that I need a metro plus counter and different [mod]s, but I dont get how to use [moses] and [change] for that. In another attempt that I did, I made a select with many arguments, each one representing a playing point. Unfortunately it seems impossible to send a list of arguments as message and set dynamically all the values for set (at least I was unable to do that). [multiselect] that should do that is broken. Do you have an example of the sample timing based idea that you mentioned? In fact, the compositions I'm working on are not longer than 4-5 minutes. The signal based approach Andy mentioned is in fact a very old one: Old voltage controlled analog synthesizers were sequenced like that. Miller's book has a little chapter on that Audio signals as control at http://crca.ucsd.edu/~msp/techniques/latest/book-html/node47.html Its advantage is that smooth tempo changes are possible. A disadvantage is, that syncing is a bit tricky because phasor~'s phase inlet is not sample accurate, but operates on block sizes. And you need to take great care when converting from control messages to signals, so often you're tied to do signal sequencing all the time. Another approach besides constant metro bangs and a global counter is working with so called inter onset times. IOIs are the delay times between two events. If the IOI between two events is 0, they happen at the same time, if it is 0, one comes first, the other later. [qlist] works with IOIs but you can also build chains of IOIs yourself using [delay] or [pipe]. With IOIs you can build irregular metros. The basic idiom there is to drip or serialize a list of IOIs, either using [list-drip] from [list]-abs or manually using variations of the idiom in list-help.pd. So assuming you have an IOI-list like this: 2 2 1 2 2 2 1, where each number is the IOI in beats. Drip this list one by one into a [* 200]--[delay] where 200 is your beat length, and feed back the delay to list-drip. You get a nice little pattern, which you also can change through simple messages. Then the nice things come with the fact, that you can do various list operations on the lists you use as patterns, like reversing them of selecting random elements. A lot of this stuff is already implemented in the Rhythm abstractions of the Realtime Composition Library (RTC-lib). IOI is called entry delay (ED) time there, but it's the same concept. See attached patch for a simple example. Ciao -- Frank Barknecht _ __footils.org__ -- next part -- A non-text attachment was scrubbed... Name: ioi-sequencer.pd Type: application/puredata Size: 3449 bytes Desc: not available Url : http://lists.puredata.info/pipermail/pd-list/attachments/20071226/78981fed/attachment-0001.bin ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Installing GridFlow on MacOSX
My precedent mail was wrong. [#out window] works fine with macosx. Here what i do (I think this is not the best method because things like camera control don't work. But a lot of exemples work fine. Perhaps Mathieu can help to improve operation) : Put a // like this : //#include execinfo.h void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; inSize; i++) fprintf(stderr,%d:%s\n,i,symbols[i]); // free(symbols); } in main.c Put a // before all lines that contain 'gfpost' in /format/quartz.m and in /format/quicktimeapple.c Copy your gridflow folder in /Pd-extended/Contents/Resources/extra/ In the Terminal : enter 'cd ' and drag your gridflow folder in the Terminal window, then push 'enter' Enter './configure' and after 'make' At the end you should have a 'gridflow.bundle' file and a 'gridflow.pd_darwin' file in your gridflow folder. Start PD. Create a new document. Create the object [import gridflow]. It should work. Hope it will help you. ++ Jack it seems that i must replace [#out window] by [#out quartz] with macosx. So i have a big problem because i think that it is not good to do ./configure --no-quartz before. Hmm. ++ Jack Oops, i remove 'gridflow_bundle' from the gridflow folder and it was an error, now ALL WORKS FINE Yeah ! I can load GF in PD. But i got [#out window] : couldn't create. Any idea ? ++ Jack I get gridflow.pd_darwin and gridflow_bundle after : //#include execinfo.h void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; inSize; i++) fprintf(stderr,%d: %s\n,i,symbols[i]); //free(symbols); } in main.c And : ./configure ./configure --no-quartz --no-quicktimeapple (because i get errors) Then i put gridflow folder with gridflow.pd_darwin in '/Contents/Resources/Extra' and gridflow_bundle in '/sw/libruby/1.8/powerpc-darwin'. Then after [import gridflow] i get : setting up Ruby-for-PureData... gridflow.pd_darwin found itself in /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow we are using Ruby version 1.8.2 DIR = /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow ERROR: Cannot load GridFlow-for-Ruby (gridflow.so) [import] loaded library: gridflow Can i do //#include execinfo.h and ./configure ./configure --no-quartz --no-quicktimeapple ? If it's ok what is the next step ? thx. ++ Jack On Thu, 13 Dec 2007, Jack wrote: g++ -bundle -undefined suppress -o gridflow.bundle base/main.o base/ grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/ number.2.o base/number.3.o base/number.4.o format/x11.o format/ quartz.o format/aalib.o format/jpeg.o format/png.o format/ quicktimeapple.o -L/Users/rybn12/lib -L/usr/local/lib -L/sw/lib -lm - L/usr/X11R6/lib -L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/ lib64 -lX11 -lXext -lobjc -framework Cocoa -laa -ljpeg -lpng -lz - framework Quicktime -L. -lruby -ldl -lcrypt -lm /usr/bin/ld: -undefined error or -undefined define_a_way must be used when -twolevel_namespace is in effect apparently, this is fixed in 0.8.5... now if you fix the problem with 0.8.5 the way I just said in another mail, it might work. Please tell me if it does, so that I can fix it in my copy too. _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] creating external on windows (again)
On Dec 18, 2007, at 10:02 PM, Martin Peach wrote: Hans-Christoph Steiner wrote: On Dec 17, 2007, at 6:10 AM, Martin Peach wrote: Start by defining MSW in the preprocessor defines part of the project. Every Windows compiler will automatically define _WIN32 so that's the preferred macro to use. MSW is a Pd-specific thing. The version of m_pd.h in cvs still has #ifdef MSW all over it, and no mention of _WIN32, so it wouldn't work unless someone puts #ifdef _WIN32 #define MSW #endif at the top of m_pd.h ...or change MSW to _WIN32 throughout the pd source and externals. Miller was convinced to use __APPLE__ and __linux__, but for some reason I don't understand, he is averse to using _WIN32. (AFAIK MSVC and gcc have used _WIN32 since the mid 90's, if not longer). I submitted patches to convert things to __APPLE__ and that was accepted. The patch for _WIN32 was not. You could try submitting one again... .hc http://at.or.at/hans/ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Question about SQL Placeholder Implementation
On Dec 26, 2007 3:24 PM, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: My idea for using this would be to pair the [sql_query] directly to the [sqlite] object, then the rest of the time, the data would be in the form of Pd messages. I think for most people, they'll want to work in Pd messages as much as possible, then at the last possible moment, the Pd messages should be converted into SQL queries. I guess I don't see the pairing as being necessary. There is usually only one object that represents a database, and while there can be two or more (each handling its own set of result sets, I think of this as being multiple data channels into a single database), the result sets still I think should be coming out of the query object, as that is the place that is mostly associated with that particular query. Also, since Pd objects visually represent instances, I think that the [sqlite] server object should represent one database. If there are numerous [sqlite] objects representing the same database, then I think things will get confusing to the Pd user and in the C code. We tried this in hidio, and it turned out to be a pain. I am not sure if this is what you are proposing, though, but that is my understanding of it. Hum, well, I don't see this as being a problem, as a matter of fact, I think this will be a plus, as it would allow the creation of multiple connections to a single database, one that might handle only inserts, another than would handle selects. As it currently stands, each database server instance can only handle one set of results sets at a time. Each instance would free us from having to deal with two different queries trying to make requests at the same time. As it stands right now, each of my server objects is given a PD symbol ID, and that is passed to each of the query objects. The query object sends any requests directly to the server object (yes, I know, that is behind the scenes, but it is similar to a 'netsend' object.). The connections being made are purely symbolic, and can even be changed on each query instance. I'll take a look at your design once its out there. You might be surprised at the differences between our implementations. I will say, though, that I see how you are handling char buffers, and I will have to look into just how PD actually works with 'binbuf' objects. Mike .hc On Dec 26, 2007, at 10:28 AM, Mike McGonagle wrote: Hans, From looking at this (I didn't compile the external yet), but my first thought about your patch is that it would be very cumbersome to have the result sets coming out of the server object. They should be coming out of the query object, as that is the object that is handling that particular result set. I kind of envision that once someone has finished with creating the SQL queries, that they would then create the processing code to handle each query. That is something that is specific to the query, and not the server object. The way that you have this, we would still need to create a separate query and server object for each query. That would make swapping the server object in and out very difficult, as it would require replacing ALL of the server objects for each query. Just to let you know, I need to clean up some more stuff, but I will post my latest version of the server and query objects tomorrow. I have not done a whole lot of testing, but I am able to insert SQL and make the queries, and get results out. It also handles errors and most recent insert row id stuff... Mike On Dec 22, 2007 1:27 AM, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: I just committed my first stabs at a sketch for the [sql_query] object. It doesn't do anything yet, but it does recognize ? placeholders as object arguments and creates inlets. Other than that, the only thing it currently does is crash :). http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/sql_query-help.pd http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/sql_query.c .hc On Dec 21, 2007, at 1:36 PM, Mike McGonagle wrote: On 12/21/07, Mathieu Bouchard [EMAIL PROTECTED] wrote: On Tue, 18 Dec 2007, Mike McGonagle wrote: [query srv_id insert into mytable (id, name, token) values (?f,'?s','?s')] In this example, the first placeholder would expect a Float, with the next two expecting a Symbol (just think of this as a variation on the printf string substitutions). It looks more like the types of [t] [pack] [unpack] [expr] etc. Yes, they are PD types. You don't really need to type your data. SQL is largely typeless: at least at the level of what you can put in one table cell, anything is a string. It becomes typed (but auto-cast) when put in the cell, but rebecomes untyped when taken out of the cell. Yes, I know that these things can be stored in a typeless manner, but the functions that bind the SQL statement with
Re: [PD] symbolatom: why does it not allow to type spaces?
On Dec 19, 2007, at 1:17 AM, Mathieu Bouchard wrote: On Tue, 18 Dec 2007, Chris McCormick wrote: On Tue, Dec 18, 2007 at 06:32:00PM -0500, Mathieu Bouchard wrote: The other bug is in t_tkcmd.c, because there Miller wrote in 656 lines of C what takes ~10 lines in pure Tcl, including trying to preemptively parse Tcl commands instead of asking Tcl to do it, and getting it wrong whenever braces are backslashed. I am curious as to whether you have ever discussed this with Miller, Perhaps, perhaps not, I don't remember and it does not matter. or submitted a nice clean atomic patch to fix it and see if he accepts it into his version? You know that I haven't, you don't need to ask. I can't write nice and clean patches anyway. Is it in the bug tracker anywhere? I can't make my interdependent changes all into nice and clean atomic patches. It would take forever. You haven't thought about the logistics of it and then you think that it would really work. The diff submission process doesn't upscale. But you could submit some key ones, and they would be greatly appreciated additions to Pd. .hc Or is the fix available in Desire Data for Miller to pull into his own version if he wants? Since when does Miller do that?... Not criticising you at all, Oh, you could do it all you like. just curious about whether we can make Pd development more constructive than it has been in the past. Then maybe you could look in the past and see what people said when they were thinking about how to make Pd development more constructive than it was in the past of that past. It would be wonderful to see some of your hard work get into Miller's Pd Lol. I know that you have been frustrated by this in the past, Yeah, but the past is the past, and nowadays I'm much more at peace with the facts, and I just understand that you're going to be frustrated in the future. but my intentions are to have better software, not to annoy you. It's ok. _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ¡El pueblo unido jamás será vencido! ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Question about SQL Placeholder Implementation
My idea for using this would be to pair the [sql_query] directly to the [sqlite] object, then the rest of the time, the data would be in the form of Pd messages. I think for most people, they'll want to work in Pd messages as much as possible, then at the last possible moment, the Pd messages should be converted into SQL queries. Also, since Pd objects visually represent instances, I think that the [sqlite] server object should represent one database. If there are numerous [sqlite] objects representing the same database, then I think things will get confusing to the Pd user and in the C code. We tried this in hidio, and it turned out to be a pain. I am not sure if this is what you are proposing, though, but that is my understanding of it. I'll take a look at your design once its out there. .hc On Dec 26, 2007, at 10:28 AM, Mike McGonagle wrote: Hans, From looking at this (I didn't compile the external yet), but my first thought about your patch is that it would be very cumbersome to have the result sets coming out of the server object. They should be coming out of the query object, as that is the object that is handling that particular result set. I kind of envision that once someone has finished with creating the SQL queries, that they would then create the processing code to handle each query. That is something that is specific to the query, and not the server object. The way that you have this, we would still need to create a separate query and server object for each query. That would make swapping the server object in and out very difficult, as it would require replacing ALL of the server objects for each query. Just to let you know, I need to clean up some more stuff, but I will post my latest version of the server and query objects tomorrow. I have not done a whole lot of testing, but I am able to insert SQL and make the queries, and get results out. It also handles errors and most recent insert row id stuff... Mike On Dec 22, 2007 1:27 AM, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: I just committed my first stabs at a sketch for the [sql_query] object. It doesn't do anything yet, but it does recognize ? placeholders as object arguments and creates inlets. Other than that, the only thing it currently does is crash :). http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/ sql_query-help.pd http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/ sql_query.c .hc On Dec 21, 2007, at 1:36 PM, Mike McGonagle wrote: On 12/21/07, Mathieu Bouchard [EMAIL PROTECTED] wrote: On Tue, 18 Dec 2007, Mike McGonagle wrote: [query srv_id insert into mytable (id, name, token) values (? f,'?s','?s')] In this example, the first placeholder would expect a Float, with the next two expecting a Symbol (just think of this as a variation on the printf string substitutions). It looks more like the types of [t] [pack] [unpack] [expr] etc. Yes, they are PD types. You don't really need to type your data. SQL is largely typeless: at least at the level of what you can put in one table cell, anything is a string. It becomes typed (but auto-cast) when put in the cell, but rebecomes untyped when taken out of the cell. Yes, I know that these things can be stored in a typeless manner, but the functions that bind the SQL statement with their placeholders can be of any type, as there are functions for the various datatypes. http://www.sqlite.org/c3ref/bind_blob.html This link shows all the different functions used to bind the data to the statement placeholders. http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statement- datatypes.html And if you look at how MySQL does this, while they only provide a single bind function, it does have the datatypes for the data in a structure that gets passed into the bind function. Also, from looking at libdbi, it appears that they don't even bother with placeholders at all. This is not an issue of how the user sees these things, it is how the C code interfaces with the database. So, just how do we do this in a consistent manner when all the different interfaces don't support these things, AND if they do, they do them differently. but considering that the databases need to know the specific data types for each placeholder, heh? do they? SQLite does. MySQL appears to as well. And yes, it is possible to just force everything to be a string/c-string and be done with it. SQLite actually stores everything as a string anyway, despite the defined types in the create statement. Mike _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada -- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician