Re: [PD] Compiling Pd in Sabayon
On Sat, Jan 18, 2014 at 8:10 PM, IOhannes m zmölnig zmoel...@iem.at wrote: On 01/16/2014 11:50 AM, Alexandros Drymonitis wrote: Having had some problems with audio drop outs in Ubuntu, I am now giving Sabayon 14.01 a try. I'm trying to compile Pd, ./autogen.sh seemed to work fine, but when I type ./configure --enable-jack things go wrong. At the end of configure I get these messages: ./configure: line 15417: syntax error near unexpected token `JACK,' ./configure: line 15417: `PKG_CHECK_MODULES(JACK, jack, have_jack=yes, ok, so there are a number of things here. the first thing you should always do when you are trying to compile Pd on a debian derivative (i don't know sabayon-14.01, but it sounds very much like a ubuntu derivative, which in turn is a debian derivative), is to install all the stuff Debian uses to build the puredata package. $ apt-get build-dep puredata it seems that the PKG_CHECK_MODULES macro has not been expanded in the configure file, which most likely means that you have ignored (or overseen) an error when running autogen.sh. you must install the `pkg-config` package, so that autotools know what to do with the PKG_CHECK_MODULES macro. as roman has noticed, th is not really Pd's configure but the one from portaudio. pkg-config will not be installed with the above apt-get command, because Debian completely disables the portaudio that comes with Pd (and uses the one installed in the portaudio19-dev package). in any case, you can disable portaudio, with the --disable-portaudio flag. as roman has also pointed out, this will only disable building portaudio, but will still try to run pa's configure (which is the one that fails). you can disable recursive configure invocation by adding the --no-recursion flag to configure. $ ./configure --disable-portaudio --disable-portmidi --no-recursion plus some other stuff that don't seem write (out of intuition, not knowledge or experience) for example: checking machine/soundcard.h usability... no checking machine/soundcard.h presence... no checking for machine/soundcard.h... no checking for _oss_ioctl in -lossaudio... no nothing wrong here. I also got lots of warnings when I typed make, like: msgfmt --check --tcl --locale=af -d . af.po af.po:6: warning: header field 'Language' missing in header i don't know anything about this. but i guess it's not problematic (and in any case would only be related to i18n; so if you don't absolutely need a greek pd, i would ignore these warnings). fgmadsr IOhannes PS: debian already comes with puredata-0.45.4 My question is off topic, but since you mentioned it I'll write it here. I downloaded a liveCD image from herehttp://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/but during installation it got stuck at installing the grub boot loader. It was unable to install it to any partition of my hard drive (even the master boot record). Anyone knows why this happens? Also, when setting up the partitions, I assigned the free space I have for Linux to Ext4. I really don't know if this is what I'm supposed to do, but it was the first choice, and it was already chosen. I tried the live image to check how it works on my laptop, but there was no Pd installed there (or jack)...plus this image is 7.2 (i downloaded gnome as I've no idea what's the difference between all these) and on debian's main page you can get 7.3. I guess this should go to some debian forum, but maybe IOhannes knows better about the combination of debian and Pd.. ___ 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] [OT] Pd Debian (was Re: Compiling Pd in Sabayon)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2014-01-20 14:52, Alexandros Drymonitis wrote: My question is off topic, since you are actually changing the topic (this is now about debian rather than sabayon), it's usually a good idea to change the subject as well (which i just did). while we are at it: please dot't CC me; i read the Pd-list and will happily answer there. but since you mentioned it I'll write it here. I downloaded a liveCD image from herehttp://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/but during installation it got stuck at installing the grub boot loader. It was unable to install it to any partition of my hard drive (even the master boot record). Anyone knows why this happens? hard to tell. it might be related to (U)EFI boot: is this a dual boot system with w7 or the like? Also, when setting up the partitions, I assigned the free space I have for Linux to Ext4. I really don't know if this is what I'm supposed to do, but it was the first choice, and it was already chosen. again this is hard to tell from remote. it *sounds* ok (but then you never know). I tried the live image to check how it works on my laptop, but there was no Pd installed there (or jack)... no. usually puredata is considered to exotic for a general purpose OS to be available on a generic liveCD. but then: the important things to checkout out with a liveCD are usually within the range, whether the hardware is supported (gfx card, network card, wifi card; sound card) and you should be able to assess this even without puredata installed. plus this image is 7.2 (i downloaded gnome as I've no idea what's the difference between all these) different desktops for your taste. personally i prefer xfce, as it is very lightweight (and doesn't get too much into my way). and on debian's main page you can get 7.3. but these are *stable* releases of Debian! Debian is huge, and when they talk about *stable* they usually have 24/7 server infrastructure in mind and value stability over actuality: debian 7.3 is a bugfix release for debian-7, which was released in 2013/05; bugfix means that you only get security critical updates, no chance of having a puredata in there, that was released after this date. anyhow, since you most likely don't want to run a 24/7 server system on your laptop, but instead would like to work with up-to-date software, you should choose debian/testing (jessie). get yourself a netinst image of the Current daily snaphosts from [1] (most likely you will want [2]) and a good internet connection. the default desktop is gnome (but you can choose xfce (or some other) in the boot-menu). once the system is up and running, install puredata: # aptitude install puredata fgmasdr IOhannes PS: in general it is not an overly good idea to do too much distribution hopping. if you are not sure, imho the best thing would be to physically get hold of somebody who is properly familiar with *their* distribution (whatever that is), and let them help you getting your system up and running. esp newbies tend to download each and every distro somebody in some obscure forum points them to. in this respect, me recommending Debian was counterproductive. sorry for that. in my last email, i wrote that sabayon is most likely a Debian descendant anyhow. for the record: i just did a check, and it is indeed *not* a derivative of ubuntu (and thus debian), but instead it is derived from gentoo. PPS: i also said that debian already comes with puredata-0.45.4. this was misleading insofar, as Debian wheezy (aka Debian 7 through 7.3; currently Debian stable) comes with 0.43.2; it's only Debian jessie (aka Debian testing) and newer that have Pd-0.45.4. [1] https://www.debian.org/devel/debian-installer/ [2] http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/ -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBCAAGBQJS3TFCAAoJELZQGcR/ejb4gGYP/RJzRtjM+qFFl9wEh4roY7Ar bGjdF99ntb+3nyewRZfqwN9NDZ273o7pcY1bmspHtTpquzaqhZvzMcSCgb7AQz2T T9IesRsFX8IhaTDjGikOOj5M4gwEYhG6TEovTOwll3zu3f9MSyx1O+r5M5sHVdtt xXEZDb0YH9BAunMAsbLkftGtyEEYZCcbwkwj8UxeVP2Jm6b1FiZQBmQr+B75XMDs UhzmsfwD1/szn6ern608CIXQyjSPSAKYJVcM/nFWTvqM9QSx22pjdOhlQeoTi/T3 VRqch/rK6V67GfqmQUwhMYzFYfwo0r5q/0s5E6jmYCk1z8sJvY75E4WYj6d8ZjpJ zbtT2KuaDrHMbphismKZwOFo7esaqtgEds2W7ThzVG/Jd5qtjT2hXh/8eSinMZX9 52lXMnaQ+7yeJ9c9HAnq/yN2tWhXmytTdKESVQqgeWLRccLRkn3Ay2SIq3pMRhuw wuxoqG8cGer/uvB4ziDvBwGpEDl8pGerXnh15faE12o4etw3ehSfPYuq5C5/fpzN 4fcphZEapjSWV/IBpLBuaD/fxkIhsleh8iDtK0SJGr1OT1Z1rksQ9ZeAv+u1d9+5 cHqa3bLi7o5JBmGFpeUiKvkSxHCVELuBTNF7yNLLGEC/rXS2dQQR9wyBg2ZnCWwx kpqyiNX5RvVusZaSAJLe =DTIB -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] confused about $1 in messages
dear list, i'm confused about the $1 replacement in messages. [one two three( |\ | \ | [list split 1] | / | / |/ | / | [; [this $1 $2( [r this] | [print this] output: this: two three this: two three why? rolf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] confused about $1 in messages
Hi Rolf, Try prepending the word list to make it a list . I assume $1 skips the first word as an indicator (if not a number; e.g. float, symbol, list) , while [list split] automatically makes lists and symbols out of the input. On Mon, Jan 20, 2014 at 3:34 PM, ro...@dds.nl wrote: output: this: two three this: two three I think your output was just a little different: this: two three this: list two three It will become ... this: one two this: list two three ... when you change your three words to a list like this: [list one two three( Regards, Funs ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] confused about $1 in messages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2014-01-20 15:34, ro...@dds.nl wrote: dear list, i'm confused about the $1 replacement in messages. [one two three( |\ | \ | [list split 1] | / | / |/ | / | [; [this $1 $2( [r this] | [print this] output: this: two three this: two three why? why not? what did you expect? fgamsdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBCAAGBQJS3UUnAAoJELZQGcR/ejb4/wsP/17YCnqNwVSdHsgxaOkeIkCV CeMIUqEfL+OvlwwFg8f/V68w84g9vDx05ItXb8z5QuwxC/VcYhSx7bP9858buNbE n+bBlP4q46tFmhRGgixdvqAEYOFxlPmbVJ2YYBsodJpJ+lP8oZrdRYXjijwrCLXP K4BlmfBvsMS38CM6xfiIzHa86Y6JUJMbgkFTIEej6pMjju6PTQwqGK2oLN4DpzIk TkhCLh3k5uA2MluJn4m6Ds+4cqtt02/atFom9t3vkbVDeJAiwghyWx1vVcNZwJcm EuMjV9rq+zjax132Peuwu/juLTCoFVIP7hWFg2fcqGq3dVBqrZb3XDEhFWxYuIWC EO5FcxrQpaFpVV88np1nxy2hk0OoUZVVIg+ovTuZpojT1rCIN4nEud+RPd9wpWjO WFpsiOtwNORgRW9GVFCabtXnb6vYWriOPXui2KAZv8NHsXjetUDbiuQdWckM3pu5 qXYEbPseikffJJYEBm4JmFxesBINaX0d1w8COVWK7qQedauwlOKV8x/8OxidtP7+ 0s+W3W5yVffRn42IlfEfWkwi4PMNO2yTDKCEnlabaJAwPTEJcwIYf1VfdkWQDjlt kXn68uSJd6n5MijLqC+zmKJLU2xQlWHohrWPFhdZ+ve9uZSHcQbhCo59DyDcTlHl n84EKeau8adPNblX23oJ =ikUG -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] confused about $1 in messages
Le 20/01/2014 15:34, ro...@dds.nl a écrit : dear list, i'm confused about the $1 replacement in messages. [one two three( |\ | \ | [list split 1] | / | / |/ | / | [; [this $1 $2( [r this] | [print this] output: this: two three this: two three why? rolf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list [one two three( is not a list. [list one two three( is a list. So what you get is *maybe* the normal behavior ? But, yep, what did you expect ? ++ Jack ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] confused about $1 in messages
I'm not sure why the people replying to you are feigning ignorance on how this situation could possibly be confusing. You're chopping off the word one with [list split] and leaving it intact on the other message; yet the dollarsign substitution gives you the same output in both cases. Furthermore, if you use [list length] on each message you will find the two message have a different number of elements. What you don't see, however, is that [list] objects like [list split] interpret incoming messages as list messages-- that is, they add the word list to the beginning of the message. Also, they prepend a list selector to the messages they send out (except for [list trim], of course). But we're not done. The selectors list, float, and symbol are special and do not get counted as elements with [list length]. Yet inside message boxes they _do_ get counted as the selector (i.e., the very first symbol atom in a message) when variable substitution is involved. Once you know those two details it gets a little easier to grasp. This is all further complicated by the fact that there is no dollarsign variable in Pd that can get the selector of an incoming message. So for list two three you can't get list with a dollarsign variable, and likewise for one two three you can't get one with a dollarsign variable. That's a real sticking point for new users, especially because they've no doubt already seen how seamlessly everything works when only numbers are involved. So I'd suggest everyone have a look at the help patch for [list], especially the subpatch labeled [pd about-lists]. In it, Miller Puckette-- the guy who designed and implemented this part of the language-- describes what is happening in some detail. In his explanation he questions his own design, even going so far as calling the very distinction you point out here ugly. It's not the easiest part of Pd to understand, and it's the reason why you're having a problem in the patch example you gave. But if you learn to use the [list] family objects when dealing with data messages it can makes things a lot easier. Since you know those objects will output messages with a list selector, then for everything other than a bang you're guaranteed that [$1( will work properly. -Jonathan On Monday, January 20, 2014 11:33 AM, Jack j...@rybn.org wrote: Le 20/01/2014 15:34, ro...@dds.nl a écrit : dear list, i'm confused about the $1 replacement in messages. [one two three( |\ | \ | [list split 1] | / | / | / | / | [; [this $1 $2( [r this] | [print this] output: this: two three this: two three why? rolf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list [one two three( is not a list. [list one two three( is a list. So what you get is *maybe* the normal behavior ? But, yep, what did you expect ? ++ Jack ___ 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
Re: [PD] confused about $1 in messages
Thanks Jonathan for the detailed response and pointer to the docs. As a longtime (but somewhat sporadic) PD user this list behavior still becomes a bit fuzzy to me sometimes, and this helps make it much more clear. -s On Mon, Jan 20, 2014 at 1:30 PM, Jonathan Wilkes jancs...@yahoo.com wrote: I'm not sure why the people replying to you are feigning ignorance on how this situation could possibly be confusing. You're chopping off the word one with [list split] and leaving it intact on the other message; yet the dollarsign substitution gives you the same output in both cases. Furthermore, if you use [list length] on each message you will find the two message have a different number of elements. What you don't see, however, is that [list] objects like [list split] interpret incoming messages as list messages-- that is, they add the word list to the beginning of the message. Also, they prepend a list selector to the messages they send out (except for [list trim], of course). But we're not done. The selectors list, float, and symbol are special and do not get counted as elements with [list length]. Yet inside message boxes they _do_ get counted as the selector (i.e., the very first symbol atom in a message) when variable substitution is involved. Once you know those two details it gets a little easier to grasp. This is all further complicated by the fact that there is no dollarsign variable in Pd that can get the selector of an incoming message. So for list two three you can't get list with a dollarsign variable, and likewise for one two three you can't get one with a dollarsign variable. That's a real sticking point for new users, especially because they've no doubt already seen how seamlessly everything works when only numbers are involved. So I'd suggest everyone have a look at the help patch for [list], especially the subpatch labeled [pd about-lists]. In it, Miller Puckette-- the guy who designed and implemented this part of the language-- describes what is happening in some detail. In his explanation he questions his own design, even going so far as calling the very distinction you point out here ugly. It's not the easiest part of Pd to understand, and it's the reason why you're having a problem in the patch example you gave. But if you learn to use the [list] family objects when dealing with data messages it can makes things a lot easier. Since you know those objects will output messages with a list selector, then for everything other than a bang you're guaranteed that [$1( will work properly. -Jonathan On Monday, January 20, 2014 11:33 AM, Jack j...@rybn.org wrote: Le 20/01/2014 15:34, ro...@dds.nl a écrit : dear list, i'm confused about the $1 replacement in messages. [one two three( |\ | \ | [list split 1] | / |/ |/ | / | [; [this $1 $2( [r this] | [print this] output: this: two three this: two three why? rolf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list [one two three( is not a list. [list one two three( is a list. So what you get is *maybe* the normal behavior ? But, yep, what did you expect ? ++ Jack ___ 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-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] display image from google search?
Oh wise Pd users! I am wondering if it is possible to so have Pd do search-by-image on google and then display a selected image from the result (using Gem). Any ideas how to accomplish that (or something similar. It doesn't have to be google search) would be welcome Oded ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] confused about $1 in messages
On 01/20/2014 02:07 PM, Spencer Russell wrote: Thanks Jonathan for the detailed response and pointer to the docs. As a longtime (but somewhat sporadic) PD user this list behavior still becomes a bit fuzzy to me sometimes, and this helps make it much more clear. -s It might help some if the selector inside a message box were visually distinct from the rest of the message. Like the little tag widget in QT that's often used in email apps to show someone's nickname and hide the addy. It's basically a rounded rectangle in a pastel color around some text. You could also have different colors for built-ins vs. custom selectors. -Jonathan ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] problem with sort object
Hello i need a list sorting object and there is [sort] in the zexy externals. but it seems that i have found a bug. if I use the following list of unsorted numbers 0.192477 0.00670372 *0.152811* 0.00688959 0.162687 0.00633917 0.188098 0.00716823 0.177974 0.00697544 0.159727 0.00695443 0.166196 0.00645065 0.168316 0.030957 i get this sorted list in return 0.00633917 0.00645065 0.00670372 0.00688959 0.00695443 0.00697544 0.00716823 *0.152811* 0.030957 0.159727 0.162687 0.166196 0.168316 0.177974 0.188098 0.192477 this number in bold font (the third one from the unsorted list) is not correctly sorted it happens with this other list too: unsorted: 11.6279 0.129769 *3.50877* 0.396668 15.873 0.16442 5.26316 0.397614 16.9492 0.16818 3.57143 0.3367 10.4167 0.15758 4.14938 0.19972 sorted: 0.129769 0.15758 0.16442 0.16818 0.19972 0.3367 0.396668 *3.50877* 0.397614 3.57143 4.14938 5.26316 10.4167 11.6279 15.873 16.9492 and the problem seems to be of the object in the third position. Does this make any sense to anybody? can you replicate the error with the same numbers? is there another object to sort the elements of a list or an array? thanks Daniel ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] display image from google search?
I have a patch on linux that use py/ext to do just that. Very custom, not clean but working. Give me some time to upload it on http://pdpatchrepo.info ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] display image from google search?
here's the patch: http://pdpatchrepo.info/patches/patch/80 the demo: https://vimeo.com/84646422 i invite people to subscribe to the RSS feeds: http://pdpatchrepo.info/rss/patch (when a new patch is added) http://pdpatchrepo.info/rss/stream (when a new patch is streamed) à+ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list