Re: [PD] Video problems using GEM

2014-04-17 Thread John Harrison
I wonder if it would work better if you ran 2 Pd instances, loaded the pics
in one and ran the movie in the other, then shared the pics to the movie
instance with [pix_share_read] and [pix_share_write]?


On Thu, Apr 17, 2014 at 10:51 AM, Claire O'Connor oconn...@tcd.ie wrote:

 Hi Chris,

 Thanks for your help. Converting the videos to those formats definitely
 helped. I am using Pure Data in a project which is attempting to create a
 slideshow. I am also using pix_image in conjunction with pix_film for this
 project and everytime I have a video playing and load a picture during that
 time, the video playback slows down. Have you any ideas on how to prevent
 this? I am using JPEGs taken on the same camera as mentioned above (Canon
 Ixus 127 HS) and they are between 3MB and 6MB each. The most images I would
 have banged to load at once is three. Here is some more information on
 those images.

 Any thoughts you might have would be a great help. Thank you!


 On 17 April 2014 14:44, Chris Clepper cgclep...@gmail.com wrote:

 The issue is with the h.264 codec.  On the Mac, compress them as 'Apple
 Intermediate Codec' or ProRes (which comes with what's left of Final Cut
 'Pro').  The files will be much larger in size on the drive but play back
 much better.  When I wrote the OSX pix_film/movie code long ago, it was
 only intended to play back intraframe codecs like the JPEG based ones and
 not MPEG which are consumer delivery formats.

 You should also set the gemwin to render at least 30 frames per second
 and for smoothest playback use 60fps which is the refresh rate of an LCD.
  I think the default is still 15 or 20fps?


 On Thu, Apr 17, 2014 at 7:11 AM, Claire O'Connor oconn...@tcd.ie wrote:

 Hi,

 I am currently working on a project which uses films with GEM. However,
 the films are very glitchy and play very slowly when they load up. I was
 wondering if anyone knew anything about how to fix this problem?

 The videos used were taken on a Canon Ixus 127 HS and last between 10
 and 15 seconds. They are .MOV files and I even tried exporting them as
 smaller files but it didn't change their glitchiness. Here is an example of
 the file before and after the export with the original file being 80.8MB
 and the exported file being 5.9MB. Even with a drastic change in size, the
 difference in playback did not change much at all.

 Any thoughts and ideas welcome. Thanks!

 ___
 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


Re: [PD] GEM noobie: I don't understand this glsl thing... but I need it!

2013-09-09 Thread John Harrison
ExtendedViewToolkit does photo stitching. Maybe it does what you want or
can give you some ideas:
http://puredata.info/Members/Weitsicht/extended-view-toolkit/




On Mon, Sep 9, 2013 at 4:21 PM, Dan Wilcox danomat...@gmail.com wrote:

 glsl is the open gl shader language ... basically a simple C-like language
 for doing graphics stuff on the GPU, see
 https://en.wikipedia.org/wiki/GLSL

 Also, see the OpenGL Orange 
 Bookhttp://www.amazon.com/OpenGL-Shading-Language-3rd-Edition/dp/0321637631

 On Sep 9, 2013, at 5:01 PM, pd-list-requ...@iem.at wrote:

 *From: *David Schaffer schafferda...@hotmail.com
  *Subject: **[PD] GEM noobie: I don't understand this glsl thing... but I
 need it!*
  *Date: *September 9, 2013 4:24:08 PM EDT
 *To: *pd list pd-list@iem.at


  Hi there,

   I'm in the process of writing my own photo
 stitching/assembling abstraction but I'm having a lot of trouble
 understanding what the glsl object do... I've been able to implement an
 edge blurring function by copy/pasting the glsl code from the
 panoramique.pd patch and the panoramique.vert and panoramique.frag
 files to the right places, but it only blurs vertical edges. Can anyone
 tell me how I could blur horizontal edges too? and... what this glsl thing
 is all about. I'm no code expert, so please keep it understandable (!)

 Thanks a lot,

 David

 http://www.flickr.com/photos/schafferdavid/
 https://soundcloud.com/schafferdavid


  
 Dan Wilcox
 @danomatika
 danomatika.com
 robotcowboy.com






 ___
 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] Gem create many cubes

2013-08-02 Thread John Harrison
Here's an example I made of color using [gemlist] by hacking up the
[gemlist] help patch. I think this is the method Dan was talking about.
Hopefully it helps illustrate the idea...

-John

On Fri, Aug 2, 2013 at 4:57 AM, Alexandros Drymonitis adr...@gmail.comwrote:

 There's a recursion tutorial by Claude Heiland-Allen that uses such
 techniques. Maybe it's included in the browser, check it out.


 On 2 Αυγ 2013, at 12:07, Miguel Eduardo Venegas Monroy 
 miguelvmon...@gmail.com wrote:

 i dont undertand.
 ;S


 2013/8/2 Alexandros Drymonitis adr...@gmail.com

 Isn't [repeat] along with [separator] the solution for such things?
 Maybe something like this could work:

 [gemhead]
 |
 [t a a]
 |   |
 |   [cube]
 |
 [separator]
 |
 [repeat]
 |
 [color]
 |
 [translate]

 Incrementing the number in the left inlet of [repeat] should create a new
 copy where you can change its parameters (color, position,etc.), if i'm not
 mistaken...

 maybe you need a separator before [cube] as well, not sure..

 On 2 Αυγ 2013, at 11:16, pured...@11h11.com wrote:

  maybe [gemlist] will help you?
 
  What if i need specific colors for each cubes?
 
  ___
  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




gemlist-color.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem create many cubes

2013-08-02 Thread John Harrison
use [separator] to use absolute instead of relative positions.

On Fri, Aug 2, 2013 at 3:40 PM, pured...@11h11.com wrote:

 Wow, thank you very much! I still have a problem or two.

 I create a [coll] that looks like this:
 1, -4 -4 -1.2926 0.776471 0.878431 0.156863;
 2, -3.88759 -4 -0.8304 0.984314 1 0.0509804;
 3, -3.77518 -4 -1.42148 1 1 0.698039;
 4, -3.66276 -4 -1.0836 1 1 0.917647;
 5, -3.55035 -4 -0.1944 0.811765 0.780392 0.470588;
 (idx, x, y, z, r, g, b).

 Now the way gemlist / until works the the translationXYZ is apply to the
 last cube created i think and not the absolute position.

 What would be the best solution when using a [coll] filled with positions
 - colors (around 2000 - 5000)?





___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pmpd // call for English translation help

2013-06-01 Thread John Harrison

  
  
I lost track of this thread. Did the help with translations work
out? If not, I'm glad to do it. My thought is that I could help with
grammar issues.

This is the latest version of pmpd?

http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/pmpd/

-John

On 05/11/2013 10:40 AM, Cyrille Henry
  wrote:

there
  more to come after!
  
  
  ;-)
  
  c
  
  
  Le 11/05/2013 17:36, Marco Donnarumma a crit :
  
  Hey,

I'm at the airport coming back from LAC con so can't check the
attachment but from what I remember its not too much to correct.


Ill be happy to do it!


Sent from a phone, please forgive brevity and typos.


On 11 May 2013 16:59, "Cyrille Henry" c...@chnry.net
mailto:c...@chnry.net wrote:


 hello Marco,


 do you think you can correct the old pmpd help file?

 (see attachment)

 if there are to much, just do the most important one.


 thanks again

 Cheers

 c



 Le 10/05/2013 12:07, Marco Donnarumma a crit :


 Hey,


 I'm also up for helping.

 Don't know French, but ready to translate "Cyrille
French" and help with help files and examples. :)


 Been spending some good amount of time on the previous
pmpd release.


 M





 2. Re: pmpd // call for English translation
help (Julian Brooks)


 Hi Cyrille,


 I'd be up for this but it will have to be from
mid-June for me.


 If that's any use then absolument. I have to say my
French is pretty dodgy

 though my Cyrille English is pretty good after
having spent so much time

 poring over the pmpd help files:)


 Julian


  
  
  ___
  
  Pd-list@iem.at mailing list
  
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
  
  .
  
  

    
-- 
  John Harrison
  http://johnharrison.cc
  


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pix_multiblob and tracking multiple objects

2013-04-18 Thread John Harrison
I'm not totally clear on the big picture here but it could be you might
save yourself a lot of time and effort doing your blob tracking with
Community Core Vision (CCV) then sending the blob data to Pd through OSC.
After initially doing my blob tracking in Pd only (which did work), I
switched to this CCV -- Pd approach and got better results because of all
of the built-in filtering etc. that is provided with that open-source
cross-platform software.

-John

On Thu, Apr 18, 2013 at 5:22 AM, Ska Frenz skafr...@gmail.com wrote:

 Hi, thank you for the suggestions, I'll check openCv. Can you explain how
 to use morphological filters to clear up the noise in the image? Are
 there examples around? Also, could you please explain me better what do you
 mean with adaptive background subtraction method?

 Thank you for your time :)

 francesco


 2013/4/17 Antoine Villeret antoine.ville...@gmail.com

 hi,

 the segmentation method (how you extract what is your interest from the
 rest of the image) is very critical in video tracking
 background subtraction is a basic way to extract blob and it works only
 in certain conditions of light (if you want to track something outdoor, you
 should use an adaptive background subtraction method)
 moreover, there is no general method to do video tracking, it depends on
 what you want to track and how it is filmed

 so, the first thing is to have a good image, with not too much lighting
 changes, good contrast between background and features to track
 then you can start thinking about segmentation, and the
 segmentation accuracy depends on the quality of the video
 you may need to do something more than just background subtraction, for
 example, you could apply some morphological filter to remove noise
 after that, you can start tracking
 you could also apply a threshold on the blob size to not track very small
 blob
 blob of interest are often surrounded by very small blobs due to
 segmentation noise

 but you can have a look at pix_opencv objects,
 there is [pix_opencv_blobtrack] which implements a whole processing
 chain, including foreground extractor, blob detector, blob tracker and
 follower
 I'm not sure it's included in pd-extended, but you can find some binaries
 on build server

 hope this help

 antoine


 --
 do it yourself
 http://antoine.villeret.free.fr


 2013/4/17 Ska Frenz skafr...@gmail.com

  Hi everyone, this is my first time on the pd-list so I hope I won't do
 anything wrong.
 I'm writing here to get some help about pd tracking objects
 (pix_blob..). I'm using the background subtraction method, to track objects
 and I need help to understand how I can track multiple objects with
 multiples different blobs. I'm trying the pix_multiblob and yes, it show 2
 blobs..but they track the same object. Then basically I do not understand
 how can I make the first blob to follow just one object for all the time
 that specific object is inside the webcam rectangle, and the second blob to
 track another separate object. I cannot find any material that clearly
 talks about this.I attached the patch I'm working on. I'd love to see some
 well-explained examples if you know where to get them.
 Thank you very much for your help :)

 Francesco

 ___
 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


Re: [PD] pix_multiblob and tracking multiple objects

2013-04-18 Thread John Harrison
FWIW I had just the opposite experience with CCV. CCV has built-in
background adaptive subtraction, smoothing, highpass filter, gain,
contrast, etc. all tweakable. It also tracks blobs uniquely as the original
poster is wanting, which is why I thought of it for their needs. I used
[pix_blobtracker] before and it works OK but I found CCV to be overall a
more robust solution than anything I could efficiently come up with.

I use CCV at 60fps 640x480 w/ a ps3eye on ubuntu 10.04 64 bit and the CPU
load is not significant and reduced from my original Pd-only solution. My
CCV/Pd patch has been on exhibit 24/7 for 5 months now without issue so it
also seems stable. I use CCV version 1.4. I also used CCV on another
exhibit with a Win7 64 bit system and that ran for months as well without
issue. That might have been version 1.5 but I don't remember for sure. I
also know there's a newer version of CCV supporting multiple cameras now,
and I have not had experience with this.

Maybe I'm not understanding the flexibility you are looking for that CCV is
not offering you. All I can imagine is that you can't find a way to change
the order of the filtering. I'm not sure that's something you'll find you
actually need though to improve the result of the blob tracking.

Just my $.02.

-John

On Thu, Apr 18, 2013 at 8:42 AM, Antoine Villeret 
antoine.ville...@gmail.com wrote:

 i tried CCV one time but i had some driver and performance issues
 moreover, i can't find an easy way to tune the processing chain
 pd is more flexible but, i agree, could be harder

 --
 do it yourself
 http://antoine.villeret.free.fr


 2013/4/18 John Harrison john.harri...@alum.mit.edu

 I'm not totally clear on the big picture here but it could be you might
 save yourself a lot of time and effort doing your blob tracking with
 Community Core Vision (CCV) then sending the blob data to Pd through OSC.
 After initially doing my blob tracking in Pd only (which did work), I
 switched to this CCV -- Pd approach and got better results because of all
 of the built-in filtering etc. that is provided with that open-source
 cross-platform software.

 -John


 On Thu, Apr 18, 2013 at 5:22 AM, Ska Frenz skafr...@gmail.com wrote:

 Hi, thank you for the suggestions, I'll check openCv. Can you explain
 how to use morphological filters to clear up the noise in the image? Are
 there examples around? Also, could you please explain me better what do you
 mean with adaptive background subtraction method?

 Thank you for your time :)

 francesco


 2013/4/17 Antoine Villeret antoine.ville...@gmail.com

 hi,

 the segmentation method (how you extract what is your interest from the
 rest of the image) is very critical in video tracking
 background subtraction is a basic way to extract blob and it works only
 in certain conditions of light (if you want to track something outdoor, you
 should use an adaptive background subtraction method)
 moreover, there is no general method to do video tracking, it depends
 on what you want to track and how it is filmed

 so, the first thing is to have a good image, with not too much lighting
 changes, good contrast between background and features to track
 then you can start thinking about segmentation, and the
 segmentation accuracy depends on the quality of the video
 you may need to do something more than just background subtraction, for
 example, you could apply some morphological filter to remove noise
 after that, you can start tracking
 you could also apply a threshold on the blob size to not track very
 small blob
 blob of interest are often surrounded by very small blobs due to
 segmentation noise

 but you can have a look at pix_opencv objects,
 there is [pix_opencv_blobtrack] which implements a whole processing
 chain, including foreground extractor, blob detector, blob tracker and
 follower
 I'm not sure it's included in pd-extended, but you can find some
 binaries on build server

 hope this help

 antoine


 --
 do it yourself
 http://antoine.villeret.free.fr


 2013/4/17 Ska Frenz skafr...@gmail.com

  Hi everyone, this is my first time on the pd-list so I hope I won't
 do anything wrong.
 I'm writing here to get some help about pd tracking objects
 (pix_blob..). I'm using the background subtraction method, to track 
 objects
 and I need help to understand how I can track multiple objects with
 multiples different blobs. I'm trying the pix_multiblob and yes, it show 2
 blobs..but they track the same object. Then basically I do not understand
 how can I make the first blob to follow just one object for all the time
 that specific object is inside the webcam rectangle, and the second blob 
 to
 track another separate object. I cannot find any material that clearly
 talks about this.I attached the patch I'm working on. I'd love to see some
 well-explained examples if you know where to get them.
 Thank you very much for your help :)

 Francesco

 ___
 Pd-list@iem.at mailing list

Re: [PD] pix_multiblob and tracking multiple objects

2013-04-18 Thread John Harrison
OK I guess I misunderstood that the original poster was wanting to do all
of that. I know the latest CCV supports multiple cameras for some sort of
big picture so it may actually do what you are asking but I don't know
the details so if you say it doesn't support all of that I'll go with your
claim. I'm sure the OpenCV solutions are great and perhaps in the future
I'll need to learn more about them as my own needs warrant.

I haven't had a problem with the drivers on my cheap ps3eye V4L2 webcam
FWIW. I've also done tracking at 120-125fps 320x240 with 3 said webcams and
buggy drivers, all running simultaneously on one machine. No problems.

John


On Thu, Apr 18, 2013 at 9:23 AM, Antoine Villeret 
antoine.ville...@gmail.com wrote:

 how is it possible to use several cameras, correct perspective on each,
 make a big picture with blending and then tracking on that big picture with
 CCV ?
 this have been done with Pd and pix_opencv and works great (at least if
 you're not using a cheap V4L2 cam with buggy drivers)

 --
 do it yourself
 http://antoine.villeret.free.fr


 2013/4/18 John Harrison john.harri...@alum.mit.edu

 FWIW I had just the opposite experience with CCV. CCV has built-in
 background adaptive subtraction, smoothing, highpass filter, gain,
 contrast, etc. all tweakable. It also tracks blobs uniquely as the original
 poster is wanting, which is why I thought of it for their needs. I used
 [pix_blobtracker] before and it works OK but I found CCV to be overall a
 more robust solution than anything I could efficiently come up with.

 I use CCV at 60fps 640x480 w/ a ps3eye on ubuntu 10.04 64 bit and the CPU
 load is not significant and reduced from my original Pd-only solution. My
 CCV/Pd patch has been on exhibit 24/7 for 5 months now without issue so it
 also seems stable. I use CCV version 1.4. I also used CCV on another
 exhibit with a Win7 64 bit system and that ran for months as well without
 issue. That might have been version 1.5 but I don't remember for sure. I
 also know there's a newer version of CCV supporting multiple cameras now,
 and I have not had experience with this.

 Maybe I'm not understanding the flexibility you are looking for that CCV
 is not offering you. All I can imagine is that you can't find a way to
 change the order of the filtering. I'm not sure that's something you'll
 find you actually need though to improve the result of the blob tracking.

 Just my $.02.

 -John

 On Thu, Apr 18, 2013 at 8:42 AM, Antoine Villeret 
 antoine.ville...@gmail.com wrote:

 i tried CCV one time but i had some driver and performance issues
 moreover, i can't find an easy way to tune the processing chain
 pd is more flexible but, i agree, could be harder

 --
 do it yourself
 http://antoine.villeret.free.fr


 2013/4/18 John Harrison john.harri...@alum.mit.edu

 I'm not totally clear on the big picture here but it could be you might
 save yourself a lot of time and effort doing your blob tracking with
 Community Core Vision (CCV) then sending the blob data to Pd through OSC.
 After initially doing my blob tracking in Pd only (which did work), I
 switched to this CCV -- Pd approach and got better results because of all
 of the built-in filtering etc. that is provided with that open-source
 cross-platform software.

 -John


 On Thu, Apr 18, 2013 at 5:22 AM, Ska Frenz skafr...@gmail.com wrote:

 Hi, thank you for the suggestions, I'll check openCv. Can you explain
 how to use morphological filters to clear up the noise in the image? Are
 there examples around? Also, could you please explain me better what do 
 you
 mean with adaptive background subtraction method?

 Thank you for your time :)

 francesco


 2013/4/17 Antoine Villeret antoine.ville...@gmail.com

 hi,

 the segmentation method (how you extract what is your interest from
 the rest of the image) is very critical in video tracking
 background subtraction is a basic way to extract blob and it works
 only in certain conditions of light (if you want to track something
 outdoor, you should use an adaptive background subtraction method)
 moreover, there is no general method to do video tracking, it depends
 on what you want to track and how it is filmed

 so, the first thing is to have a good image, with not too much
 lighting changes, good contrast between background and features to track
 then you can start thinking about segmentation, and the
 segmentation accuracy depends on the quality of the video
 you may need to do something more than just background subtraction,
 for example, you could apply some morphological filter to remove noise
 after that, you can start tracking
 you could also apply a threshold on the blob size to not track very
 small blob
 blob of interest are often surrounded by very small blobs due to
 segmentation noise

 but you can have a look at pix_opencv objects,
 there is [pix_opencv_blobtrack] which implements a whole processing
 chain, including foreground extractor, blob detector, blob tracker

[PD] gemlist into gemframebuffer?

2013-03-23 Thread John Harrison
I have about 100 spheres I generate with a gemlist which currently display
into a gem window. I'd like to instead put them into a gemframebuffer. Is
there a way to do this? It seems that gemlist is hardcoded to display in
the window? I can think of workarounds i.e. make 100 abstractions of my
sphere but that seems clumsy and perhaps inefficient.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] gemlist into gemframebuffer?

2013-03-23 Thread John Harrison
Solved it by making a loop instead of using gemlist. Sorry for the noise.
See attached for a demo of the solution if you are curious or if you might
have a better/alternative solution.

-John

On Sat, Mar 23, 2013 at 11:47 AM, John Harrison
john.harri...@alum.mit.eduwrote:

 I have about 100 spheres I generate with a gemlist which currently display
 into a gem window. I'd like to instead put them into a gemframebuffer. Is
 there a way to do this? It seems that gemlist is hardcoded to display in
 the window? I can think of workarounds i.e. make 100 abstractions of my
 sphere but that seems clumsy and perhaps inefficient.


multiple spheres in framebuffer.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] gemlist into gemframebuffer?

2013-03-23 Thread John Harrison
As I continue my conversation with myself. :-) I realize that the solution
I posted doesn't work for the current problem I have:

I have values coming in for where to put the spheres which come in between
frames I am rendering. I don't have all of the values at once. Currently
every time a new value comes in, I bang the gemlist. To do this without
gemlist I need a way to store a gemstate/gpointer until the next value
comes in. I can't find any way to store such a beast since it isn't
supported by [pack] and there is no variable type for it. Is there some way
to store the gpointer that I am missing?

On Sat, Mar 23, 2013 at 2:16 PM, John Harrison
john.harri...@alum.mit.eduwrote:

 Solved it by making a loop instead of using gemlist. Sorry for the noise.
 See attached for a demo of the solution if you are curious or if you might
 have a better/alternative solution.

 -John


 On Sat, Mar 23, 2013 at 11:47 AM, John Harrison 
 john.harri...@alum.mit.edu wrote:

 I have about 100 spheres I generate with a gemlist which currently
 display into a gem window. I'd like to instead put them into a
 gemframebuffer. Is there a way to do this? It seems that gemlist is
 hardcoded to display in the window? I can think of workarounds i.e. make
 100 abstractions of my sphere but that seems clumsy and perhaps
 inefficient.



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem and audio pause/clicks

2013-03-16 Thread John Harrison
Based on what you said, one solution would be to run 2 Pd instances. Have
one only generate the audio. Manipulate it using the 2nd patch (the one you
will directly manipulate) using netsend/netreceive. This works especially
well if your CPU has more than one core. It could be [pd~] could address
your problem as well, but I haven't had as good luck with that approach. Or
maybe if you made the audio latency high enough it would help, if latency
is not an issue for you.

On Fri, Mar 15, 2013 at 11:09 PM, Jm Jones juan...@gmail.com wrote:

 Hi, im back learning pd/max. Im playing with both Pd-extended and Max
 6, I know that i must choose one, at least in this stage : )
 Im interested in midi control but also in  visuals, VJing and audio
 visual interaction. Currently im trying the simplest idea that crossed
 my mind, controlling some effects  in gem with data from a peakamp. I
 have glitches and the  audio pauses when i move the windows (specially
 the Gem window), is this normal? if i set up  an environment with 2
 screens (the case in a  gig) can i freely manipulate the patches
 without fear?
 thanks

 --
 Juan Manuel Jones

 ___
 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] [PD-announce] netpd 2.1

2013-03-10 Thread John Harrison

This is fantastic news!

I can't wait to try it the new version! Are the jams happening Thursday 
21:00 GMT as mentioned on the website?


On 03/10/2013 07:12 PM, Roman Haefeli wrote:

Hi all

After almost a year not having announced version 2.0 of netpd, version
2.1 is released now. netpd 2.x is complete rewrite of the netpd that you
may have known from several years ago.

http://www.netpd.org/Download


  
netpd - a Collaborative Realtime Networked Music Making Environment

---

netpd allows many users to have a realtime jam sessions with each other,
connected over the net.
Users might contribute their own netpd-ized patches a.k.a. instruments
or use pre-existing ones. The set of patches, as well as the state of
each is synchronized between clients in order to provide identical
experience for every connected user.

netpd was designed with music in mind, but it might serve well also
other purposes, where realtime state synchronization is a requirement.


release notes
-

2.1
   * Improved reliability of finding a sync peer (breaks compatibility
 with v2.0)
   * Added non-blocking until [netpd-nb-until]
   * Turning DSP off on dynamic creation is now a configurable option
 (see chat's preferences)
   * Prevent errors when checking for non-existing files (adds more
 dependencies, though)
   * Automatically load unpatch by cmdline option (useful for -nogui)
   * Turn on/off printing of all incoming and outgoing OSC message with
 cmdline option
   * Turn on/off state messages for testing and debugging with cmdline
 option

2.0
   * Complete rewrite
   * Messaging layer based on OSC
   * Consequent use of namespaces
   * Improved and more reliable state synchronization
   * Faster patch synchronization
   * More intelligent dependency resolving
   * Multiple instances of the same instrument
   * Non-blocking network layer (less audio drop-outs)
   * Lots of bugfixes


Have fun!
Roman


___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce



--
John Harrison http://johnharrison.cc

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pmpd2d, pmpd3d

2013-02-23 Thread John Harrison
I'm curious the status of pmpd2d and pmpd3d as I do not see them in
Pd-extended 0.43.4. I'm also wondering if there is something I haven't
found yet to create results using pmpd2d to mimic things like iLine2D. I
see examples like 58_pmpd2d_sand.pd (also not included in Pd-extended
0.43.4) which is close to iLine2D but doesn't seem offer the flexibility of
parameters. For example, using pmpd2d how would I create a squishy line
for my masses to react to such that they appear to reacting to a repulsing
magnetic force as opposed to a hard wall?
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pmpd2d, pmpd3d

2013-02-23 Thread John Harrison
OK I just saw some stuff about this in the archives (e.g. try
[pmpd/pmpd2d]) but that didn't work and neither pmpd2d nor its associated
help file appear anywhere on my drive. This is Pd-extended 0.43.4 release
on ubuntu 12.04 32 bit installed using these directions at the top:
http://puredata.info/docs/faq/debian

On Sat, Feb 23, 2013 at 9:00 AM, John Harrison johnharrison...@gmail.comwrote:

 I'm curious the status of pmpd2d and pmpd3d as I do not see them in
 Pd-extended 0.43.4. I'm also wondering if there is something I haven't
 found yet to create results using pmpd2d to mimic things like iLine2D. I
 see examples like 58_pmpd2d_sand.pd (also not included in Pd-extended
 0.43.4) which is close to iLine2D but doesn't seem offer the flexibility of
 parameters. For example, using pmpd2d how would I create a squishy line
 for my masses to react to such that they appear to reacting to a repulsing
 magnetic force as opposed to a hard wall?
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pidip

2013-02-06 Thread John Harrison
I thought there was an earlier version of PiDiP which was and could be
included with Pd-extended because it was released under an
acceptable/compatible license?

On Wed, Feb 6, 2013 at 9:39 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 Just be aware that pidip is not free software because it has clauses in its
 license that restrict what it can be used for.  Including pidip in your
 package means your package can no longer be legally distributed as binaries
 since the pidip license terms conflict with the GPL license terms.

 .hc

 On 02/06/2013 09:27 AM, Ivica Ico Bukvic wrote:
  I just finished cleaning up both pdp and pidip libs to be fully
 auto-buildable
  as part of pd-l2ork (including freenect, artoolkit, opencv, etc.). There
 are a
  number of packages you need to install from launchpad in order to get
 all the
  externals to build. Stay tuned for the next release coming soon with
 these
  enhancements...
 
  ___
  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


Re: [PD] pix_motionblur + rotateXYZ

2012-12-15 Thread John Harrison
I think the issue might be that [pix_motionblur] works with images, not
textures. Therefore you need to change your rotated texture into an image,
then blur that. I modified your patch to do this. See if it does what you
want (attached).

-John

On Sat, Dec 15, 2012 at 2:16 AM, Charles Goyard c...@fsck.fr wrote:

 Hi Cyrille,

  render in a framebuffer and use this image for the motionblur.

 That's what I tried without success.

 Here's a simplified patch (with a single image instead of movie) showing
 the situation.

 Rotation should exhibit some blurring, isn't it ?

 Maybe there's smehting I need to setup ? Like alpha or whatso ?

 Thanks a lot,

 --
 Charles

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




test-blur2.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Installing externals on ubuntu 12.4 omap

2012-09-11 Thread John Harrison
Not directly related to the problem but...I just want to throw out there
that I've spent way too much time trying to get netsend~/netreceive~ to
work robustly and they just don't. I'd highly recommend you look for
another external as I'm unaware of anybody using netsend~/netreceive~ with
any consistent luck.

On Tue, Sep 11, 2012 at 5:00 PM, Miller Puckette m...@ucsd.edu wrote:

 One idea:

 type file  /usr/lib/puredata/extra/netsend~.pd_linux and
 verify that it seems to be for the right arch/OS like this:

 file /usr/lib/puredata/extra/bonk~/bonk~.pd_linux
 /usr/lib/puredata/extra/bonk~/bonk~.pd_linux: ELF 32-bit LSB shared object,
 ARM, version 1 (SYSV), dynamically linked,
 BuildID[sha1]=0x28222313b3309b88df48d6ee2cbcffc31f645aeb, stripped

 That would also verify the file is readable.  I don't know what else could
 go
 wrong but of course that's how things go wrong in general - someone didn't
 know how it would go wrong :)

 On Tue, Sep 11, 2012 at 02:28:42PM -0700, Duncan MacConnell wrote:
  Hey all, long time user first time mailer..
 
  I am trying to install an external.. netsend~, but any external really,
 on
  to omap ubuntu 12.4
  Each time I open a patch with the object, I get error:
 
  /usr/lib/puredata/extra/netsend~.pd_linux:
  /usr/lib/puredata/extra/netsend~.pd_linux: cannot open shared object
 file:
  No such file or directory
 
  The file it complains about (as well as the other .h, .c and .pd_linux
  files) is indeed in the path listed.
  The only documentation I could find mentioned that they had to be in that
  directory.
 
  puredata installed via sudo apt-get install puredata.
 
  Thanks!

  ___
  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


Re: [PD] Pure Data/Arduino course webpage

2012-05-17 Thread John Harrison
Please steal freely. This is all public domain.

Thanks for the tips on making them work on OSX.

-John

On Thu, May 17, 2012 at 4:07 PM, Max abonneme...@revolwear.com wrote:


 Am 14.05.2012 um 14:32 schrieb John Harrison:
  One thing I wrote as an example for the students in the class was a
 color tracker which could track primary colors. I thought I saw a
 conversation on the list earlier were somebody was writing an external for
 color tracking, but at least primary colors can all be tracked in Gem.
 Maybe it's obvious but in case it's not:
 
 http://cratel.wichita.edu/blogs/ee577aspring2012/forum2/code-group3/pd-patches-forum4/2-color-trackers-thread16/

 john, nice patches. may i steal bits of that for my „bewegungsmelder
 collection?
 i had to do three things to make them work for me
 1. add [declare -lib Gem] to make Gem load
 2. add [pix_rgba] because the default colorspace on os x is yuv
 3. invert the Y axis by changein *8 -4 to *-8 +4

 max
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [GEM] PS3eye in Ubuntu 12.04?

2012-05-14 Thread John Harrison

  
  
With an earlier version of ubuntu/Pd-extended my startup script
would set ps3eye parameters by by first running guvcview then
killing it, then running Pd. I know that's a hacky solution but it
works if you do not need to change your controls after the patch has
started.

-John 

On 05/14/2012 06:10 AM, Py Fave wrote:
oops i forgot the list
  
  try apt-get v4l2ucp
  
  you have to invoke it with device as parameter
  
  v4l2ucp /dev/video0
  
  not sure for framerate
  
  2012/5/12 Jaime Oliver jaime.oliv...@gmail.com

  hi all,
  
  does anyone have experience with the ps3eye in ubuntu using
  pd/gem?
  
  I am trying out ubuntu for one of my systems and have the
  following issue.
  
  I am able to control the frame rate, autogain and several
  other
  features of the PS3eye camera from GUVCViewer, but I cannot do
  it from
  GEM.
  
  In GEM, when I open device 0 i get:
  
  videoctl: device 0
  info: proplist numread 13
  info: proplist read Auto Gain float 1
  info: proplist read Auto White Balance float 1
  info: proplist read Brightness float 255
  info: proplist read Contrast float 255
  info: proplist read Exposure float 255
  info: proplist read HFlip float 1
  info: proplist read Light Frequency Filter float 1
  info: proplist read Main Gain float 63
  info: proplist read Sharpness float 63
  info: proplist read VFlip float 1
  info: proplist read bus_info symbol usb-:00:1d.7-5
  info: proplist read card symbol USB Camera-B4.09.24.1
  info: proplist read driver symbol ov534
  info: proplist numwrite 10
  info: proplist write Auto Gain float 1
  info: proplist write Auto White Balance float 1
  info: proplist write Brightness float 255
  info: proplist write Contrast float 255
  info: proplist write Exposure float 255
  info: proplist write HFlip float 1
  info: proplist write Light Frequency Filter float 1
  info: proplist write Main Gain float 63
  info: proplist write Sharpness float 63
  info: proplist write VFlip float 1
  v4l2: GEM: pix_video: Opened video connection 0xE
  
  Could anyone suggest a way of controlling the camera so that
  GEM can
  use higher frame rates?
  
  best,
  
  J
  
  --
  Jaime E Oliver LR
  
  jo2...@columbia.edu
  www.jaimeoliver.pe
  858 750 0924 (cel)
  
  ___
  Pd-list@iem.at
  mailing list
  UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

  
  
  
  
  -- 
  Pierre-Yves Fave
  0612994425
  http://www.5data.net
  
  
  
  ___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list



-- 
  John Harrison
  http://alumni.media.mit.edu/~harrison
  


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Pure Data/Arduino course webpage

2012-05-14 Thread John Harrison

  
  
I thought it might be interesting and maybe even helpful if I shared
the webpage for the Pure Data/Arduino audio/video course I just
finished teaching. This was a one-semester undergraduate-level
course I taught at Wichita State University. Most students were
electrical/computer engineering students that had minimal applied
experience with programming and circuitry before signing up for the
course.

Main course page:

http://cratel.wichita.edu/blogs/ee577aspring2012/

Student final projects with explanatory video and code:

http://cratel.wichita.edu/blogs/ee577aspring2012/category/final-project-report-video/

The web page for the course includes all assignments, my notes,
schedule and a forum where students asked questions, shared cool
projects they found, etc.

One thing I wrote as an example for the students in the class was a
color tracker which could track primary colors. I thought I saw a
conversation on the list earlier were somebody was writing an
external for color tracking, but at least primary colors can all be
tracked in Gem. Maybe it's obvious but in case it's not:

http://cratel.wichita.edu/blogs/ee577aspring2012/forum2/code-group3/pd-patches-forum4/2-color-trackers-thread16/

-John
-- 
  John Harrison
  http://alumni.media.mit.edu/~harrison
  


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] variable receive objects?

2012-05-13 Thread John Harrison
I thought [send13] and [receive13] from the ext13 library were for settable
send and receive? Or am I misunderstanding the question?

I've used those 2 objects a lot and thought they seemed pretty stable...

-John

On Sun, May 13, 2012 at 11:29 AM, Jonathan Wilkes jancs...@yahoo.comwrote:

 Does anyone have a demo crasher, with iem_receive, [r~], or of any of the
 iemguis (which of course have settable receives as well)?

 It's not immediately apparent how to change a receive symbol while a
 message is currently passing through the receive object.  I though Pd was
 supposed to be deterministic.


 -Jonathan



 - Original Message -
  From: Miller Puckette m...@ucsd.edu
  To: Jonathan Wilkes jancs...@yahoo.com
  Cc: IOhannes m zmölnig zmoel...@iem.at; pd-list@iem.at 
 pd-list@iem.at
  Sent: Sunday, May 13, 2012 11:42 AM
  Subject: Re: [PD] variable receive objects?
 
  Hi all -
 
  If you make a settable 'receive' and then change the setting in a
  context
  in which a message is currently passing through the receive object (not
  at all an unlikely thing to have happen) it will crash Pd.  There are
 ways
  around this but I don't know of any that would not slow down the global
  functioning of Pd itself.
 
  cheers
  Miller
 
  On Sun, May 13, 2012 at 07:07:28AM -0700, Jonathan Wilkes wrote:
 
 
 
 
   - Original Message -
From: IOhannes m zmölnig zmoel...@iem.at
To: pd-list@iem.at
Cc:
Sent: Sunday, May 13, 2012 4:03 AM
Subject: Re: [PD] variable receive objects?
   
On 05/12/2012 07:58 PM, Jonathan Wilkes wrote:
 - Original Message -
   
 From: Marian Wegerm...@marianweger.com
 To: pd-list@iem.at
 Cc:
 Sent: Saturday, May 12, 2012 8:09 AM
 Subject: Re: [PD] variable receive objects?
   
 hi!
   
   is there a way to generate a variable receive object
  similar to a
send via
 message box, whose source is defined at load time?
   
 use iem_receive / iem_r from iemlib.
   
 Wow, that is classic Pd development style-- add a tiny feature to
  an
 object, but don't actually improve _that_ object.
   
ever thought that there might be a good reason why [r] is not
  seettable,
and that [iem_r] - while superficially working - exposes exactly the
problems of a settable [r]?
 
   Enlighten me.
 
   
mfgadsr
IOhannes
   
PS: there should be a discussion on this topic in the archives.
 
   I don't find anything of the sort.  Tried searching for settable
  receive, setting receive,
   and iem_receive
 
   -Jonathan
 
   
___
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-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-16 Thread John Harrison
Sorry for the delay on this. I downloaded today's binary build of
Pd-extended for Ubuntu 11.10 32 bit, then ran Pd-extended with -nrt in gdb.
I still get a segfault when opening/deleting/opening test99.pd as an
abstraction. For your convenience, test99.pd is again attached. Here's the
backtrace:

Program received signal SIGSEGV, Segmentation fault.
outlet_anything (x=0x0, s=0x81c7fc0, argc=2, argv=0x82395d8) at m_obj.c:469
469 m_obj.c: No such file or directory.
 in m_obj.c
(gdb) bt
#0  outlet_anything (x=0x0, s=0x81c7fc0, argc=2, argv=0x82395d8) at
m_obj.c:469
#1  0x00c4c8dc in gem::RTE::Outlet::send(std::string, std::vectorgem::any,
std::allocatorgem::any ) () from
/usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#2  0x00db4443 in pix_image::loaded(unsigned int, imageStruct*,
gem::Properties const) () from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#3  0x00db57b3 in pix_image::loadCallback(void*, unsigned int,
imageStruct*, gem::Properties const) () from
/usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#4  0x00c37f30 in gem::image::PixImageThreadLoader::done(unsigned int,
void*)
() from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#5  0x00c49996 in gem::thread::SynchedWorkerThread::dequeue() ()
   from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#6  0x00c37bc0 in gem::image::load::poll() ()
   from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#7  0x00db3b6e in pix_image::pix_image(_symbol*) ()
   from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#8  0x00db3ca8 in create_pix_image(_symbol*) ()
   from /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
#9  0x0808027a in pd_typedmess (x=0x80ff880, s=0x81cac20,
argc=optimized out, argv=0xbfffe18c) at m_class.c:795
#10 0x0808631e in binbuf_eval (x=0x824a158, target=0x80ff880, argc=1,
argv=0x83bd270) at m_binbuf.c:767


On Thu, Apr 5, 2012 at 12:39 PM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2012-04-05 17:35, John Harrison wrote:
  Today's build still fails with same test:
 
  [New Thread 0x1defb70 (LWP 19910)]
  [New Thread 0x2c86b70 (LWP 19911)]
 
  Program received signal SIGSEGV, Segmentation fault.
  outlet_anything (x=0x0, s=0x81c7df0, argc=2, argv=0x82181b8) at
 m_obj.c:469
  469m_obj.c: No such file or directory.
  in m_obj.c
  (gdb) watchdog: signaling pd...
 

 please post a complete backtrace (and turn off realtime mode with -nrt
 when running Pd in gdb)

 fgmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk992LwACgkQkX2Xpv6ydvRcxQCgwF+Sdl5QFz4gKUYxlkvsvI6D
 fh8AoJbD8XPHJ8au3fnLW+pPjv4VQzwQ
 =GEzY
 -END PGP SIGNATURE-




test99.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-05 Thread John Harrison
Today's build still fails with same test:

[New Thread 0x1defb70 (LWP 19910)]
[New Thread 0x2c86b70 (LWP 19911)]

Program received signal SIGSEGV, Segmentation fault.
outlet_anything (x=0x0, s=0x81c7df0, argc=2, argv=0x82181b8) at m_obj.c:469
469 m_obj.c: No such file or directory.
in m_obj.c
(gdb) watchdog: signaling pd...


On Wed, Apr 4, 2012 at 8:53 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 On Apr 4, 2012, at 8:09 AM, IOhannes m zmoelnig wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On 2012-04-04 14:06, John Harrison wrote:
  I'll see if I can figure all that out and test this weekend... I assume
  with git log it will be obvious what commit I need to cherry-pick.
 
  probably i'm a bit too cryptic: Gem's 0.93 git-branch already has the
  cherry-picked fixes applied.
  so checkout the 0.93 branch, compile and see whether it has the problem
  fixed.

 Yes, you were being too cryptic ;)  When there is a commit in Gem's 0.93
 branch, I'm happy to commit it to the Pd-extended 0.43 release branch.
  Done:


 http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=16109

 John, tomorrow's will include this fix, if you can test it again.

 .hc



 

 Terrorism is not an enemy.  It cannot be defeated.  It's a tactic.  It's
 about as sensible to say we declare war on night attacks and expect we're
 going to win that war.  We're not going to win the war on terrorism.
  - retired U.S. Army general, William Odom



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-04 Thread John Harrison
I'll see if I can figure all that out and test this weekend... I assume
with git log it will be obvious what commit I need to cherry-pick.

-John

On Wed, Apr 4, 2012 at 2:08 AM, IOhannes m zmoelnig zmoel...@iem.at wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2012-04-04 03:25, Hans-Christoph Steiner wrote:
  i have hopefully fixed that as well and committed it to Gem's git
 (committish 1458b4f8cf in the 0.93 branch, in case somebody wants to
 backport it)
 
 
  John or IOhannes,
 
  Please let me know when its in the 0.93 branch, and I'll include it in
 Pd-extended.
 

 committed it to Gem's git (committish 1458b4f8cf in the 0.93 branch)

 it would be nice, if john could test it more directly, without having me
 fix the bug in Gem's master, then backport it to Gem's 0.93, then having
 hans backport the changes to Pd-extended, then wait for the nightly
 build and then report that it is not working...

 backporting from Gem's master to Gem's 0.93 is fairly trivial using
 git's cherry-pick. the rest is less fun and should probably only be done
 once the bug is really fixed.

 fmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9781EACgkQkX2Xpv6ydvTGPwCfW9oHv5Cwl0YHmUqvnLYjoe7N
 e0YAoNn2ES0T6jha+hvYXy1IsmxGFZUJ
 =NZrN
 -END PGP SIGNATURE-


 ___
 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] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-03 Thread John Harrison
Today's build (April 3, 2012) still crashes with creating/destroying
test99.pd. The gdb reports something a bit different though:

Program received signal SIGSEGV, Segmentation fault.
0x0807fd79 in pd_typedmess (x=0x647261, s=0x81c7f68, argc=2, argv=0x825fb80)
at m_class.c:707
707 m_class.c: No such file or directory.
in m_class.c
(gdb) watchdog: signaling pd...


On Mon, Apr 2, 2012 at 9:53 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 On Apr 2, 2012, at 3:32 AM, IOhannes m zmoelnig wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On 2012-03-29 19:03, John Harrison wrote:
  I've been trying to track down a seg fault I keep getting and I'm still
  not sure if the problem is Gem or Pd-extended or what.
 
  This is the latest pd-extended 0.43.1 Beta CVS March 29 (today) running
  on Oneric 32 but. I have simplified my patch to a point it doesn't make
  sense anymore but I can still make it crash, so I figure that's what we
  need.
 
  Basically if you create a new patch then make the object [test99 1],
  then copy and paste that object, then change the 1 parameter to a 2 you
  get a seg fault most of the time. If not, creating a [test99 3] or
  [test99 4] should do it, again most of the time.
 
  It seems related with Gem but I'm not sure if it is a Gem bug. I tried
  the same Gem library with Pd vanilla and it didn't crash. On the other
  hand, it seems related to the [pix_image] object in test99. Also you
  need to have the parameters to get the patch to crash, even though the
  patch doesn't take parameters. (The original patch did take parameters.)
 
  Core dump has only this information: Program terminated with signal 11,
  Segmentation fault.
  #0  0x0111ac01 in gem::RTE::Outlet::send(std::string,
  std::vectorgem::any, std::allocatorgem::any ) () from
  /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
 
 
  if i'm not mistaken this has been recently fixed in Gem (around 21st of
  march) and is related to threaded loading of images and deleting objects
  while the load is still in process.
 
  to avoid the problem you can do either of those:
  - - upgrade to a new version of gem (there's a backport of the fix to the
  (stable) 0.93 branch of Gem, though no official release has been made
  yet, containing the fix)
  - - avoid using threaded loading of images, e.g by sending the [thread 0(
  message to [pix_image] before loading images.
  - - avoid deleting a [pix_image] that has pending open requests

 I just committed the latest patches from the 0.93 Gem branch to the
 Pd-extended 0.43 release branch.  They'll be in tomorrow's build.  John,
 could you test this and report back if there are any problems?

 .hc


 

 I hate it when they say, He gave his life for his country.  Nobody gives
 their life for anything.  We steal the lives of these kids.  -Admiral Gene
 LeRocque


 ___
 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] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-03 Thread John Harrison
I can't tell if this is a new crash triggered by the same create/destroy
event or the old crash. The same scenario triggers the crash
(create/destroy test99.pd in a new canvas) but gdb reports something
different. This is on today's build, Oneiric 32 bit. test99.pd was attached
on this thread and is again attached to this email.

-John

On Tue, Apr 3, 2012 at 2:16 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 What's test99.pd?  Is this a new crash with today's build?

 .hc

 On Apr 3, 2012, at 3:03 PM, John Harrison wrote:

 Today's build (April 3, 2012) still crashes with creating/destroying
 test99.pd. The gdb reports something a bit different though:

 Program received signal SIGSEGV, Segmentation fault.
 0x0807fd79 in pd_typedmess (x=0x647261, s=0x81c7f68, argc=2,
 argv=0x825fb80)
 at m_class.c:707
 707 m_class.c: No such file or directory.
 in m_class.c
 (gdb) watchdog: signaling pd...


 On Mon, Apr 2, 2012 at 9:53 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 On Apr 2, 2012, at 3:32 AM, IOhannes m zmoelnig wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On 2012-03-29 19:03, John Harrison wrote:
  I've been trying to track down a seg fault I keep getting and I'm still
  not sure if the problem is Gem or Pd-extended or what.
 
  This is the latest pd-extended 0.43.1 Beta CVS March 29 (today) running
  on Oneric 32 but. I have simplified my patch to a point it doesn't make
  sense anymore but I can still make it crash, so I figure that's what we
  need.
 
  Basically if you create a new patch then make the object [test99 1],
  then copy and paste that object, then change the 1 parameter to a 2 you
  get a seg fault most of the time. If not, creating a [test99 3] or
  [test99 4] should do it, again most of the time.
 
  It seems related with Gem but I'm not sure if it is a Gem bug. I tried
  the same Gem library with Pd vanilla and it didn't crash. On the other
  hand, it seems related to the [pix_image] object in test99. Also you
  need to have the parameters to get the patch to crash, even though the
  patch doesn't take parameters. (The original patch did take
 parameters.)
 
  Core dump has only this information: Program terminated with signal 11,
  Segmentation fault.
  #0  0x0111ac01 in gem::RTE::Outlet::send(std::string,
  std::vectorgem::any, std::allocatorgem::any ) () from
  /usr/lib/pd-extended/extra/Gem/Gem.pd_linux
 
 
  if i'm not mistaken this has been recently fixed in Gem (around 21st of
  march) and is related to threaded loading of images and deleting objects
  while the load is still in process.
 
  to avoid the problem you can do either of those:
  - - upgrade to a new version of gem (there's a backport of the fix to
 the
  (stable) 0.93 branch of Gem, though no official release has been made
  yet, containing the fix)
  - - avoid using threaded loading of images, e.g by sending the [thread
 0(
  message to [pix_image] before loading images.
  - - avoid deleting a [pix_image] that has pending open requests

 I just committed the latest patches from the 0.93 Gem branch to the
 Pd-extended 0.43 release branch.  They'll be in tomorrow's build.  John,
 could you test this and report back if there are any problems?

 .hc


 

 I hate it when they say, He gave his life for his country.  Nobody
 gives their life for anything.  We steal the lives of these kids.  -Admiral
 Gene LeRocque


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list






 

   http://at.or.at/hans/





test99.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-03-29 Thread John Harrison
I've been trying to track down a seg fault I keep getting and I'm still not
sure if the problem is Gem or Pd-extended or what.

This is the latest pd-extended 0.43.1 Beta CVS March 29 (today) running on
Oneric 32 but. I have simplified my patch to a point it doesn't make sense
anymore but I can still make it crash, so I figure that's what we need.

Basically if you create a new patch then make the object [test99 1], then
copy and paste that object, then change the 1 parameter to a 2 you get a
seg fault most of the time. If not, creating a [test99 3] or [test99 4]
should do it, again most of the time.

It seems related with Gem but I'm not sure if it is a Gem bug. I tried the
same Gem library with Pd vanilla and it didn't crash. On the other hand, it
seems related to the [pix_image] object in test99. Also you need to have
the parameters to get the patch to crash, even though the patch doesn't
take parameters. (The original patch did take parameters.)

Core dump has only this information: Program terminated with signal 11,
Segmentation fault.
#0  0x0111ac01 in gem::RTE::Outlet::send(std::string, std::vectorgem::any,
std::allocatorgem::any ) () from
/usr/lib/pd-extended/extra/Gem/Gem.pd_linux

[test99] is attached.


test99.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd extended 0.43-1 nightly missing tk dependency on ubuntu 11.10 (Oneiric)

2012-02-14 Thread John Harrison
Then that would be the case for all stock Oneirics. I think it should be
depends. This will be confusing for novice users, such as those using stock
setups.

-John

On Tue, Feb 14, 2012 at 11:47 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 Sounds like you have --no-install-recommends setup since tk8.5 is a
 Recommends: rather than a Depends:.  Its not Depends: because you can
 actually run Pd -nogui without tk8.5.

 .hc

 On Feb 14, 2012, at 12:08 AM, John Harrison wrote:

 The problem still exists in today's nightly build (Feb 13, 2012). I just
 installed on a new Oneiric machine and had the same issue.

 On Tue, Feb 7, 2012 at 2:12 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 Thanks for reporting, this commit should fix it:

 http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=15956

 .hc

 On Feb 7, 2012, at 3:06 PM, John Harrison wrote:

  Pd extended 0.43-1 nightly gives sh: wish: not found error and won't
 run until tk is loaded.
 
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 You can't steal a gift. Bird gave the world his music, and if you can
 hear it, you can have it. - Dizzy Gillespie








 

 Making boring techno music is really easy with modern tools, but with
 live coding, boring techno is much harder. - Chris McCormick





___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd extended 0.43-1 nightly missing tk dependency on ubuntu 11.10 (Oneiric)

2012-02-14 Thread John Harrison
How many people would chose to use ubuntu Oneiric, use a pre-built binary
for Pd-extended, AND not have X? I would hope that small group would
reconsider using Oneiric for something a bit more streamlined and would
likely be compiling their own minimalist Pd --- certainly not Pd-extended.

I could more easily except the answer of leaving it as Recommends if Pd
did not use X by default or at least if it returned an error message (in an
X window if run from an X window) describing the missing dependency.

While one probably exists, I know of no other pre-built binaries in ubuntu
which intentionally are missing dependencies preventing them from running
in their default modes. Pd's default is to use X.

I think vlc might get around this by having a separate vlc-nox binary? If
we really have to have binaries for ubuntu that don't depend on tk, I'd
recommend that route.

-John

On Tue, Feb 14, 2012 at 3:57 PM, Roman Haefeli reduz...@gmail.com wrote:

 On Tue, 2012-02-14 at 15:11 -0600, John Harrison wrote:
  Then that would be the case for all stock Oneirics. I think it should be
  depends. This will be confusing for novice users, such as those using
 stock
  setups.

 If it would be a 'Depends:', then there wouldn't be a way to install
 Pd(-extended) without pulling in a whole X-server setup. I think it
 should stay a 'Recommends:'.

 Roman



 ___
 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] Pd extended 0.43-1 nightly missing tk dependency on ubuntu 11.10 (Oneiric)

2012-02-13 Thread John Harrison
The problem still exists in today's nightly build (Feb 13, 2012). I just
installed on a new Oneiric machine and had the same issue.

On Tue, Feb 7, 2012 at 2:12 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 Thanks for reporting, this commit should fix it:

 http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=15956

 .hc

 On Feb 7, 2012, at 3:06 PM, John Harrison wrote:

  Pd extended 0.43-1 nightly gives sh: wish: not found error and won't
 run until tk is loaded.
 
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 You can't steal a gift. Bird gave the world his music, and if you can hear
 it, you can have it. - Dizzy Gillespie




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] wiimote report

2012-02-10 Thread John Harrison
Yes I had similar problems and switching to [disis_wiimote] fixed all the
crashes.

OT: is any of L2Ork going to be merged into Pd/PdX at some point? Seems
like there are some good improvements going on there, for example unlimited
undo.

-John

On Fri, Feb 10, 2012 at 9:39 AM, Ivica Ico Bukvic i...@vt.edu wrote:

 Try disis_wiimote (http://l2ork.music.vt.edu/main/?page_id=56). We use it
 as the core controller inside L2Ork with over dozen machines in the same
 room and it has been rock solid for over 2 years. It is multithreaded so
 sending rumble/led messages back to Wiimote does not block Pd. It is also
 driven by metro so you can decide the granularity of updates. Supports
 MotionPlus, etc. Wii Fit support can be added I just didn't bother with it
 yet but it shouldn't be too hard...

  -Original Message-
  From: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] On Behalf
  Of u...@xdv.org
  Sent: Friday, February 10, 2012 9:48 AM
  To: pd-list@iem.at
  Subject: Re: [PD] wiimote report
 
  to answer my question:
  i changed onoff  from int to float and it works such that i can turn
  reports on and off.
 
  it still crashes a lot though ...
  well, seems like i should go for supercollider/osc. or is there another
  wii external for linux?
 
  thanks+ciao,
  ub
 
  it still crashes a lot though, especially with
 
  On 09.02.2012 12:34, u...@xdv.org wrote:
   can someone help me understand, what's going on here?
 
 
  ___
  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] Pd extended 0.43-1 nightly missing tk dependency on ubuntu 11.10 (Oneiric)

2012-02-07 Thread John Harrison
Pd extended 0.43-1 nightly gives sh: wish: not found error and won't run
until tk is loaded.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pd-extended 0.42-5 zexy ~, ~, !=~, ==~ not working (win32, linux)

2012-01-29 Thread John Harrison
I've tried to create zexy's  ~, ~, !=~, ==~ objects in 0.42-5 for both
win32 and linux and they do not create successfully on either platform. Am
I doing something silly? If not, is there a workaround for 0.42-5?
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] No loadbang in dynamically created objects

2011-08-20 Thread John Harrison
This is expected behavior and has been discussed on the list several times.
You can send loadbang as a message to the abstraction or use initbang.

Sent from my cell...
On Aug 20, 2011 12:46 PM, brandon zeeb zeeb.bran...@gmail.com wrote:

 Hey dudes,

 I'm on 0.43-0 vanilla and just noticed that [loadbang] bangs are not being
fired within abstractions which are created dynamically.  Am I missing
something, or did I just stumble upon a bug?

 Cheers,

 --
 Brandon Zeeb



 ___
 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] Desktop Screen Capture

2011-08-07 Thread John Harrison

Here's two methods that came up when I asked about this:
http://lists.puredata.info/pipermail/pd-list/2010-08/082168.html
http://lists.puredata.info/pipermail/pd-list/2010-08/082173.html

I vaguely remember that there might be a way to do this just with 
gridflow as well?


I went with webcam studio and it worked great, but I think that might be 
Linux only.


-John
On 08/06/2011 09:21 PM, Andreas Eberharter wrote:

Hi all,

I would like to create a patch, which allows the capture of the desktop screen 
and at the same time the iSight camera. If you are familiar with Silverpack 
http://silverbackapp.com/ it is basically, what I would like to achieve with 
pd/gem.

I am just starting, so if this question was asked already once, please point me 
to the right direction (I used the search on the archives, but could not find 
what I was searching for)

I am on a MacBook Pro running OS X 10.7.

I have played with the examples and capturing video from the iSight camera 
works really nice, what I can't find though, is a screen capture option. Is 
this possible?

Thank you for your help,
Greetings,
Andreas
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -  
http://lists.puredata.info/listinfo/pd-list



--
John Harrison http://alumni.media.mit.edu/~harrison

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Extended version for Natty AMD64?

2011-07-03 Thread John Harrison
I used 64 bit from lucid on my natty machine. I think I had to use gem from
the repos but otherwise it works fine.

Sent from my cell...
On Jul 3, 2011 10:57 AM, Mario Mey mario...@gmail.com wrote:
 Hello, everybody. Is there any build for Natty AMD64 of the Extended
 version? For the moment, I don't want to compile it...

 Thanks!

 ___
 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] getting pix_blobtracker to work

2011-04-11 Thread John Harrison
The issue of mtx_* not creating on PdX and how to solve has come up on 
this list several times now so you might check the archives. Yes mtx_* 
is an abbreviation for mtx_mul. pix_blobtracker works well for me in PdX 
--- just used it on a project last week. IOhannes mentioned it on the 
list just a few months ago as a way to track blobs so I think it's as 
current/good as any ready-made solution for this that I know of. I had 
to do the same fiddling as you to get it to go.


-John

On 04/11/2011 02:28 AM, Matteo Sisti Sette wrote:

Hi,

In Pd Extended, pix_blobtracker doesn't work because it contains 
objects from the iemmatrix library which is not included at startup. I 
guess I can fix that by manually loading those directories, but 
pix_blobtracker also uses a [mtx_*] object that doesn't seem to exist 
in the iemmatrix library.


Is mtx_* somewhere else? Or has it been replaced by mtx_mul?

Is pix_blobtracker the recommended way to track multiple blobs or has 
it been superseded by some other abstraction or object?


thanks
m.

___
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] udp broadcasting with netsend: permission denied in Linux

2011-03-31 Thread John Harrison
Can you say more about disis netsend vs netsend?

Btw I've been using netsend and netreceive to broadcast through a network on
linux without problems for years. My guess is you have a firewall up...

...sent from my cell
On Mar 31, 2011 11:11 AM, Ivica Ico Bukvic i...@vt.edu wrote:
 Use disis_netsend/netreceive, which provide this and other
functionalities.

 Ico

 -Original Message-
 From: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] On Behalf
 Of Matteo Sisti Sette
 Sent: Thursday, March 31, 2011 10:51 AM
 To: PD-List
 Subject: Re: [PD] udp broadcasting with netsend: permission denied in
 Linux

 By the way, if I try to connect to 192.168.2.255 (which is the broadcast
 address for my actual local network) instead of 255.255.255.255, I get
 the same error in the terminal, but in this case, in the Pd console I
 also see the message bad host?

 On 03/31/2011 04:46 PM, Matteo Sisti Sette wrote:
  Hi,
 
  I've used netsend for broadcasting UDP packets to the local network
 for
  years, connecting to 255.255.255.255:5000 (or any other port 1024)
 and
  I never had problems under Windows.
 
  However in Linux it doesn't work, it doesn't connect. If I run Pd from
a
  terminal, I see this error in the terminal output: connecting stream
  socket: Permission denied (13) (one of the few errors that don't
appear
  in the pd console btw).
 
  I remember mentioning this some time ago and being told that it had
 been
  fixed, but it seems it isn't.
 
  Is there a way to circumvent this and be able to broadcast udp
 packets
  with netsend?
 
  thanks
  m.


 ___
 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


Re: [PD] Dynamic patching with audio - review

2011-03-16 Thread John Harrison
Yeah the zak system. That's what I used. I recall it was a bit of a mental
teaser as you said.

On Wed, Mar 16, 2011 at 4:23 AM, Andy Farnell padawa...@obiwannabe.co.ukwrote:



 And if you're going to use Csound there's the zak system of course.
 It's a pig to set up and very hard mental work to keep track of
 which streams have been activated or cleared to avoid clips or
 feedback... but it works in practice to give any to any dynamic
 patching so you can have modular synths being gracefully repatched
 at runtime.

 a.



 On Tue, 15 Mar 2011 23:29:17 -0500
 John Harrison john.harri...@alum.mit.edu wrote:

  Not that I am necessarily recommending it but, Csound will allow you to
  instantiate multiple instances of objects at runtime. I did this with
  Csound awhile ago and haven't touched Csound since but the general idea
  was create all your instruments to accept parameters and store
  input/output connections etc. in tables. You tell Csound to read its
  score file from stdin and you create/destroy instruments with various
  parameters by sending to Csound's stdin using the general-purpose
  computer language of your choice. (I used Python). Hopefully Csound has
  graduated to allowing instances of instruments to be created through OSC
  as well as stdin at this point.
 
  -John

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Dynamic patching with audio - review

2011-03-15 Thread John Harrison
Not that I am necessarily recommending it but, Csound will allow you to 
instantiate multiple instances of objects at runtime. I did this with 
Csound awhile ago and haven't touched Csound since but the general idea 
was create all your instruments to accept parameters and store 
input/output connections etc. in tables. You tell Csound to read its 
score file from stdin and you create/destroy instruments with various 
parameters by sending to Csound's stdin using the general-purpose 
computer language of your choice. (I used Python). Hopefully Csound has 
graduated to allowing instances of instruments to be created through OSC 
as well as stdin at this point.


-John

On 03/15/2011 03:15 AM, Frank Barknecht wrote:

Hi,

On Tue, Mar 15, 2011 at 12:07:05AM +0100, Jérôme Abel wrote:

I'm working on an open source multiuser game with a sound experimentation focus.
The choosen sound engine is our favorite one Pure Data. Let's imagine populate 
a 3D world with pd sound patchs !
The issue is to create/destroy audio abstractions (made by users/artists) and 
connect/disconnect them.
The audio path system must be compliant with paths in a 3D world. A sound pass 
through rooms and apertures :
http://abel.jerome.free.fr/newatlantis/AudioDynamicPatching/images/pathfinding.png

It must be dynamic like a game. I was enjoying doing this with pd, but ... my 
hair become more and more white.
It's quite difficult.

I propose here to write a little review of this issue. To be completed, to be 
rectified.
Don't forget that the best is the easiest way (less compilation, less 
dependancies, less bad tricks, etc.) and cross-platform (Linux/MacOSX/Win).

...

4 - PURE DATA - LIBPD
-
Let's come back with Pd. We know that Pd was used in a game Spore :
http://lists.puredata.info/pipermail/pd-list/2007-11/056212.html

It could be a solution to handle dynamic audio patching. Any feedbacks ?

Libpd turns Pd into an embeddable library, so you can use Pd as a sound engine 
in mobile phone apps, games, web pages, and art projects
http://puredata.info/community/projects/software/libpd/

libpd will make a complete instance of Pd available inside of another
application, but it does not deal with instantiating single objects. This is
still only possible with the usual mechanism Pd offers, i.e. dynamic
patching, and it has the same disadvantages.

Maybe LuaAV would be worth a look, too?

Ciao




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] memento crashing in Pdextended 0.42-5 Ubuntu 10.10

2011-03-14 Thread John Harrison
Memento crashes  Pdextended 0.42-5 on Ubuntu 10.10. Steps to reproduce:
- open 5-tut.pd (in /usr/lib/pd-extended/extra/memento/manual)
- try to interact with the patch/tutorial in any way as instructed in the
patch

I got pool as a binary from here:
http://g.org/ext/beta/linux/pd/


-- 
John
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How do I squeeze more performance out of Gem?

2011-03-09 Thread John Harrison
thanks for these suggestions. Here's how it's going so far:

On Wed, Mar 9, 2011 at 1:59 AM, cyrille henry c...@chnry.net wrote:

 hello,

 - try using a display list to render a sphere, so that every point don't
 have to be send for every sphere.
 see exemple 09.openGL/02.displaylist
 you can also use a model with a sphere.obj to have the same result.


if the spheres are all moving at once, would a display list still help?
Seems like recompilation would have to happen for every sphere for every
frame? I haven't tried the model yet...


 - gemhead are slow. i usually have better result using 1 gemhead and 200
 separator, or 200 gemlist, than using 200 gemhead.


It actually performed marginally slower with 1 gemhead and 200 sep and also
slower with 200 gemlist


 - try to put somewhere :
 [gemhead 1]
 [GEMglLightModeli GL_LIGHT_MODEL_TWO_SIDE GL_FALSE]

 it help a lot on my computer (GT 425M), but i don't know on other computer.
 could you try and tell me the performance improvement?
 (you may have to reverse some light to have close lighting result).


From your earlier email thread on this list, I already tried that before. No
difference.


 - don't forget to check that you CPU run fullspeed. (sometimes pd use more
 than 100% cpu, but the cpu monitor fail to detect that and the cpu still run
 at low speed)


yeah it appears that happened, but forcing the CPU to run full speed makes
no difference for some reason.



 - start pd -noaudio if it is an option.


Already was done.


 - you can separate the physical model and the other calculation in a
 separate pd instance than Gem. using pd~. This may help


If I turn off rendering, CPU usage with physical model being calculated
hovers at about 4%, so this doesn't seem worth the effort. Am I missing
something?

Sending [res 2( to curve also made no difference.



 well, i think all of this should be enough to draw 10 time more spheres
 that what you need, at a good fps.


So far my mileage is varying! :-)

Thanks for the help. I guess I'll try the model next.

-John


 Cyrille

 Le 09/03/2011 02:16, John Harrison a écrit :

 I'm working with a high-powered machine but I'm running into a bottleneck
 with Gem. I'm running at 20fps and at times was intending to have as many as
 200+ lines and spheres on a 1024x768 screen. At around 60 lines/spheres I'm
 already at 50% CPU. I know the problem is Gem because if I stop rendering,
 CPU immediately drops to less than 4%. There's some other manipulations I
 use periodically too causing another 40%+ of CPU so I'm a far cry from my
 200+ intention while saturating my computational limits. If I turn lighting
 off, BTW, I already gain 10% CPU back (not an option I want to explore.)

 I'm not sure what to do and was even considering breaking the rendering
 into independent screens (this machine has 8 cores), then using pix_share to
 recombine them in a master instance. I'd have to use pix_snap to capture
 each of the Gem windows in each of the processes, and each one draws about
 40% CPU when capturing a 1024x768 buffer at 20 fps so besides creating a
 headache for myself this is going to be a lot of CPU overhead. I also don't
 know how the graphics card is fitting into all of this, if it would become a
 bottleneck at some point, how to tell, etc. What's the top command for a
 graphics card? :-)

 These lines and spheres are nothing special, btw. No texturing, just
 translates, colors, and alpha. the lines are made with curves of 2 points
 each.

 Is there some trick or some area of programming or using the graphics card
 I need to be considering? Any thoughts/advice would be appreciated. It's
 strange --- I don't think I'm seeing performance on this machine much better
 than on my not-so-special laptop.

 This machine has Nvidia GeForce GTX 460, Ubuntu 10.10 32 bit, Pd-extended
 0.42-5 binary from the Pure Data site, Intel i7 3Ghz. I'm using Nvidia
 proprietary driver 290.19.06.

 When I say stuff like 40% CPU I mean for a single core. So in theory
 this machine has 800% CPU limit in my nomenclature. But since an instance of
 Pd/Gem runs on only a single core, I have a limit of 100% for any single
 Pd/Gem instance (as most of you already know I'm sure.)

 -John

 P.S. I'm loving working with Gem and pmpd these days. Awesome stuff, guys!
 :-)







 ___
 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] How do I squeeze more performance out of Gem?

2011-03-09 Thread John Harrison

 On Wed, Mar 9, 2011 at 1:59 AM, cyrille henry c...@chnry.net mailto:
 c...@chnry.net wrote:

hello,

- try using a display list to render a sphere, so that every point
 don't have to be send for every sphere.
see exemple 09.openGL/02.displaylist
you can also use a model with a sphere.obj to have the same result.

 if the spheres are all moving at once, would a display list still help?
 Seems like recompilation would have to happen for every sphere for every
 frame? I haven't tried the model yet...

  yes, the display list will help to render 1 single sphere.
 you have to call it 200 times.


 Ok I'm seeing a huge performance difference between using 200 of [sphere
size-doesn't-matter 20] and [sphere size-doesn't-matter 30]. Huge. So if
I want to keep the sphere with 30 points, I'm thinking gemlist or model are
my answer. I'll try both and report back, unless you have a strong
recommendation for one or the other to save me time.

This list is awesome. Where else could I find help like this? :-)

-John
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How do I squeeze more performance out of Gem?

2011-03-09 Thread John Harrison
Using Cyrille's test patch for speed which he sent into the list a week or
so ago, I tried creating multiple spheres, gemlists, and models. The sphere
is getting the best performance results, unfortunately. Attached is my test
patch. I just connected [repeat] to either [sphere] [GEMglCallList] or
[model] in the patch. The sphere model I used has probably got way too many
points (just found it on the 'net) but my hope was that as the vertices were
static it wouldn't matter.

http://www.eecs.umich.edu/~guskov/eecs598-1/sphere.obj

maybe one with less vertices will help. I can try...

-John

On Wed, Mar 9, 2011 at 9:48 AM, chris clepper cgclep...@gmail.com wrote:

 A model is the way to go since the vertex data is static.  Ideally for
 situations like this there would be one object that loads a single model and
 several clients that just call the display list.  Although there is a lot of
 memory on GPUs now so 200 models of a sphere won't take up that much.

 On Wed, Mar 9, 2011 at 10:32 AM, John Harrison 
 johnharrison...@gmail.comwrote:



 On Wed, Mar 9, 2011 at 1:59 AM, cyrille henry c...@chnry.net mailto:
 c...@chnry.net wrote:

hello,

- try using a display list to render a sphere, so that every point
 don't have to be send for every sphere.
see exemple 09.openGL/02.displaylist
you can also use a model with a sphere.obj to have the same result.

 if the spheres are all moving at once, would a display list still help?
 Seems like recompilation would have to happen for every sphere for every
 frame? I haven't tried the model yet...

  yes, the display list will help to render 1 single sphere.
 you have to call it 200 times.


 Ok I'm seeing a huge performance difference between using 200 of [sphere
 size-doesn't-matter 20] and [sphere size-doesn't-matter 30]. Huge. So if
 I want to keep the sphere with 30 points, I'm thinking gemlist or model are
 my answer. I'll try both and report back, unless you have a strong
 recommendation for one or the other to save me time.

 This list is awesome. Where else could I find help like this? :-)

 -John

 ___

 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





-- 
John
http://alumni.media.mit.edu/~harrison/


sphere-gemlist-model.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How do I squeeze more performance out of Gem?

2011-03-09 Thread John Harrison
It appears I'm actually getting better results from [gemlist] too with
lighting off. But how do your results change with lighting on? For me, with
lighting on, they seem about the same.

If you have your sphere.obj model with 900 triangles handy, I'd love to try
it.

-John

On Wed, Mar 9, 2011 at 12:19 PM, cyrille henry c...@chnry.net wrote:

 here, at 20fps, no lighting, i can draw about 500 model with your
 sphere.obj.
 1000 sphere 30, and about 3500 display list of sphere 30.
 using an other sphere.obj with about 900 triangles, i've got the same
 performance than with the display list.

 it really is strange that the sphere is the fastest on your computer.

 Cyrille


 Le 09/03/2011 19:08, John Harrison a écrit :

 Using Cyrille's test patch for speed which he sent into the list a week or
 so ago, I tried creating multiple spheres, gemlists, and models. The sphere
 is getting the best performance results, unfortunately. Attached is my test
 patch. I just connected [repeat] to either [sphere] [GEMglCallList] or
 [model] in the patch. The sphere model I used has probably got way too many
 points (just found it on the 'net) but my hope was that as the vertices were
 static it wouldn't matter.

 http://www.eecs.umich.edu/~guskov/eecs598-1/sphere.obj

 maybe one with less vertices will help. I can try...

 -John

 On Wed, Mar 9, 2011 at 9:48 AM, chris clepper cgclep...@gmail.commailto:
 cgclep...@gmail.com wrote:

A model is the way to go since the vertex data is static.  Ideally for
 situations like this there would be one object that loads a single model and
 several clients that just call the display list.  Although there is a lot of
 memory on GPUs now so 200 models of a sphere won't take up that much.

On Wed, Mar 9, 2011 at 10:32 AM, John Harrison 
 johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:




On Wed, Mar 9, 2011 at 1:59 AM, cyrille henry 
 c...@chnry.net mailto:c...@chnry.net mailto:c...@chnry.net mailto:
 c...@chnry.net wrote:

hello,

- try using a display list to render a sphere, so that
 every point don't have to be send for every sphere.
see exemple 09.openGL/02.displaylist
you can also use a model with a sphere.obj to have the
 same result.

if the spheres are all moving at once, would a display list
 still help? Seems like recompilation would have to happen for every sphere
 for every frame? I haven't tried the model yet...

yes, the display list will help to render 1 single sphere.
you have to call it 200 times.


Ok I'm seeing a huge performance difference between using 200 of
 [sphere size-doesn't-matter 20] and [sphere size-doesn't-matter 30].
 Huge. So if I want to keep the sphere with 30 points, I'm thinking gemlist
 or model are my answer. I'll try both and report back, unless you have a
 strong recommendation for one or the other to save me time.

This list is awesome. Where else could I find help like this? :-)

-John

___

Pd-list@iem.at mailto: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] How do I squeeze more performance out of Gem?

2011-03-09 Thread John Harrison
Ok so I did something stupid with the
[GEMglLightModeliGL_LIGHT_MODEL_TWO_SIDE GL_FALSE] test which that I
connected it to a
[gemhead] instead of [gemhead 1]. When I corrected that I did find that
indeed the performance changes drastically for the better. OTOH I couldn't
get satisfactory lighting for my environment. It's a good technique for me
to remember and I could probably make it work even for this project with
enough experimentation of lighting sources and direction but...

it seems clear to me on my system at least with GL_LIGHT_MODEL_TWO_SIDE set
to its default GL_TRUE the bottleneck is the lighting and any gains with a
display list or model are lost because of the lighting issue. However I'm
finding that I get satisfactory performance and appearance by changing the
sphere to have 10 segments instead of 30. With a 10 segment sphere I can
make 1000 spheres and straight-line curves at 20fps at about 70% draw on a
CPU core. That works for me! :-)

I was curious if for a future project there might be a way I could make a
shader that would emulate the local lighting effect and do it more
efficiently. Serious exploration with shaders definitely needs to be in my
future.

In any case, thanks for all the help!

-John

On Wed, Mar 9, 2011 at 1:55 PM, cyrille henry c...@chnry.net wrote:

 with lighting on, things did not really change with the model or display
 list, but rendering sphere is 2 time slower.

 here is the sphere.

 Cyrille

 Le 09/03/2011 20:44, John Harrison a écrit :

 It appears I'm actually getting better results from [gemlist] too with
 lighting off. But how do your results change with lighting on? For me, with
 lighting on, they seem about the same.

 If you have your sphere.obj model with 900 triangles handy, I'd love to
 try it.

 -John

 On Wed, Mar 9, 2011 at 12:19 PM, cyrille henry c...@chnry.net mailto:
 c...@chnry.net wrote:

here, at 20fps, no lighting, i can draw about 500 model with your
 sphere.obj.
1000 sphere 30, and about 3500 display list of sphere 30.
using an other sphere.obj with about 900 triangles, i've got the same
 performance than with the display list.

it really is strange that the sphere is the fastest on your computer.

Cyrille


Le 09/03/2011 19:08, John Harrison a écrit :

Using Cyrille's test patch for speed which he sent into the list a
 week or so ago, I tried creating multiple spheres, gemlists, and models. The
 sphere is getting the best performance results, unfortunately. Attached is
 my test patch. I just connected [repeat] to either [sphere] [GEMglCallList]
 or [model] in the patch. The sphere model I used has probably got way too
 many points (just found it on the 'net) but my hope was that as the vertices
 were static it wouldn't matter.

http://www.eecs.umich.edu/~guskov/eecs598-1/sphere.obj 
 http://www.eecs.umich.edu/%7Eguskov/eecs598-1/sphere.obj


maybe one with less vertices will help. I can try...

-John

On Wed, Mar 9, 2011 at 9:48 AM, chris clepper 
 cgclep...@gmail.commailto:
 cgclep...@gmail.com mailto:cgclep...@gmail.com mailto:
 cgclep...@gmail.com wrote:

A model is the way to go since the vertex data is static.
  Ideally for situations like this there would be one object that loads a
 single model and several clients that just call the display list.  Although
 there is a lot of memory on GPUs now so 200 models of a sphere won't take up
 that much.

On Wed, Mar 9, 2011 at 10:32 AM, John Harrison 
 johnharrison...@gmail.com mailto:johnharrison...@gmail.com mailto:
 johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:





On Wed, Mar 9, 2011 at 1:59 AM, cyrille henry 
 c...@chnry.net mailto:c...@chnry.net mailto:c...@chnry.net mailto:
 c...@chnry.net mailto:c...@chnry.net mailto:c...@chnry.net mailto:
 c...@chnry.net mailto:c...@chnry.net wrote:

hello,

- try using a display list to render a sphere,
 so that every point don't have to be send for every sphere.
see exemple 09.openGL/02.displaylist
you can also use a model with a sphere.obj to
 have the same result.

if the spheres are all moving at once, would a
 display list still help? Seems like recompilation would have to happen for
 every sphere for every frame? I haven't tried the model yet...

yes, the display list will help to render 1 single
 sphere.
you have to call it 200 times.


Ok I'm seeing a huge performance difference between using
 200 of [sphere size-doesn't-matter 20] and [sphere size-doesn't-matter
 30]. Huge. So if I want to keep the sphere with 30 points, I'm thinking
 gemlist or model are my answer. I'll try both and report back, unless you
 have a strong recommendation for one or the other to save me time.

This list is awesome. Where

Re: [PD] starting [pd~] causes: tcl: /usr/lib/bin/pd.tk: can't open script

2011-03-08 Thread John Harrison
I filed this into the bug tracker:

http://sourceforge.net/tracker/index.php?func=detailaid=3202613group_id=55736atid=478070

As I mention in the bug tracker, you can get around the problem by adding
symbolic links:
/usr/lib/bin - /usr/lib/pd-extended/bin
/usr/lib/extra - /usr/lib/pd-extended/extra
/usr/lib/docs - /usr/lib/pd-extended/docs

Anyway, after all that I seem to get better performance with the old model
of running separate Pd instances. I'm not communicating audio between the
instances so running separate instances and using sockets to communicate
between them continues to be a fine solution for me.

-John

On Mon, Mar 7, 2011 at 8:05 AM, Husk 00 hus...@gmail.com wrote:

 On Mon, Mar 7, 2011 at 2:04 PM, John Harrison johnharrison...@gmail.com
 wrote:
  When I send [start( to [pd~] I get tcl: /usr/lib/bin/pd.tk: can't open
  script in the command window.
 

 Hi John,
 first try pddir flag to set the pd path. It could works.
 But if it doesn't, as for me, you can try to use pd-vanila (for [pd~])
 in conjunction with pd-extended libraries/externals (the extra dir).
 After a night of pd Chat and testing (different machines, different
 platforms) was the only way to get it working on linux. Seems to
 remember pd~ works correctly on MacOS X.
 I know it's not elegant but it's worked for me. I'm curious to know if
 someone get it working.
 husk


  since /usr/lib/bin/pd.tk didn't exist I tried
  ln -s /usr/lib/pd-extended/bin/pd.tk /usr/lib/bin/pd.tk
 
  still no go. I had also been getting other variations of file not found
 for
  watchdog and pd-gui but symbolic links appeared to fix those:
  ln -s /usr/lib/pd-extended/bin/pd-watchdog /usr/lib/bin/.
  ln -s /usr/lib/pd-extended/bin/pd-gui /usr/lib/bin/pd-gui
 
 
  pd 0.42.5-extended downloaded as a binary from the pd site, running on
  ubuntu Maverick
 
  workaround?
  --
  John
 
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 



 --
 when Art become pratical
 we call it technology.

 When Technology become useless
 we call it Art

 www.estereotips.net

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] How do I squeeze more performance out of Gem?

2011-03-08 Thread John Harrison
I'm working with a high-powered machine but I'm running into a bottleneck
with Gem. I'm running at 20fps and at times was intending to have as many as
200+ lines and spheres on a 1024x768 screen. At around 60 lines/spheres I'm
already at 50% CPU. I know the problem is Gem because if I stop rendering,
CPU immediately drops to less than 4%. There's some other manipulations I
use periodically too causing another 40%+ of CPU so I'm a far cry from my
200+ intention while saturating my computational limits. If I turn lighting
off, BTW, I already gain 10% CPU back (not an option I want to explore.)

I'm not sure what to do and was even considering breaking the rendering into
independent screens (this machine has 8 cores), then using pix_share to
recombine them in a master instance. I'd have to use pix_snap to capture
each of the Gem windows in each of the processes, and each one draws about
40% CPU when capturing a 1024x768 buffer at 20 fps so besides creating a
headache for myself this is going to be a lot of CPU overhead. I also don't
know how the graphics card is fitting into all of this, if it would become a
bottleneck at some point, how to tell, etc. What's the top command for a
graphics card? :-)

These lines and spheres are nothing special, btw. No texturing, just
translates, colors, and alpha. the lines are made with curves of 2 points
each.

Is there some trick or some area of programming or using the graphics card I
need to be considering? Any thoughts/advice would be appreciated. It's
strange --- I don't think I'm seeing performance on this machine much better
than on my not-so-special laptop.

This machine has Nvidia GeForce GTX 460, Ubuntu 10.10 32 bit, Pd-extended
0.42-5 binary from the Pure Data site, Intel i7 3Ghz. I'm using Nvidia
proprietary driver 290.19.06.

When I say stuff like 40% CPU I mean for a single core. So in theory this
machine has 800% CPU limit in my nomenclature. But since an instance of
Pd/Gem runs on only a single core, I have a limit of 100% for any single
Pd/Gem instance (as most of you already know I'm sure.)

-John

P.S. I'm loving working with Gem and pmpd these days. Awesome stuff, guys!
:-)
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] starting [pd~] causes: tcl: /usr/lib/bin/pd.tk: can't open script

2011-03-07 Thread John Harrison
When I send [start( to [pd~] I get tcl: /usr/lib/bin/pd.tk: can't open
script in the command window.

since /usr/lib/bin/pd.tk didn't exist I tried
ln -s /usr/lib/pd-extended/bin/pd.tk /usr/lib/bin/pd.tk

still no go. I had also been getting other variations of file not found for
watchdog and pd-gui but symbolic links appeared to fix those:
ln -s /usr/lib/pd-extended/bin/pd-watchdog /usr/lib/bin/.
ln -s /usr/lib/pd-extended/bin/pd-gui /usr/lib/bin/pd-gui


pd 0.42.5-extended downloaded as a binary from the pd site, running on
ubuntu Maverick

workaround?
-- 
John
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] loadbang not sent for dynamically created objects?

2011-02-19 Thread John Harrison
is it correct behavior that loadbang will not be called when it is part of a
dynamically created object? See attached. If you load test-do, it will
create an instance of test when you click on the message. Test should print
loadbang and initbang, but it only prints initbang.



-- 
John
#N canvas 854 533 450 300 10;
#X obj 214 80 loadbang;
#X obj 216 119 print loadbang;
#X obj 100 79 initbang;
#X obj 102 118 print initbang;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#N canvas 538 60 879 604 10;
#N canvas 387 681 450 300 creation_pool 1;
#X restore 601 431 pd creation_pool;
#X obj 415 370 s pd-creation_pool;
#X msg 405 325 obj 10 20 test;
#X connect 2 0 1 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] loadbang not sent for dynamically created objects?

2011-02-19 Thread John Harrison
Cyrille I just tried your solution and the problem is that all objects
sharing the name of the dynamically-created object all get the loadbang
message.

On Sat, Feb 19, 2011 at 1:49 PM, Pedro Lopes pedro.lo...@ist.utl.pt wrote:

 yes, this is known.
 By known you mean.. Is it on the bug tracker already?

 When such things are discovered (and by things I mean issues), shouldn't
 they be documented inside the help patches?

 It helps a lot those getting inside pd.

 Best,
 pedro


 On Sat, Feb 19, 2011 at 7:44 PM, cyrille henry c...@chnry.net wrote:

 hello,

 yes, this is known.
 you have to explicitly send the loadbang, like in this patch, using your
 exemple.
 (don't know about initbang, i don't use it)
 c


 Le 19/02/2011 20:33, John Harrison a écrit :

 is it correct behavior that loadbang will not be called when it is part
 of a dynamically created object? See attached. If you load test-do, it will
 create an instance of test when you click on the message. Test should print
 loadbang and initbang, but it only prints initbang.



 --
 John



 ___
 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




 --
 Pedro Lopes (MSc)
 contact: pedro.lo...@ist.utl.pt
 website: http://web.ist.utl.pt/Pedro.Lopes /
 http://pedrolopesresearch.wordpress.com/ |
 http://twitter.com/plopesresearch

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tracking multiblob with constant ID

2011-02-18 Thread John Harrison
I remember looking into pix_blobtracker but I don't remember why I didn't
use it. In any case, I wrote a Pd abstraction last weekend which I called
nearest-neighbor which I think might do the same thing: it looks for the
shortest euclidean distances between blobs of the current frame with blobs
of the last frame and reorders the blobs in the matrix accordingly. I made a
test patch for tracking 8 blobs --- if pix_multiblob sees less than 8, the
abstraction just copies the missing rows from the last frame --- a real
kludge I know.

Definitely better ways to do this...and...this code is UGLY...but it is
getting the job done for my application at least...

Attached is the abstraction with test patch (multiblob-test).

HTH,

-John

2011/2/18 Jack j...@rybn.org

 Ah, good to know. I will give it a try.
 Thanx.
 ++

 Jack



 Le vendredi 18 février 2011 à 16:11 +0100, IOhannes zmölnig a écrit :
  On 02/18/2011 02:07 PM, Jack wrote:
   Do you know if there is an external to track multiblob with a constant
   ID (the ID doesn't change in the time when two or more blobs move).
   For example, with [pix_multiblob], the ID of the blob is given by its
   position relative to the lower left corner (or i'm wrong), so it is not
   good for my application.
 
  there is an abstraction that comes with Gem called [pix_blobtracker]
  that try to label the blobs (based on a least error algorithm)
  it uses iemmatrix, but apart from that, no extra externals are involved.
 
  gfmadr
  IOhannes
 
  ___
  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


#N canvas 716 37 839 1031 10;
#X declare -lib iemmatrix;
#X text 452 8 GEM object;
#X obj 9 265 cnv 15 430 145 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 267 Inlets:;
#X text 39 352 Outlets:;
#X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 226 Arguments:;
#X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 453 20 Example:;
#X obj 450 392 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 198 112 destroy;
#X msg 156 71 set create;
#X obj 67 41 route create;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 6 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 1 0;
#X connect 6 0 3 0;
#X connect 6 0 7 0;
#X connect 6 1 5 0;
#X connect 6 1 4 0;
#X connect 7 0 0 0;
#X restore 455 431 pd gemwin;
#X msg 455 412 destroy;
#X text 451 391 Create window:;
#X obj 451 133 cnv 15 185 120 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 43 gemhead;
#X text 17 366 Outlet 1: gemlist;
#X text 24 281 Inlet 1: gemlist;
#X obj 449 355 pix_texture;
#X obj 451 111 pix_film;
#X obj 515 111 t f;
#X obj 464 63 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 22 450 300 open 0;
#X obj 85 49 inlet;
#X obj 85 237 outlet;
#X obj 85 145 openpanel;
#X msg 85 179 open \$1;
#X msg 259 213 auto 1;
#X obj 259 189 loadbang;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;
#X restore 464 91 pd open;
#X text 505 37 open a supported;
#X text 506 48 movie-clip;
#X text 523 74 macOS: quicktime;
#X text 516 64 windos: *.AVI;
#X text 523 84 linux: depends...;
#X floatatom 463 150 3 0 100 2 threshold - -;
#X obj 463 167 / 100;
#X text 71 31 Class: pix object (analysis);
#X obj 450 377 square 4;
#X msg 463 188 treshold \$1;
#X floatatom 553 150 3 0 100 2 blobsize - -;
#X obj 553 167 / 100;
#X msg 553 188 blobSize \$1;
#X text 24 296 Inlet 1: treshold float: minimum luminance of a pixel
to be considered part of a blob. (default=0.04);
#X text 24 325 Inlet 1: blobSize float: minimum relative size of
a blob. (default=0.1);
#X text 50 12 Synopsis: [pix_multiblob];
#X text 30 58 Description: blob detector (for multiple blobs);
#X text 16 73 [pix_multiblob] is able to detect multiple blobs within
an image.;
#X text 17 103 a blob is a number of adjacent(!) pixels with a luminance
that is bigger than the value defined by treshold. you can set the
minimum size of a blob that is needed to be detected.;
#X text 17 156 the output is a matrix following the conventions of
the mtx-objects from zexy/iemmatrix. each row describes one detected
blob as follows: centerX(weighted) \, centerY(weighted) \, size(weighted)
\, minX \, minY \, maxX \, maxY \, size;
#X text 64 237 int: max number N of blobs to detect;
#X text 17 381 Outlet 2: (k \, 8) matrix: describing k detected blobs
(with 0=kN);
#X text 20 428 for motion-tracking you will also need;
#X obj 304 425 pix_movement;
#X msg 543 112 auto \$1;
#X obj 604 114 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X 

Re: [PD] pd-kinect-skeleton

2011-02-04 Thread John Harrison

This is great!

To get it working I had to download OSCeleton:
https://github.com/Sensebloom/OSCeleton
which you don't mention in the README

I also had to change the udpreceive in your patch to socket 7110.

Ubuntu 10.10 Pd-extended 0.42-5

-John

On 02/04/2011 08:24 AM, Hans-Christoph Steiner wrote:
OpenNI software reads the camera and then outputs the skeleton 
tracking data via OSC messages. 




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Fwd: Re: wiimote crashes with moderate cpu load and/or heavy USB transfer

2011-01-28 Thread John Harrison

it appears that this set of addons
http://l2ork.music.vt.edu/data/pd/l2ork_addons-20101230.tar.gz

includes the help patch (which looks familiar. :-))

-John

On 01/28/2011 02:12 AM, Roman Haefeli wrote:

On Thu, 2011-01-27 at 11:00 -0500, Ivica Ico Bukvic wrote:

It should be included with the actual external.

I'm afraid the archive from:
http://l2ork.music.vt.edu/data/pd/disis_wiimote-0.6.5.tar.gz
doesn't contain a help patch.

Roman



Roman Haefelireduz...@gmail.com  wrote:


On Wed, 2011-01-26 at 20:21 -0500, Ivica Ico Bukvic wrote:

Forgot to copy pd-list...

 Original Message 
Subject: Re: [PD] wiimote crashes with moderate cpu load and/or heavy USB   
transfer
From: Ivica Ico Bukvici...@vt.edu
To: John Harrisonjohnharrison...@gmail.com
CC:

Try disis_wiimote from the L2ork software page which uses threaded 
implementation and is dsp-safe even when sending cues back to wiimote (which 
otherwise cause consistent xruns). We use it regularly even at heavy cpu loads 
and it is rock solid (Linux only).

Cheers!

Is there also help-file / help-patch available for [disis_wiimote]? Or
is it supposed to work the same as the [wiimote] it is based on (can't
test right now).

Roman




___
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] wiimote crashes with moderate cpu load and/or heavy USB transfer

2011-01-26 Thread John Harrison
I haven't had a chance to do a lot of testing on this yet, but it appears
that [wiimote] crashes intermittently when there is moderate CPU load on the
system...or...it could also be related to heavy USB usage from other devices
(2 cameras). In any case, I thought I'd see if this is a known problem not
unique to me before I dig too deep. I tried moving the cameras to another Pd
instance so they would be on a different core of the CPU. It might have
slowed the crashing but it didn't solve it.

Even with no other CPU load or USB usage of other devices, it appears to
crash occasionally...

Ubuntu 10.10
[wiimote] from the binaries of /reduzierer/rdz...

-John
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd-extended and Firefox

2011-01-16 Thread John Harrison
using JACK is the best way to go in terms of performance and low 
latency. If you don't care about latency in Pd and don't want to muck 
with settings, you can just do:


aoss pd -oss

and everything will cooperate together, with something like a 200ms 
latency in Pd.


Previously I tried using JACK as the backend for pulseaudio as Pedro is 
suggesting. It works pretty well except that it was set up on my laptop 
and things would get screwy after my laptop would wake up from 
hibernation. I'm sure that's solvable but at the time I gave up after 
spending too long playing with hibernation scripts trying to solve it 
and achieving inconsistent results.


-John

On 01/15/2011 10:03 AM, Pierre Massat wrote:

Thanks for your reply Pedro.
I don't think i really need to use firefox and pd together, i was just 
wondering why this was happening. Now i know!

Thanks!

Pierre

2011/1/15 Pedro Lopes pedro.lo...@ist.utl.pt 
mailto:pedro.lo...@ist.utl.pt


PD gains control of Alsa, thus firefox cannot play audio.
Tha trick is using firefox through jack, and pd too. Search the
archives of this mailing list, this has been talked - i recall.

By the way, what you want is called Jack pulseaudio sink.

as here: http://www.youtube.com/watch?v=yjH1maNxR_M

:)
best regards

On Sat, Jan 15, 2011 at 3:15 PM, Pierre Massat pimas...@gmail.com
mailto:pimas...@gmail.com wrote:

Hi list!

I just downloaded pd-extended .42 on ubuntu 10.04, and there's
something strange (to me) :
I was listening to some music on a bandcamp page, and i
installed pd and strated it to see if it was working alright.
It is working alright indeed, but the music in bandcamp (in
firefox) freezes when pd is running. It just stops playing, as
if on pause. Everything works fine again when i close Pd.

Is this normal or is it some kind of a bug?

Pierre

___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list




-- 
Pedro Lopes (MSc)

contact: pedro.lo...@ist.utl.pt mailto:pedro.lo...@ist.utl.pt
website: http://web.ist.utl.pt/Pedro.Lopes



___
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] libraries in Pd-extended 0.43

2010-12-14 Thread John Harrison
If it were up to me, we'd keep all of Sevy's stuff in Pd-extended. The
licenses Sevy offers conflict with the licenses of much of the software it
borrows from (for example EffecTV) so they are invalid anyway. But I
understand that this may not sit ethically with others so my second
suggestion is, for the benefit of the Pd community, to keep all of Sevy's
stuff that was released under GPL in whatever version it existed in at that
point. I believe this is already Han's plan and I support it.

For me, I'm going to use Sevy's stuff as if it is GPL. For example, I'm
looking forward to the military contract I am expecting of torturing people,
and at that point I think I'll make excellent use of PiDiP. I'll let Sevy
sue me then.

I don't buy the argument that the Sevy's stuff should be removed out of
respect for the author, as this argument conflicts with a more compelling
argument of respect for the community, for free software, and for the GPL
license. It is weird and uncomfortable to me that one of our own would
impose restrictions on the use of their software that even the infamous
Microsoft wouldn't consider. I can't support such a position.

-John

On Tue, Dec 14, 2010 at 8:53 AM, ydego...@gmail.com ydego...@gmail.comwrote:

 i want my stuff to be taken out of pd-extended
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] new license for pidip and unauthorized WAS: pd-pidip into Debian

2010-12-05 Thread John Harrison
I was curious, since EffecTV is GPL and a significant part of PiDiP is a 
port of EffecTV --- does this make an impact on what licenses are valid 
for PiDiP?


-John

On 12/05/2010 07:03 PM, Hans-Christoph Steiner wrote:


berlios is based in Germany, but I think they have similar 
restrictions on the license.


.hc

On Dec 5, 2010, at 2:50 PM, ydego...@gmail.com wrote:


ola,


you're totally right that we should get out of sourceforge,
that grants more rights to US citizens than to others.

we can find a domain in .fi, .de, .ch or .nl,
if you know what i mean.

so yeh you can remove unauthorized and pidip from sourceforge.

ciao,
sevy

pd _ and could you leave me in peace _forever_ ? thank you

Hans-Christoph Steiner wrote:


You'll also have to consider SourceForge's Terms of Use, which seem 
to disallow software with licenses that do not fit into the Open 
Source Definition.


(from 
http://sourceforge.net/apps/trac/sitelegal/wiki/What%20projects%20qualify%20for%20hosting%20at%20SourceForge.net?)


# The software involved must be licensed under an Open Source license.


(from 
http://sourceforge.net/apps/trac/sitelegal/wiki/Controversial%20project%20hosting)

Notes on the application of the Open Source Definition ¶

The Open Source Definition requires that all Open Source licenses 
not limit the ways or people that are permitted to use the software. 
Though some developers of software may wish to prevent illegitimate 
use, the following should be kept in mind:


   * You can't restrict the way folks use your software, only make 
recommendations. That is: You cannot say that your software will not 
be used to commit a crime, or for military purposes; but you can 
recommend against breaking laws or using the software for military 
purposes, or the operaton of nuclear power facilities. No 
discrimination against purpose of use.
   * You can't restrict who can use your software: business, 
military, individuals, individuals with past criminal record can all 
use your software alike. No discrimination against people.
   * You can't license your software to prohibit use by T7 
countries, but you can include clauses to note the requirements 
placed on the licensee by the US Government, and state that users 
should abide by all applicable laws.


.hc

On Dec 3, 2010, at 11:16 AM, ydego...@gmail.com wrote:


ola,

pidip and unauthorized are now published with a  non-standard license
that says :



the code published here can be studied,
modified, used by anyone that
provides all the original credits
and sources in derivative projects.

there are restrictions on its use,
it cannot be used for :

* military amd/or repressive use
* commercial installations and products
* any project that promotes : racism, nationalism, xenophobia, sexism,
homophobia, religious hatred or missionarism .. ( expandable list)

this is not a standard license.

sevy.



ciao,
sevy



 



I hate it when they say, He gave his life for his country.  Nobody 
gives their life for anything.  We steal the lives of these kids.  
-Admiral Gene LeRocque









 



If you are not part of the solution, you are part of the problem.



___
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] pd-pidip into Debian

2010-11-23 Thread John Harrison
Yves:

It's your code so you get to choose. From my standpoint as an educator,
removal of PiDiP from pd-extended is very unfortunate. I hope at some point
you reconsider your position.

-John

On Tue, Nov 23, 2010 at 10:46 AM, ydego...@gmail.com ydego...@gmail.comwrote:


 good!!! i'm free to do what i like now!!!

 yeh!

 sevy

 Hans-Christoph Steiner wrote:


 Ok, will do. I also have to remove pidip from Pd-extended based on this
 license.

 .hc

 On Nov 23, 2010, at 7:18 AM, ydego...@free.fr wrote:

  jooo, que espeso ...

 i told you 1 times not to package my stuff,
 that i'm happy with the packages of goto10...

 so [EOC]


 ciao,
 sevy


 Hans-Christoph Steiner wrote:


 Hey Lluis and Yves,

 I see that puredyne has packaged pidip, so it should be pretty easy to
 get it into Debian. The only problem is the license. If it was a straight
 BSD or GPL license, then it would be fine. The problem is this line:

 NOT FOR MILITARY OR REPRESSIVE USE !!!

 That isn't free according to the Debian Free Software Guidelines.

 .hc

 


 As we enjoy great advantages from inventions of others, we should be
 glad of an opportunity to serve others by any invention of ours; and this 
 we
 should do freely and generously. - Benjamin Franklin










 


 Programs should be written for people to read, and only incidentally for
 machines to execute.
 - from Structure and Interpretation of Computer Programs




 ___
 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] unable to open pdp_v4l webcam video stream

2010-11-20 Thread John Harrison
That's a huge amount of latency. Do you see that sort of latency if you 
use the webcam in guvcview?


For a cheap webcam with low latency I've had great luck with the Sony 
ps3eye. It works out of the box on Linux (ubuntu at least) but if you 
compile your own driver for it you can get even better performance:

http://bear24rw.blogspot.com/2009/11/ps3-eye-driver-patch.html



On 11/20/2010 02:05 PM, Menno van der Woude wrote:

The latency with this webcam is amazingly long, as in a second or more.



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] opencv

2010-10-28 Thread John Harrison
I compiled pdp_openCV not that long ago on ubuntu 10.4. I don't remember how
I did it but I think that's because it was pretty straightforward and went
without hitch. It all worked pretty well as I recall. No big surprises. The
help patches got me started.

But do you need that for a laser tracker? Seems like pix_subtract and
pix_blob would do the job... Max Neupert has some nice patches using this
technique IIRC:
http://web.uni-weimar.de/medien/wiki/Bewegungsmelder

You could also use pix_blob's color weight inlet effectively since you know
you are looking for red.

-John

On Thu, Oct 28, 2010 at 2:22 PM, Pagano, Patrick
p...@digitalworlds.ufl.eduwrote:

 I would like to make a laser tracker that tracks the points from a red
 laser beam.
 I would like to see if I can use pdp_ openCV to track the laser and when I
 hover the laser over some video long enough it acts as a click, is this
 possible?

 Thanks for the cool link!



 -Original Message-
 From: ydego...@gmail.com [mailto:ydego...@gmail.com]
 Sent: Thursday, October 28, 2010 2:33 PM
 To: Pagano, Patrick; PD List
 Subject: Re: [PD] opencv


 there are already some work made with pd_opencv

 http://vimeo.com/8195788

 i dunno what more explanations you need,
 just be curious and inventive

 ciao,
 sevy

 Pagano, Patrick wrote:
 
  So far I have not seen anything besides help patches that explain it's
  use. Has anyone at all made a working patch, say a laser tracker?
  Anything using pix_ or pdp_ openCV stuff?
 
  *From:* pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] *On
  Behalf Of *Jose Luis Santorcuato
  *Sent:* Thursday, October 28, 2010 1:09 PM
  *To:* Claude Heiland-Allen
  *Cc:* pd-list@iem.at
  *Subject:* Re: [PD] opencv
 
  Hi, Search in torrents Learning Open CVOreilly media... the Pd OCV
  reserch is based in this book...
 
  Best regards
 
  José
 
  2010/10/28 Claude Heiland-Allen claudiusmaxi...@goto10.org
  mailto:claudiusmaxi...@goto10.org
 
  On 28/10/10 17:39, Philip Cunningham wrote:
 
  Hello list,
 
  I wonder if there are any tutorials available on how to use OpenCV
  with Pd? I'm trying to download necessary components using the
  following site:
  http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv but
  having very little luck. Operating system is Ubuntu 10.4.
 
  You could try the Puredyne PPA for pd-pdp-opencv (available right
  nownow) and pd-pix-opencv packages (available soon..) for Lucid:
 
  https://launchpad.net/~puredyne-team/+archive/ppahttps://launchpad.net/%7Epuredyne-team/+archive/ppa
  https://launchpad.net/%7Epuredyne-team/+archive/ppa
 
 
  Claude
 
 
 
  ___
  Pd-list@iem.at mailto:Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 
 
 
  --
  http://arselectronicachile.blogspot.com
  http://www.myspace.com/santorcuato
  http://comunicacionnativa.blogspot.com/
 
 
 
  ___
  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


Re: [PD] pduino + arduino UNO

2010-10-19 Thread John Harrison
how was this solved?

On Tue, Oct 19, 2010 at 8:30 AM, alessandro contini aless.cont...@gmail.com
 wrote:

 solved.
 thanks a lot anyway.



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] PS3 eye, Pix_video, low latency

2010-10-14 Thread John Harrison
if it helps...

I have now used the ps3eye in Linux with multiple machines and really
excellent results with low latency in Gem and pdp/pidip. Yes you do have to
compile the driver for it but it really isn't too bad. I posted directions
for how I do this at:

http://bear24rw.blogspot.com/2009/11/ps3-eye-driver-patch.html

http://bear24rw.blogspot.com/2009/11/ps3-eye-driver-patch.htmlin my
comment dated May 9, 2010. I can confirm that this works with the last few
versions of ubuntu at least. Just did it again for another machine last week
even. Doesn't seem to be any complications with the compile process once you
have the steps down.

-john

On Thu, Oct 14, 2010 at 6:54 AM, Husk 00 hus...@gmail.com wrote:

 On Thu, Oct 14, 2010 at 1:53 PM, ydego...@gmail.com ydego...@gmail.comwrote:


 ola,

 yes it's not compiled in pd-extended,
 you have to get pidip sources
 and install libdc1394-22-dev..
 and then compile pidip.

 this is something lluis did recently
 that was never included in pd-extended..
 neither in pure:dyne packages.

 ciao,
 sevy



 Good to know, thanks!
 husk



  --
 when Art become pratical
 we call it technology.

 When Technology become useless
 we call it Art

 www.estereotips.net http://www.estereotips.net





 --
 when Art become pratical
 we call it technology.

 When Technology become useless
 we call it Art

 www.estereotips.net

 ___
 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] GEM: borderless window is also always on top (and hasn't an icon)

2010-10-02 Thread John Harrison
if there is no solution within Pd you could always use Devilspie:

http://live.gnome.org/DevilsPie

I use that app a lot with much success for issues like this.

On Sat, Oct 2, 2010 at 1:06 PM, Matteo Sisti Sette 
matteosistise...@gmail.com wrote:

 Hi,

 In ubuntu, if I send border 0 to [gemwin], then the window (once
 created), besides being borderless which is the expected part, also sticks
 on top and doesn't have a button in the panel on the bottom of the screen as
 windows usually have.

 Not so in Windows, where it just creates a borderless window which, a part
 being borderless, behaves as any other window.

 Is there a way in Linux to get a gem window that is simply borderless
 without sticking on top and without having to renounce to the panel button??

 thanks
 m.

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] live pd patch mixed with Gem or pdp?

2010-08-30 Thread John Harrison
is there a way to do these screenshots such that they don't actually show up
on a screen visible to the user i.e I don't have to show the raw Pd patch to
the user, only the mix? This is a 2-headed machine (one machine --- I'll use
2 if I absolutely have to) and the plan is to show a Gem or pdp window
fullscreen on one head and a pdp window fullscreen on the other. This leaves
me not sure where to put the Pd patch for the screenshots.

On Mon, Aug 30, 2010 at 10:44 AM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 On 2010-08-30 17:04, John Harrison wrote:
  I'd like to take a patch from a pd window and mix it live with a Gem or
 pdp
  window. pdp_capture would have been the ticket, but I can't get it to
  compile and looking at the archives of this list, it doesn't seem like
  others have had luck with it either. Any other ideas for me?
 

 a bit complicated, but you can do that by doing screenshots with
 gstreamer, send it to a videoloopback device and read that (with pdp,
 Gem, GridFlow or whatelse)

 - get v4l2loopback (http://code.google.com/p/v4l2loopback/)
  compile, install, load the module
 - get gst-v4l2loopback (http://github.com/umlaeute/gst-v4l2loopback)
  compile (need gst-plugin-base-dev), install

 run the gstreamer-pipeline, e.g.
 $ gst-launch ximagesrc use-damage=false startx=0 starty=0 endx=640
 endy=480 ! queue ! ffmpegcolorspace ! v4l2loopback

 access the video using [pix_video], [pdp_v4l2] [#camera] or cat


 running here.
 this of course only grabs a portion of the screen, rather than a window
 and track that...

 fgmadfs
 IOhannes


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] live pd patch mixed with Gem or pdp?

2010-08-30 Thread John Harrison
bleh I'm failing to get either v4l2loopback or webcamstudio modules to 
actually load.


I'm running ubuntu Lucid 10.04 with 2.6.32-24-generic kernel

v4l2loopback svn builds and installs ok

however, modprobe v4l2loopback returns in dmesg:

   [   46.328926] v4l2loopback: disagrees about version of symbol
   video_unregister_device
   [   46.328929] v4l2loopback: Unknown symbol video_unregister_device
   [   46.328996] v4l2loopback: disagrees about version of symbol
   video_device_alloc
   [   46.328998] v4l2loopback: Unknown symbol video_device_alloc
   [   46.329091] v4l2loopback: disagrees about version of symbol
   video_register_device
   [   46.329093] v4l2loopback: Unknown symbol video_register_device
   [   46.329178] v4l2loopback: disagrees about version of symbol
   video_device_release
   [   46.329179] v4l2loopback: Unknown symbol video_device_release

similarly, modprobe webcamstudio returns in dmesg:

   [   39.281212] webcamstudio: disagrees about version of symbol
   video_devdata
   [   39.281215] webcamstudio: Unknown symbol video_devdata
   [   39.281309] webcamstudio: disagrees about version of symbol
   video_unregister_device
   [   39.281311] webcamstudio: Unknown symbol video_unregister_device
   [   39.281376] webcamstudio: disagrees about version of symbol
   video_device_alloc
   [   39.281377] webcamstudio: Unknown symbol video_device_alloc
   [   39.281446] webcamstudio: disagrees about version of symbol
   video_register_device
   [   39.281448] webcamstudio: Unknown symbol video_register_device
   [   39.281551] webcamstudio: disagrees about version of symbol
   video_device_release
   [   39.281553] webcamstudio: Unknown symbol video_device_release

a reboot doesn't help.

-John

On 08/30/2010 11:40 AM, ydego...@gmail.com wrote:

ola,

pdp_capture was working once with an old version of ImageMagick
but anyway it was too slow,
so now its compilation is made optional,
it is a bit abandonware..

use webcamstudio instead ( http://www.ws4gl.org/ ),
it does the same as gstreamer that Iohannes recommends,
but with an interface...
it will output the screenshots to a vloopback device ..

about the disposition on the screen, no eye deer ..

ahoj!
sevy

John Harrison wrote:
is there a way to do these screenshots such that they don't actually 
show up on a screen visible to the user i.e I don't have to show the 
raw Pd patch to the user, only the mix? This is a 2-headed machine 
(one machine --- I'll use 2 if I absolutely have to) and the plan is 
to show a Gem or pdp window fullscreen on one head and a pdp window 
fullscreen on the other. This leaves me not sure where to put the Pd 
patch for the screenshots.


On Mon, Aug 30, 2010 at 10:44 AM, IOhannes m zmoelnig 
zmoel...@iem.at mailto:zmoel...@iem.at wrote:


On 2010-08-30 17:04, John Harrison wrote:
 I'd like to take a patch from a pd window and mix it live with a
Gem or pdp
 window. pdp_capture would have been the ticket, but I can't get
it to
 compile and looking at the archives of this list, it doesn't
seem like
 others have had luck with it either. Any other ideas for me?


a bit complicated, but you can do that by doing screenshots with
gstreamer, send it to a videoloopback device and read that (with 
pdp,

Gem, GridFlow or whatelse)

- get v4l2loopback (http://code.google.com/p/v4l2loopback/)
 compile, install, load the module
- get gst-v4l2loopback (http://github.com/umlaeute/gst-v4l2loopback)
 compile (need gst-plugin-base-dev), install

run the gstreamer-pipeline, e.g.
$ gst-launch ximagesrc use-damage=false startx=0 starty=0 endx=640
endy=480 ! queue ! ffmpegcolorspace ! v4l2loopback

access the video using [pix_video], [pdp_v4l2] [#camera] or cat


running here.
this of course only grabs a portion of the screen, rather than a
window
and track that...

fgmadfs
IOhannes



___
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] live pd patch mixed with Gem or pdp?

2010-08-30 Thread John Harrison

ok I got the modules to load by reloading the kernel image

   sudo apt-get install --reinstall linux-image-`uname -r`
   sudo depmod -a

now Yves solution works with pdp_v4l.

although modprobe v4l2loopback seems to work, Iohannes's incantation to 
launch the pipeline returns: WARNING: erroneous pipeline: no element 
v4l2loopback


also /dev/video3 becomes available when I modprobe v4l2loopback but 
nothing can seem to access it --- invalid argument errors.


Assuming I can configure webcamstudio to autostart with the 
configuration I need tho, I should be all set at this point.


Thanks for help!

-John

On 08/30/2010 11:59 PM, John Harrison wrote:
bleh I'm failing to get either v4l2loopback or webcamstudio modules to 
actually load.


I'm running ubuntu Lucid 10.04 with 2.6.32-24-generic kernel

v4l2loopback svn builds and installs ok

however, modprobe v4l2loopback returns in dmesg:

[   46.328926] v4l2loopback: disagrees about version of symbol
video_unregister_device
[   46.328929] v4l2loopback: Unknown symbol video_unregister_device
[   46.328996] v4l2loopback: disagrees about version of symbol
video_device_alloc
[   46.328998] v4l2loopback: Unknown symbol video_device_alloc
[   46.329091] v4l2loopback: disagrees about version of symbol
video_register_device
[   46.329093] v4l2loopback: Unknown symbol video_register_device
[   46.329178] v4l2loopback: disagrees about version of symbol
video_device_release
[   46.329179] v4l2loopback: Unknown symbol video_device_release

similarly, modprobe webcamstudio returns in dmesg:

[   39.281212] webcamstudio: disagrees about version of symbol
video_devdata
[   39.281215] webcamstudio: Unknown symbol video_devdata
[   39.281309] webcamstudio: disagrees about version of symbol
video_unregister_device
[   39.281311] webcamstudio: Unknown symbol video_unregister_device
[   39.281376] webcamstudio: disagrees about version of symbol
video_device_alloc
[   39.281377] webcamstudio: Unknown symbol video_device_alloc
[   39.281446] webcamstudio: disagrees about version of symbol
video_register_device
[   39.281448] webcamstudio: Unknown symbol video_register_device
[   39.281551] webcamstudio: disagrees about version of symbol
video_device_release
[   39.281553] webcamstudio: Unknown symbol video_device_release

a reboot doesn't help.

-John

On 08/30/2010 11:40 AM, ydego...@gmail.com wrote:

ola,

pdp_capture was working once with an old version of ImageMagick
but anyway it was too slow,
so now its compilation is made optional,
it is a bit abandonware..

use webcamstudio instead ( http://www.ws4gl.org/ ),
it does the same as gstreamer that Iohannes recommends,
but with an interface...
it will output the screenshots to a vloopback device ..

about the disposition on the screen, no eye deer ..

ahoj!
sevy

John Harrison wrote:
is there a way to do these screenshots such that they don't actually 
show up on a screen visible to the user i.e I don't have to show the 
raw Pd patch to the user, only the mix? This is a 2-headed machine 
(one machine --- I'll use 2 if I absolutely have to) and the plan is 
to show a Gem or pdp window fullscreen on one head and a pdp window 
fullscreen on the other. This leaves me not sure where to put the Pd 
patch for the screenshots.


On Mon, Aug 30, 2010 at 10:44 AM, IOhannes m zmoelnig 
zmoel...@iem.at mailto:zmoel...@iem.at wrote:


On 2010-08-30 17:04, John Harrison wrote:
 I'd like to take a patch from a pd window and mix it live with a
Gem or pdp
 window. pdp_capture would have been the ticket, but I can't get
it to
 compile and looking at the archives of this list, it doesn't
seem like
 others have had luck with it either. Any other ideas for me?


a bit complicated, but you can do that by doing screenshots with
gstreamer, send it to a videoloopback device and read that (with 
pdp,

Gem, GridFlow or whatelse)

- get v4l2loopback (http://code.google.com/p/v4l2loopback/)
 compile, install, load the module
- get gst-v4l2loopback 
(http://github.com/umlaeute/gst-v4l2loopback)

 compile (need gst-plugin-base-dev), install

run the gstreamer-pipeline, e.g.
$ gst-launch ximagesrc use-damage=false startx=0 starty=0 endx=640
endy=480 ! queue ! ffmpegcolorspace ! v4l2loopback

access the video using [pix_video], [pdp_v4l2] [#camera] or cat


running here.
this of course only grabs a portion of the screen, rather than a
window
and track that...

fgmadfs
IOhannes



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




--
John Harrison http://alumni.media.mit.edu/~harrison
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] small patch for [pdp_mix]

2010-08-21 Thread John Harrison
I just submitted 2 trivial patches for [pdp_mix]. Not sure if sevyves or 
somebody else needs to review/consider/submit:


   when crossfade is set to 1 for [pdp_mix], outlet should return exact
   copy of middle inlet. Instead [pdp_mix] still tries to mix the left
   and middle inlet, resulting in slight degradation of the resulting
   video. Consequently, a feedback loop connecting [pdp_mix] outlet to
   its middle inlet through a [pdp_del] with crossfade set to 1 will
   eventually result in a video that is completely black.

   This patch adds a trivial copy from the middle inlet to the outlet
   if the crossfade is set to 1.

Here are the links to the patches, one for mmx and one for portable (no 
mmx):


https://sourceforge.net/tracker/?func=detailaid=3050324group_id=55736atid=478072
https://sourceforge.net/tracker/?func=detailaid=3050325group_id=55736atid=478072

Thanks,

-John
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Streaming GEM Visuals

2010-05-25 Thread John Harrison
i use [gem2pdp] and works for me. WinXP and Linux. Pd-extended 41.4 I
think...

Make sure you are in the right colorspace. I remember some issues with that
and [gem2pdp]...

On Tue, May 25, 2010 at 11:32 AM, Ben Baker-Smith bbakersm...@gmail.comwrote:

 Hello,

 I'm looking for a software solution to converting GEM visuals to streaming
 video on the web.
 [gem2pdp] appears to be broken, so [pdp_theonice~] is out.

 I would like to do this on remote servers and virtual servers, so a
 hardware loop (video out, scan converter, video in) won't work.

 My ultimate goal is to create live, self-generative visuals that are
 streamed over the web using a server with Pd/GEM and some streaming software
 (preferably not flash, since the Flash Media Live Encoder (FMLE) wasn't
 really friendly with Linux or the command line last I checked).

 Thanks,

 Ben Baker-Smith
 --
 http://bitsynthesis.com


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Streaming GEM Visuals

2010-05-25 Thread John Harrison
Sorry obviously *not* WinXP but I do use it in Linux all the time. Ubuntu
variants...

On Tue, May 25, 2010 at 11:42 AM, John Harrison
johnharrison...@gmail.comwrote:

 i use [gem2pdp] and works for me. WinXP and Linux. Pd-extended 41.4 I
 think...

 Make sure you are in the right colorspace. I remember some issues with that
 and [gem2pdp]...

 On Tue, May 25, 2010 at 11:32 AM, Ben Baker-Smith 
 bbakersm...@gmail.comwrote:

 Hello,

 I'm looking for a software solution to converting GEM visuals to streaming
 video on the web.
 [gem2pdp] appears to be broken, so [pdp_theonice~] is out.

 I would like to do this on remote servers and virtual servers, so a
 hardware loop (video out, scan converter, video in) won't work.

 My ultimate goal is to create live, self-generative visuals that are
 streamed over the web using a server with Pd/GEM and some streaming software
 (preferably not flash, since the Flash Media Live Encoder (FMLE) wasn't
 really friendly with Linux or the command line last I checked).

 Thanks,

 Ben Baker-Smith
 --
 http://bitsynthesis.com


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 John
 http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux, video1394 support?

2010-05-11 Thread John Harrison
so [pdp_ieee1394] isn't working? From there you could use [pix_2gem]


2010/5/11 András Murányi muran...@gmail.com


 On Tue, May 11, 2010 at 4:08 PM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 On 2010-05-11 15:54, Michal Seta wrote:
  Hello,
 
  I have been trying to get a Point Grey Firefly (firewire) camera
  working in Linux (Karmic).  It works fine with ReactiVision and
  coriander (the only 2 apps I tried).  In pd, I was preferring
  [pix_video] but neither v4l2 driver nor dv1394 works (I believe this
  is a dc camera).


 [pix_video] has no support for IIDC cameras yet.
 it's planned for the next release, however.

 the dv backend in pix_video refers to camcorder's (those ieee1394
 cameras that don't work with coriander); it doesn't work with the new
 juju stack, however (found in recent linux kernels; most distributions
 seem to only ship this new stack :-()


 AFAIK the RT kernel still has the old stack

 Andras

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux, video1394 support?

2010-05-11 Thread John Harrison
I just used it on ubuntu Karmic with extended 41.4. Worked great.

On Tue, May 11, 2010 at 9:44 AM, Pagano, Patrick
p...@digitalworlds.ufl.eduwrote:

 pdp_ieee1394 was originally for OSX and is not in all pd-extended(s) for
 linux

 pp



 -Original Message-
 From: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] On Behalf Of
 IOhannes m zmoelnig
 Sent: Tuesday, May 11, 2010 10:42 AM
 To: John Harrison
 Cc: PD List
 Subject: Re: [PD] Linux, video1394 support?

 [On 2010-05-11 16:38, John Harrison wrote:
  so [pdp_ieee1394] isn't working? From there you could use [pix_2gem]
 

 afaik, [pdp_ieee1394] is a pdp-clone of the videoDV backend of Gem;
 everything that applies to Gem's dv support should also apply to
 [pdp_ieee1394].

 my information might be outdated, though.

 fgamsdr
 IOhannes




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] video grid

2010-05-03 Thread John Harrison
maybe here?
http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/pdvjtools/

On Mon, May 3, 2010 at 10:35 AM, xose ventosela caiserx...@gmail.comwrote:

 Hi I was missing myself along the net when I found this

 http://www.oktopus.tv/puredata-vjtools/

 I tried the links but contents aren´t avaliable anymore.I´specially
 interested on the videogrid as I´m working on a video mixer.
 Any one can help me?

 Thanks in advance guys!! I would never begin whith pure data without this
 mailing list!!!

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tabread4~ broken interpolation algorithm - was Re: Max Smoother Audio than Pd?

2010-03-29 Thread John Harrison
The link works and extracts fine here in WinXP SP3. I used the built-in
compressed (zipped) folders tool in the explorer shell.

On Mon, Mar 29, 2010 at 11:38 AM, Matteo Sisti Sette 
matteosistise...@gmail.com wrote:

 cyrille henry escribió:



 Matteo Sisti Sette a écrit :

 By the way tabread4c~ is not in Pd Extended, is it?

 no. it is there : http://www.chnry.net/ch/?083-Nusmuk-audio


 Hi,
 I downloaded the zip file but Windows tells me he can't open it.
 Is it something different than a normal .zip file?

 (it says linux but I thought it may include the source code...)

 The downloaded file size is about 54k (not 57.5 as stated in the page), so
 I tried re-downloading it (after clearing the browser cahce) but no luck...


 --
 Matteo Sisti Sette
 matteosistise...@gmail.com
 http://www.matteosistisette.com

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] image grid in GEM

2010-03-04 Thread John Harrison
you could try [makefilename] to generate the filenames to continually update
the images.
and take a look at [gemlist] to make your grid. Seems to me a couple of
[until]s with [gemlists] might be a fun way to solve this.
and yeah definitely [pix_texture] not [pix_draw] for speed, as others have
said.

-John

2010/3/4 Fränk Zimmer f...@mur.at

 Hi Ben,
 great work your patch.- - But do you think, that I could keep the images
 dynamic and take always new images ? The images would be always in the same
 folder, incremented by one: image 20, image 21, ...
 thanks !
 fraenk



 B. Bogart schrieb:

  Hi Frank,

 Use rectangle, not pix_draw (its slow)

 If you can put images in a pix_buffer it'll be really fast.

 Here is a 3x3 grid of images in gem (with lots of extra complexity)

 http://www.ekran.org/pd/patches/gem-image-grid.tgz

 ..b..

 Fränk Zimmer wrote:

 Hi,
 I did an image grid in Processing.- Every 10sec a routine is looking
 images in a folder and displays them in an image grid of 8x8 images.
 The Processing sketch does not run very stable, so I would like to know ,
 if already somebody did try this in Pd.- Is there a more clever way, than
 using [pix_draw] and [translate] for this?
 thanks.-
 best, fraenk

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --

 Fränk Zimmer

 visit: http://fz.mur.at



 ___
 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] Window focus in gem

2010-02-18 Thread John Harrison
Since you are on Linux one kludge might be to use devilspie
http://burtonini.com/blog/computers/devilspieto force focus to a
particular window?

On Thu, Feb 18, 2010 at 9:19 AM, James Dunn ja...@4thharmonic.com wrote:

  Hi list,

 I have a patch where I'm running the audio in one instance of pd and gem in
 another with -noaudio.
 I have the audio pd patch sending the output of [keyname] to gem pd via
 [netsend], but after starting the patch in fullscreen the audio pd patch
 loses the window focus. It works to begin with for a few keystrokes, then I
 can no longer control the audio. I have a [gemkeyname] object in the gem
 patch which then takes over (presumably triggered by the gem activity that
 was controlled from the audio pd patch), but I lose the audio pd control.
 I tried adding another netsend (on a different port) back to the audio pd,
 but then I get some double triggers!

 So, what is the best way to maintain focus on one particular window? It
 would be fine if the gem window has focus all the time, or the audio pd
 window but I haven't worked out how and why it changes. I'm using Ubuntu
 Hardy and pd-extended-0.42.5.

 thanks

 James

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] FT232 and PD (OSX)

2009-12-07 Thread John Harrison
On Mon, Dec 7, 2009 at 10:52 AM, Kyle Klipowicz kylek...@gmail.com wrote:

 Not exactly, the Arduino Duemilanove uses the ATmega168 chip. I have no
 knowledge of the FT232.


It uses the FT232 to communicate between the USB and the ATmega168:

http://www.scribd.com/doc/18027806/Arduino-Duemilanove-Schematic
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] PD with Ubuntu Karmic - no sound

2009-11-13 Thread John Harrison
IIRC there is some sort of ALSA compatibility layer in Pulseaudio and I
think it would be nice if Pd-extended could choose this ALSA driver or
soft card or whatever it would be called. That would be a better solution
than pasuspender because then Pd would be playing nice with all the other
sound apps concurrently. Latency might be slightly worse but I think for
beginners at least the initial experience would be more positive, as many of
these users are coming from OS X and Windows platforms where sound
applications sharing the same sound card concurrently is expected behavior.

I also vaguely remember the pulseaudio is only an issue with ALSA when there
is no hardware mixer in the card. But my guess is that would be all cheap
sound cards, since it has been the case with the built-in cards on all the
Linux-based laptops I run into.

-John

On Fri, Nov 13, 2009 at 6:50 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 Is pasuspender something that could be integrated into the Pd-extended menu
 launch item somehow?  I'd really like to make sure that Pd will output audio
 by just starting it in Debian/Ubunut.

 .hc

 On Nov 12, 2009, at 12:09 PM, John Harrison wrote:

 could be pulseaudio is the problem?

 from the command line try

 pasuspender pd

 On Thu, Nov 12, 2009 at 9:28 AM, Aditya Mandayam adity...@gmail.comwrote:

 hi,

 i have pd installed on ubunty 9.10 - karmic koala.

 i have absolutely no sound when i fire up pd. i've tried fooling
 around with the Mediasettings for OSS, ALSA, jack, default MIDI.

 No sound. What gives?

 Thank you,

 Y

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 John
 http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 Computer science is no more related to the computer than astronomy is
 related to the telescope.  -Edsger Dykstra





-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] PD with Ubuntu Karmic - no sound

2009-11-12 Thread John Harrison
could be pulseaudio is the problem?

from the command line try

pasuspender pd

On Thu, Nov 12, 2009 at 9:28 AM, Aditya Mandayam adity...@gmail.com wrote:

 hi,

 i have pd installed on ubunty 9.10 - karmic koala.

 i have absolutely no sound when i fire up pd. i've tried fooling
 around with the Mediasettings for OSS, ALSA, jack, default MIDI.

 No sound. What gives?

 Thank you,

 Y

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] using pix_mix to mix past images with present

2009-11-07 Thread John Harrison
I wanted to mix past images with present images from a webcam using pix_mix.
Attached is a patch that successfully does this using pix_buffer and fails
to do this using pix_delay. My question is, why doesn't pix_delay work with
pix_mix in my patch? How woulld I change my patch to get pix_delay to get
the same results as pix_buffer does?

Thanks,

-John

-- 
John
http://alumni.media.mit.edu/~harrison/
#N canvas 22 73 990 551 10;
#X obj 703 179 gemwin;
#X msg 655 146 create \, 1;
#X msg 735 146 destroy;
#X obj 245 40 gemhead;
#X obj 244 66 pix_video;
#X obj 205 368 rectangle 4 3;
#X obj 294 342 pix_separator;
#X obj 205 345 pix_texture;
#X obj 244 145 t a b;
#X obj 271 168 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 316 192 == 0;
#X obj 275 257 gemhead;
#X obj 233 304 pix_mix 0.1 0.9;
#X obj 296 366 pix_buffer_write MyDelay;
#X obj 275 276 pix_buffer_read MyDelay;
#X obj 68 277 pix_buffer MyDelay 2;
#X obj 528 265 pix_mix 0.1 0.9;
#X obj 244 93 spigot 0;
#X obj 479 103 spigot 1;
#X obj 388 37 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 562 332 pix_delay 1;
#X msg 624 308 1;
#X obj 624 285 loadbang;
#X obj 528 305 pix_separator;
#X obj 523 83 == 0;
#X text 542 214 PIX_MIX NOT WORKING HERE WITH PIX_DELAY;
#X text 45 213 PIX_MIX WORKING WITH PIX_BUFFER;
#X text 407 35 switch between pix_buffer and pix_delay. Why are these
getting different results?;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 17 0;
#X connect 4 0 18 0;
#X connect 6 0 13 0;
#X connect 7 0 5 0;
#X connect 8 0 12 0;
#X connect 8 1 9 0;
#X connect 9 0 10 0;
#X connect 9 0 13 1;
#X connect 10 0 14 1;
#X connect 11 0 14 0;
#X connect 12 0 6 0;
#X connect 12 0 7 0;
#X connect 14 0 12 1;
#X connect 16 0 7 0;
#X connect 16 0 23 0;
#X connect 17 0 8 0;
#X connect 18 0 16 0;
#X connect 19 0 17 1;
#X connect 19 0 24 0;
#X connect 20 0 16 1;
#X connect 21 0 20 1;
#X connect 22 0 21 0;
#X connect 23 0 20 0;
#X connect 24 0 18 1;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] using pix_mix to mix past images with present

2009-11-07 Thread John Harrison
Hmm. This worked for you? I get a seg fault with your patch when I click on
[create, 1(. I could get it to start w/out a seg fault by disconnecting the
[t a b ] from the [gemlist], then clicking on the [create, 1( then
reconnecting [t a b] to [gemlist], but then it doesn't work. I only see what
is coming from the camera and not any sort of mix. No errors reported
either.

What I am suspecting and what I thought your patch might also be showing is
that I need 2 rendering chains to use [pix_mix] and that having the images
to mix in separate buffers but from the same rendering chain is not
sufficient. But I'm not sure why that would be the case for a pix_ object so
I could also be making up random rules for stuff I don't understand --- thus
my initial question.

So basically I have a solution as I show in my original patch I sent. But
I'm looking for the why now.

I'm running Gem 0.91.3 and Pd 0.41.3 extended on Jaunty.

Thanks,

-John

On Sat, Nov 7, 2009 at 8:49 AM, Jack j...@rybn.org wrote:

 What about this ?
 ++

 Jack



 Le samedi 07 novembre 2009 à 07:32 -0600, John Harrison a écrit :
  I wanted to mix past images with present images from a webcam using
  pix_mix. Attached is a patch that successfully does this using
  pix_buffer and fails to do this using pix_delay. My question is, why
  doesn't pix_delay work with pix_mix in my patch? How woulld I change
  my patch to get pix_delay to get the same results as pix_buffer does?
 
  Thanks,
 
  -John
 
  --
  John
  http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM help patches not found on Windows XP

2009-09-13 Thread John Harrison
Workaround:

http://lists.puredata.info/pipermail/pd-dev/2009-04/013366.html

BTW you might confirm that the 8.3 filename for Program Files is indeed
PROGRA~1 on your system... I think it usually is but you can check that from
the command line. I think there's a flag in the dir command to show you the
8.3 filename...or you can use old skool COMMAND.COM and see what it lists
the directory as...at least this is what I recall. No Windows machine around
to check...

-John

On Sun, Sep 13, 2009 at 11:02 AM, r...@raakvlak.net wrote:

 Hi,

 I'm trying to get Pd to find the GEM help patches for its objects, but am
 having no luck so far.
 Default installation of pd-extended (version 0.40.3) keeps giving me
 'sorry, couldn't find help patch for ...' messages

 I've added the path C/Program Files/pd/extra/Gem to paths. Still no love.

 I have noticed that the folder with GEM helpfiles appear to be in two
 locations; /extra and /doc/5.reference - is this normal?

 All other helpfiles seem to work without a problem, just can't get Gem to
 behave :S

 BTW, I've seen this identical problem on every windows installation I know
 (over half a dozen), including 1 under a virtual machine on Mac OS X.
 The Mac-native version of pd-extended does not have this problem.

 The problem is compounded by Pd starting a new instance when you
 double-click a patch under Windows.
 If it would open in the same intance, I'd just have a window with help
 patches open...

 Any help in solving this would be greatly appreciated.


 Thanks




 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
This simple patch crashes every time on ubuntu Jaunty/Pd-extended 0.41.4.
The same patch works fine on my ubuntu Hardy machine, also with Pd-extended
0.41.4 It doesn't matter if I try a different video compressor. It still
crashes.

Just click on the filename, then click on [start(.

On the Jaunty machine, the help patch for [pdp_rec~] doesn't work either. A
quick workaround fix would be greatly appreciated, if one is possible. Or am
I missing something really obvious?

-- 
John
http://alumni.media.mit.edu/~harrison/
#N canvas 0 0 992 300 10;
#X obj 256 124 pdp_noise;
#X obj 257 95 metro 70;
#X obj 257 61 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 191 69 loadbang;
#X obj 256 171 pdp_glx;
#X obj 365 144 pdp_rec~;
#X floatatom 374 186 5 0 0 0 - - -;
#X msg 394 112 start;
#X msg 394 85 open /tmp/output.mov;
#X connect 0 0 4 0;
#X connect 0 0 5 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 6 0;
#X connect 7 0 5 0;
#X connect 8 0 5 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid (8.10) not
Hardy as stated below.

-John

On Thu, Jul 16, 2009 at 2:29 AM, John Harrison johnharrison...@gmail.comwrote:

 This simple patch crashes every time on ubuntu Jaunty/Pd-extended 0.41.4.
 The same patch works fine on my ubuntu Hardy machine, also with Pd-extended
 0.41.4 It doesn't matter if I try a different video compressor. It still
 crashes.

 Just click on the filename, then click on [start(.

 On the Jaunty machine, the help patch for [pdp_rec~] doesn't work either. A
 quick workaround fix would be greatly appreciated, if one is possible. Or am
 I missing something really obvious?

 --
 John
 http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
Yves what distro do you run? Are bugs I find more likely to be fixed
if I run the same distro as you? Also what happens with pdp_rec? It
remains as undocumented and broken for the latest debian distros for
some unspecified amount of time? Any method already in place for
keeping track of bugs in pdp/PiDiP?

On 7/16/09, ydego...@gmail.com ydego...@gmail.com wrote:
 ola,

 sorry for that..
 you can suspect something changed in libquicktime interface
 but i have no jaumty here...
 you can try to record in theora format
 with pdp_theorout~,
 after all it will be already compressed
 as you want and ready to publish on the web

 saludos,
 sevy

 John Harrison wrote:
 Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid
 (8.10) not Hardy as stated below.

 -John

 On Thu, Jul 16, 2009 at 2:29 AM, John Harrison
 johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:

 This simple patch crashes every time on ubuntu Jaunty/Pd-extended
 0.41.4. The same patch works fine on my ubuntu Hardy machine, also
 with Pd-extended 0.41.4 It doesn't matter if I try a different
 video compressor. It still crashes.

 Just click on the filename, then click on [start(.

 On the Jaunty machine, the help patch for [pdp_rec~] doesn't work
 either. A quick workaround fix would be greatly appreciated, if
 one is possible. Or am I missing something really obvious?

 --
 John
 http://alumni.media.mit.edu/~harrison/
 http://alumni.media.mit.edu/%7Eharrison/




 --
 John
 http://alumni.media.mit.edu/~harrison/
 http://alumni.media.mit.edu/%7Eharrison/
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
Sent from Gmail for mobile | mobile.google.com

John
http://alumni.media.mit.edu/~harrison/

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdp_v4l framerate

2009-07-14 Thread John Harrison
This is a phillips webcam chipset so setpwc sets the framerate from the
command line --- at least there is workaround for now. pdp_v4l2 didn't work
with this webcam.

-John

On Sun, Jul 5, 2009 at 1:36 PM, ydego...@gmail.com ydego...@gmail.comwrote:


 ola,

 it's kind of strange,
 seems some cameras needs it and others no..
 but it surely lacks a message to change the framerate
 for those who need it..

 also in pdp_v4l2, it works fine,
 the frequency of the metro controls the framerate,
 so maybe, you can see if your cam is supported by
 pdp_v4l2, that would be the faster solution

 saludos,
 sevy


 John Harrison wrote:

 When opening a webcam using pdp_v4l I get the message:

 pdp_v4l: camera framerate set to 10 fps

 Any way to change this frame rate? I didn't see anything in the help
 patch. Banging with different metronome speed  [pdp_v4l] changes the rate at
 which video is output from the object, but I can see from the resulting
 video that the actual framerate from the webcam is not changing. [pix_video]
 does not seem to have this problem so I know the framerate can be changed.

 Thx,

 -John

 --
 John
 http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/
 http://alumni.media.mit.edu/%7Eharrison/
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list






-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pdp_v4l framerate

2009-07-05 Thread John Harrison
When opening a webcam using pdp_v4l I get the message:

pdp_v4l: camera framerate set to 10 fps

Any way to change this frame rate? I didn't see anything in the help patch.
Banging with different metronome speed  [pdp_v4l] changes the rate at which
video is output from the object, but I can see from the resulting video that
the actual framerate from the webcam is not changing. [pix_video] does not
seem to have this problem so I know the framerate can be changed.

Thx,

-John

-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] in/out count

2009-06-05 Thread John Harrison
humph. Well here's one solution but there's probably something simpler. 
I'll be curious what other people come up with...


-John

potax flan wrote:

yo
this is doing my head in but i guess it's not rocket science...
trying to figure out a system to keep track of how many people are in 
a room at any given moment.
already have 2 sensors doing the physical work and sending bangs to 
pd, but then i get stuck...
ii have 2 bangs -- one for the left sensor, the other for the right, 
so that the left+right sequence means someone goes in and the 
right+left one means someone leaves the room.
i was trying to make it as elegant and simple as possible instead of 
having a crazy gate/select contraption.

ideas?


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
  


--
John Harrison
http://alumni.media.mit.edu/~harrison


#N canvas 290 97 523 522 10;
#X obj 86 -75 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 279 -72 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 222 162 spigot;
#X msg 86 -26 1;
#X msg 221 139 1;
#X msg 255 140 0;
#X obj 277 -50 t b b;
#X obj 86 21 t f f;
#X obj 84 64 spigot 1;
#X msg 281 -28 1;
#X obj 281 22 t f f;
#X obj 277 66 spigot 0;
#X obj 129 23 == 0;
#X obj 322 23 == 0;
#X msg 109 134 -1;
#X obj 85 -48 t b b;
#X obj 109 158 spigot;
#X msg 142 135 0;
#X obj 213 286 +;
#X floatatom 216 324 5 0 0 0 - - -;
#X obj 202 251 int;
#X obj 212 223 t b f;
#X connect 0 0 15 0;
#X connect 1 0 6 0;
#X connect 2 0 21 0;
#X connect 3 0 7 0;
#X connect 4 0 2 0;
#X connect 5 0 2 1;
#X connect 6 0 5 0;
#X connect 6 0 9 0;
#X connect 6 1 4 0;
#X connect 7 0 8 1;
#X connect 7 1 8 0;
#X connect 8 0 2 1;
#X connect 8 0 13 0;
#X connect 8 0 17 0;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 10 1 11 0;
#X connect 11 0 12 0;
#X connect 11 0 16 1;
#X connect 12 0 8 1;
#X connect 13 0 11 1;
#X connect 14 0 16 0;
#X connect 15 0 3 0;
#X connect 15 0 17 0;
#X connect 15 1 14 0;
#X connect 16 0 21 0;
#X connect 17 0 16 1;
#X connect 18 0 20 1;
#X connect 18 0 19 0;
#X connect 20 0 18 0;
#X connect 21 0 20 0;
#X connect 21 1 18 1;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem: fullscreen can't get rid of apple menubar OS X 10.5.7

2009-06-04 Thread John Harrison
I already tried that trick of creating, destroying and recreating. No dice.

On Thu, Jun 4, 2009 at 8:47 AM, Nicolas Montgermont 
nicolas_montgerm...@yahoo.fr wrote:

  The [menubar 0 ( is working ok here also on 10.5.7 but the border of the
 window is still present.
 If you create the window, destroy the window once and recreate it in your
 patch, the border 0 is taken into account.
 I don't know if it's a recent bug but it seems to me I'm doing this for a
 while now to have the whole screen.

 Greetings,

 Nicolas

 Le 4/06/09 14:01, John Harrison a écrit :

 The patch is very basic and worked fine on a Linux machine before. We were
 moving it to a new MacBook for portability. I can't give you the actual
 patch though don't have access to this laptop right now and can't really
 look at this again for another few weeks. But I can tell you that when I had
 troubles, for testing I built a patch that was exactly like the attached
 patch and the menubar still would not disappear.

 -John

 On Thu, Jun 4, 2009 at 1:45 AM, marius schebella 
 marius.schebe...@gmail.com wrote:

 marius schebella wrote:

 Hi John, is this a problem of 10.5.7? Did it work before?
 [fullscreen 1, menubar 0, create, 1(
 works for 10.5.6
 will update to 10.5.7 and try again...
 marius.


  [menubar 0( works with 10.5.7, too.
 please post more details, or your patch.
 marius.




 John Harrison wrote:

 I'm sending |fullscreen 1, cursor 0, menubar 0, border 0, create, 1,
 lighting 0(

 (and every variant of order etc. I can think of, menubar -1 etc.)

 to [gemwin]

 and the top apple menubar shows up every time.

 I tried Pd-extended latest release 0.40-3 and Pd-extended 0.41-4 RC 4

 I tried everything I could think of in the [window properties] help of
 Gemwin and a few times got rid of the menubar with some magical
 something-or-other but if I closed Pd, reopened and tried again I couldn't
 duplicate getting rid of the menubar.

 -John


 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 --

 ___pd-l...@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


 --
 http://nim.on.free.fr

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pix_record issues with geos and frames per second

2009-05-10 Thread John Harrison
In terms of recording the Geos here's a sample patch of how I might do 
that. Idea, method, and code stolen liberally from Marius Schebella's 
posts to this list.


In terms of framerate, I am not sure but I would have guessed that you 
could either send [auto 0( to [pix_record] then bang [pix_record] at the 
framerate you wish or change [gemwin] to be the framerate you wish and 
send [auto 1( to [pix_record] . If framerate doesn't seem to be matching 
what you expect, I wonder if [pix_record] is having trouble keeping up 
due to CPU load. You might try an uncompressed format for your codec.


-John

Derrick Barnicoat wrote:

Hello,
I am very much a newbie to PD/GEM and I just recently created my first video mixer/processer. I am using pix_mix to mix a video of an improvised performance I did with a dancer mixed with itself. I stretched each video over a cube geo. It is 2 chanels. One chanel is an uneffected version of the video. The other video has pix_rtx, pix_lumaoffset, pix_contrast, colorRGB with alpha, and pix_rgb2hsv as filters. Each cube has sliders assigned to control translation, rotation, and scale in unison. There are also three metro objects that control several inputs of the filters. 


Everything works fine as far as live performance but I want to record the 
performance as a video file so I can send a version of it to the dancer and 
perhaps share it via youtube or another video sharing site. I have made various 
attempts using pix_record and pix_snap objects but the results have been 
disappointing in various ways.

The first attempts resulted in a .mov file but at the wrong fps and thus to slow to match the audio track. As I understand it pix_record only outputs 20fps files but I have a dialog that offers other options. The problem is the dialog closes the gemwin everytime I try to use it and the dialog seems to be set to 12fps. So I tried importing 12fps and 20fps versions of the same video. 

This was before I added the pix_snap object which I added to resolve another issue. The other issue is that the cube geos are not included in the recording. All the effects are present but no cubes, only the video without texturing to the geos. I researched various techniques to record the geos as well and the best option seemed to be to use pix_snap. 

Pix_snap resulted in a single frame video with no geos. 


I guess my question is basicly how do I record a Gem video with all elements 
included and at the correct fps? Is there another way besides pix_record? Is 
pix_write the other way? If so how would I use pix_write as it only exports 
.jpg and .tiff files? I am kind of hoping there is a way to churn out various 
improvised video manipulations of this performance and other videos I have done 
so I can share them. Any ideas or is GEM just not meant to be recorded. I mean 
I have seen GEM videos posted online so there must be an obvious way to do this 
that I am missing.

I feel like I just don't know the proper way to use pix_record and pix_snap together, but maybe I am just going about the process in the absolutely wrong way. 


Any ideas? please be as specific as possible because I am new to this and still 
don't understand allot. Thanks so much.

Derrick

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list

  


--
John Harrison
http://alumni.media.mit.edu/~harrison


#N canvas 395 240 880 497 10;
#X obj 29 67 gemhead;
#X msg 566 56 create \, 1;
#X msg 644 57 destroy;
#X obj 29 92 gemframebuffer;
#X obj 560 260 pix_texture;
#X obj 29 278 pix_snap;
#X msg 82 248 512 512;
#X obj 29 218 t b a;
#X obj 89 228 loadbang;
#X msg 29 238 snap;
#X obj 29 308 t a b;
#X obj 29 335 pix_buffer_write \$0-depot;
#X obj 89 47 loadbang;
#X msg 89 67 dimen 512 512;
#X obj 559 234 pix_buffer_read \$0-depot;
#X obj 559 184 gemhead 51;
#X obj 559 204 t a b;
#X msg 181 314 0;
#X obj 352 29 pix_buffer \$0-depot 1;
#X msg 685 207 0;
#X obj 25 153 cnv 15 380 60 empty empty empty 20 12 0 14 -261682 -66577
0;
#X obj 560 398 square 4;
#X obj 507 27 loadbang;
#X obj 29 112 translateXYZ 0 0 -4;
#X obj 560 350 pix_record;
#X msg 495 56 lighting 1;
#X msg 582 280 file /tmp/mymovie.mov;
#X msg 584 321 record 1;
#X msg 583 302 auto 1;
#X msg 647 322 record 0;
#X obj 589 99 gemwin 20;
#X floatatom 588 372 5 0 0 0 - - -;
#N canvas 94 100 450 300 
everything-you-want-to-record-would-go-in-this-rendering-chain
0;
#X obj 90 34 inlet;
#X obj 89 83 outlet;
#X obj 91 60 sphere 2;
#X text 270 28 some animation to record;
#X obj 202 68 line 0 1;
#X msg 202 47 0 \, 3 3000;
#X obj 202 27 metro 3000;
#X obj 266 159 world_light;
#X obj 267 134 gemhead;
#X obj 202 7 loadbang;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 4 0 2 1;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 8 0 7 0;
#X connect 9 0 6 0;
#X restore 29 160 pd 
everything-you-want-to-record-would-go-in-this-rendering-chain
;
#X connect 0 0 3 0;
#X connect 1 0 30 0

Re: [PD] Has anyone used PD to read internet radio streams?

2009-04-08 Thread John Harrison
I've used mp3amp~ to play shoutcast streams. It seems to work pretty well
and I think it's already included in Pd-extended for Linux. Might be on the
OSX version too...not sure.

-John

On Wed, Apr 8, 2009 at 12:41 AM, danomatika danomat...@gmail.com wrote:

  Howdy,

 I'm wondering if anyone has used PD to read internet radio streams?

 I need to make an interactive tuner ...

   ---
 Dan Wilcox
 danomatika.com
 robotcowboy.com http://www.robotcowboy.com

 ___
 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] pdpedia

2009-04-02 Thread John Harrison
I've followed the pdpedia threads but perhaps not closely enough. I've
always thought Pd lent itself well to documentation and self-exploration
because of the interactive help patches. A wiki approach does not offer
this. On the other hand it does offer an easy way to grow docs through
collaborative editing, plus there's search capabilities for newbies to find
what they want etc.

Any ideas about how these two things might be combined? Perhaps pddp already
examined this?

-John

On Thu, Apr 2, 2009 at 10:51 AM, Alexandre Porres por...@gmail.com wrote:

 yeah, well, I dont really have a clue on what is missing too, please check
 then, and we will start with the most needed.

 cheers


 On Thu, Apr 2, 2009 at 12:24 PM, Philip Potter 
 philip.g.pot...@gmail.comwrote:

 2009/4/1 Alexandre Porres por...@gmail.com:
 
  does this mean that you want to make a reference manual of Every
 Object,
  no matter whether it has been implemented or not?
 
  well, we could skip the not implemented ones for now :)

 I think in the interests of starting somewhere, and with the basics,
 I'm going to go through the pd help files in order and make sure
 everything there is covered by pdpedia. We can do more advanced stuff
 when pdpedia is a bit more developed, but for the moment, there isn't
 even an article on message, so I'll go and write that.

  but what keeps us from doing this right now? what has kept us from
 doing
  so in the past few years of pdpedia's existance?
  what shall we do to avoid becoming a honeypot?
 
  hmm, sorry for not having followed the pdpedia since it has started, so
 I
  dont know actually about its history and everything. I just wish to
  collaborate, so please fill me in.
  what is honeypot? something not good I guess.

 A honeypot is something attractive to spammers and hackers.

 Philip




 --
 Alexandre Torres Porres
 cel. (11)8179-6226
 Website: http://porres.googlepages.com/home
 http://www.myspace.com/alexandretorresporres


 ___
 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] Delay effect without clicks

2009-03-27 Thread John Harrison
I think what you are talking about is zipper noise --- when you change 
the value sent to [vd~] what you are hearing is a discontinuity in the 
audio caused by the discontinuity between the new value and the previous 
value sent to [vd~]. Smooth your trip between the values with [line~]. 
Try something like this:


delaytime
|
[$1 100(
|
[line~]
|
[vd~ testname]

Play with the 2nd parameter in the message sent to line (shown as 100 
above). I don't know how much doppler effect you are going to want to 
replace your clicks.


-John

Bjørn Nielsen wrote:

Hey Marius
Thanks for the quick reply.

I have now tried vd~, but I still encounter clicks noises when I
change delay time.

audiosignal
|
[delwrite testname 2000]

delaytime
|
 [sig~]
|
[vd~ testname]
|
audioout+back to delwrite

Do the click noises has something to do with the samplelength in
delwrite~? (and can it at all be changed on the fly?)

/Bjørn


On Fri, Mar 27, 2009 at 00:13, marius schebella
marius.schebe...@gmail.com wrote:
  

hi Bjørn,
maybe vd~ (variable delay) is what you're looking for?
marius.

Bjørn Nielsen wrote:


Hey PD list
This is my first mail to the list and I am a newbie in PD, so please
bear with me.

I am trying to make a patch that simulates the delay effects I use as
a stompbox for my guitar. I.e. a signal delay line, with a parameter
of feedback and a parameter of delay time. While changing the delay
time parameter the ongoing sampled part should change pitch.

My first attempt (as in the attached patch) is to use
delread~/delwrite~, but changing the lenght of the sampled part in
delread~ makes a lot of clicks noises (which can be fun, but not what
I intended) and it do not change pitch. My max/msp friend said I
should instead of clipping the sample, make it run faster. So I tried
to figure if that was possible with delread~, vd~ or using arrays
instead with tabread(4)~, but I have not found the golden key yet.

I would be very happy if somebody could lead me in right direction.
Thanks, Bjørn




___
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

  


--
John Harrison
http://alumni.media.mit.edu/~harrison


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delay effect without clicks

2009-03-27 Thread John Harrison
from your first email, it sounds like you are expecting a pitch shift. 
So how does the pitch shift you are hearing differ from what you are 
expecting i.e. define weird. I take it you tried different numbers 
where the 50 is i.e. 500 etc.? Still weird?


It seemed to me that Frank thought you wanted to build a pitch shifter 
using the delay effect.


-John

Bjørn Nielsen wrote:

Thanks Marius, Frank  John

I got rid of the click noises now by doing this

[numberbox\
 |
[pack $f1 50]
 |
[line~]
 |
[vd~ testreadname]

But the pitch shifting it does while changing delay time is quite
weird, so I think I will look into Franks example of doing this.

/ Bjørn

On Fri, Mar 27, 2009 at 07:08, marius schebella
marius.schebe...@gmail.com wrote:
  

hi again,
vd~ allows you to be controlled via a dsp signal (as opposed to a message
inlet which only gets updated every 1,6 ms or so) and thus allows you to
smoothly change the delay time. but you have to do do an interpolation
between the messages you are feeding into it, and the best way to do this is
with [line~].

[numberbox\
 |
[line $1 100(
 |
[vd~ del]

marius.


Bjørn Nielsen wrote:


Hey Marius
Thanks for the quick reply.

I have now tried vd~, but I still encounter clicks noises when I
change delay time.

audiosignal
|
[delwrite testname 2000]

delaytime
|
 [sig~]
|
[vd~ testname]
|
audioout+back to delwrite

Do the click noises has something to do with the samplelength in
delwrite~? (and can it at all be changed on the fly?)

/Bjørn


On Fri, Mar 27, 2009 at 00:13, marius schebella
marius.schebe...@gmail.com wrote:
  

hi Bjørn,
maybe vd~ (variable delay) is what you're looking for?
marius.

Bjørn Nielsen wrote:


Hey PD list
This is my first mail to the list and I am a newbie in PD, so please
bear with me.

I am trying to make a patch that simulates the delay effects I use as
a stompbox for my guitar. I.e. a signal delay line, with a parameter
of feedback and a parameter of delay time. While changing the delay
time parameter the ongoing sampled part should change pitch.

My first attempt (as in the attached patch) is to use
delread~/delwrite~, but changing the lenght of the sampled part in
delread~ makes a lot of clicks noises (which can be fun, but not what
I intended) and it do not change pitch. My max/msp friend said I
should instead of clipping the sample, make it run faster. So I tried
to figure if that was possible with delread~, vd~ or using arrays
instead with tabread(4)~, but I have not found the golden key yet.

I would be very happy if somebody could lead me in right direction.
Thanks, Bjørn




___
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

  


--
John Harrison
http://alumni.media.mit.edu/~harrison


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] still struggling with basic understanding of Gem dataflow

2009-03-26 Thread John Harrison
This is fantastic! Thank you Marius for taking the time to build these 
patches.


rtx_sch2.pd exactly answered my question and shows beautifully how to 
perform a set of OpenGL operations on the content of some pix_ data 
before applying more pix_ operations. The patch makes total sense.


I'm still playing with it to make sure I fully grasp all parts. I really 
appreciate this help.


-John

marius schebella wrote:

hi,
I think your pix_coordinate idea was not that bad (see attached patch).
but that is probably not what you want??
on the other hand, using pdp_rotate and converting twice is really 
eating up a lot of cpu. pdp is a different world again and the bridge 
between pdp and gem is buggy (your patch crashed my computer for 
example).
but again, as chris said. there is a difference between rotating the 
content of the pix data and rotating the geometry that this data is 
mapped to.
so the second patch shows, what I think you really want. rotate an 
image and then feed this into your pix_rtx.

marius.

John Harrison wrote:
This is extremely helpful. I'm starting to get it. 
Comments/questions inline.


chris clepper wrote:

There are two types of objects in GEM: pix and OpenGL.
Pix objects do work in the top to bottom manner like Pd DSP objects.
would [pix_coordinate] be an exception to this? I've been playing 
with it and it seems to behave the way you have described OpenGL 
objects and not GEM objects. I read the help patch about 
[pix_texture] reassigning the coordinate values, but that still 
didn't explain all the behavior I was seeing.
The convention in GEM is to put the GL objects after the pix_ ones 
showing that once the pix_ processes are done on the CPU it is time 
for the GL processes on the GPU to start. 
I understand you to be saying that the GL processes will always be 
applied after the pix_ processes. If that is the case, then it sounds 
like there is no way to have [rotateXYZ] applied before [pix_rtx]. 
Makes sense.


For the more general case, is it correct that there is no way in GEM 
to give an arbitrary rotation of an image as input to a pix_ object 
since there is no Gem pix_ object with arbitrary rotation function?


Figuring that might be the case, I tried to build [pix_rotate] using 
[pix_coordinate]...and this led me to the question about about 
[pix_coordinate]


Using pdp_rotate, pix_2gem and gem2pdp, I did successfully build a 
pix_ rotator. On the chance it might be helpful to see, I attached a 
demo patch which feeds a rotated video stream to [pix_rtx] then 
rotates the stream back to the way it was. While it more-or-less 
works it seems a bit scabby. Is there a better way?



There are lots of exceptions to Pd rules in GEM and there is really 
no way around them.  It is kind of like learning English - I before 
E except after C, excepting all of those words that ignore the rule.
As long as I can make sense of what the rules are, which objects 
break them, and some rough idea as to why, I'm cool with that.


Thank you again for your help. As Hans suggests, I'd like to find a 
way to help organize, then share this information, whether it be on 
the wiki or in some other meaningful way.


-John






___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] still struggling with basic understanding of Gem dataflow

2009-03-25 Thread John Harrison
Thanks Hans. I know the example patch already and I have [pix_rtx] working
fine inasfar as I can get it to do what the example patch already shows. I
think my question is more about data flow and Gem. My patch and [pix_rtx}
are just an example of a more basic misunderstanding I believe I have which
has not been cleared up despite many hours of work in Gem.

Could somebody explain to me my [pix_rtx] in my example patch appears to be
processed before the rotation instead of after?

-John

On Tue, Mar 24, 2009 at 9:33 PM, Hans-Christoph Steiner h...@eds.orgwrote:


 I think this is an appropriate place to discuss gem.  In the Help browser,
 check out:

 examples - Gem - 04.video - 04.videoRTX.pd

 I had to do some trickery to get it working OK.  Check the archives for
 details, I remember some discussion about all the separators.

 .hc


 On Mar 24, 2009, at 3:35 PM, John Harrison wrote:

  Attached is a small example patch of how I just don't get Gem...still...

 [pix_rtx] has a steady wave that normally flows from left to right.

 I would have thought that the attached patch shows me rotating the image
 first, then applying [pix_rtx]. So it would stand to reason in my mind I
 would see a rotated image with [pix_rtx] flowing from left to right.

 But that isn't the result I see. The patch has [pix_rtx] flowing from
 right to left now. It is as if [pix_rtx] is applied *before* the rotation
 instead of *after* as I would have expected.

 Grasping at straws, I have tried [pix_separator] between just about every
 object, but that makes no difference.

 What am I misunderstanding that makes the behavior of the patch make
 sense? And...how would I get [pix_rtx] to flow from left to right on a
 mirrored image?

 -John

 P.S. Are questions like this better on the Gem-dev list? That's a
 developer list but at the same time I feel a bit awkward putting too many
 Gem questions on a Pd list

 #N canvas 962 171 305 227 10;
 #X obj 29 -58 gemhead;
 #X obj 29 -35 pix_video;
 #X obj 29 44 pix_texture;
 #X obj 28 72 rectangle 4 3;
 #X obj 159 9 gemwin;
 #X msg 136 -34 create \, 1;
 #X msg 214 -33 destroy;
 #X obj 135 -57 loadbang;
 #X obj 29 17 pix_rtx;
 #X obj 29 -10 rotateXYZ 0 180 0;
 #X connect 0 0 1 0;
 #X connect 1 0 9 0;
 #X connect 2 0 3 0;
 #X connect 5 0 4 0;
 #X connect 6 0 4 0;
 #X connect 7 0 5 0;
 #X connect 8 0 2 0;
 #X connect 9 0 8 0;
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 There is no way to peace, peace is the way.   -A.J. Muste



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] still struggling with basic understanding of Gem dataflow

2009-03-25 Thread John Harrison

I'm pretty determined to work through this! :-)

I thought I'd write a workaround to keep this conversation moving: My 
plan was to write the video to a buffer with [pix_buffer], then read one 
frame later and apply [pix_rtx]. I've done this workaround before for 
similar situations.


But I got stuck before I even got to [pix_rtx]. Please see the attached 
patch.


In the patch you'll see 3 toggles, all of which I would have expected to 
show a rotated image textured onto a rectangle. Only one of them does. 
They are numbered right to left.


Box 1 shows the output of [pix_buffer_write]. That shows a rotated 
image. Fine so far.


Box 2 shows the output of [rotateXYZ] before [pix_buffer_write]. That 
shows a rotated white box with no image textured. Why?


Box 3 shows the output of [pix_buffer_read]. That shows an image but no 
rotation. Why? This one is especially troublesome to me.


I'm trying to make my questions as specific as possible. Please 
understand I have looked at plenty of examples of [rotateXYZ] and I 
understand the object and have made full use of it. And I have 
previously read about [pix_separator] and know the archives that refer 
to it. There's something else going on here about dataflow with Gem that 
I don't get. I can make up 10 other examples with 10 other objects if I 
have to.


-John

John Harrison wrote:
Thanks Hans. I know the example patch already and I have [pix_rtx] 
working fine inasfar as I can get it to do what the example patch 
already shows. I think my question is more about data flow and Gem. My 
patch and [pix_rtx} are just an example of a more basic 
misunderstanding I believe I have which has not been cleared up 
despite many hours of work in Gem.


Could somebody explain to me my [pix_rtx] in my example patch appears 
to be processed before the rotation instead of after?


-John

On Tue, Mar 24, 2009 at 9:33 PM, Hans-Christoph Steiner h...@eds.org 
mailto:h...@eds.org wrote:



I think this is an appropriate place to discuss gem.  In the Help
browser, check out:

examples - Gem - 04.video - 04.videoRTX.pd

I had to do some trickery to get it working OK.  Check the
archives for details, I remember some discussion about all the
separators.

.hc


On Mar 24, 2009, at 3:35 PM, John Harrison wrote:

Attached is a small example patch of how I just don't get
Gem...still...

[pix_rtx] has a steady wave that normally flows from left to
right.

I would have thought that the attached patch shows me rotating
the image first, then applying [pix_rtx]. So it would stand to
reason in my mind I would see a rotated image with [pix_rtx]
flowing from left to right.

But that isn't the result I see. The patch has [pix_rtx]
flowing from right to left now. It is as if [pix_rtx] is
applied *before* the rotation instead of *after* as I would
have expected.

Grasping at straws, I have tried [pix_separator] between just
about every object, but that makes no difference.

What am I misunderstanding that makes the behavior of the
patch make sense? And...how would I get [pix_rtx] to flow from
left to right on a mirrored image?

-John

P.S. Are questions like this better on the Gem-dev list?
That's a developer list but at the same time I feel a bit
awkward putting too many Gem questions on a Pd list

#N canvas 962 171 305 227 10;
#X obj 29 -58 gemhead;
#X obj 29 -35 pix_video;
#X obj 29 44 pix_texture;
#X obj 28 72 rectangle 4 3;
#X obj 159 9 gemwin;
#X msg 136 -34 create \, 1;
#X msg 214 -33 destroy;
#X obj 135 -57 loadbang;
#X obj 29 17 pix_rtx;
#X obj 29 -10 rotateXYZ 0 180 0;
#X connect 0 0 1 0;
#X connect 1 0 9 0;
#X connect 2 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 4 0;
#X connect 7 0 5 0;
#X connect 8 0 2 0;
#X connect 9 0 8 0;
___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list






There is no way to peace, peace is the way.   -A.J. Muste





--
John Harrison
http://alumni.media.mit.edu/~harrison


#N canvas 373 161 758 508 10;
#X obj 472 38 gemhead;
#X obj 472 61 pix_video;
#X obj 59 322 pix_texture;
#X obj 59 352 rectangle 4 3;
#X obj 48 12 gemwin;
#X msg 25 -31 create \, 1;
#X msg 103 -30 destroy;
#X obj 24 -54 loadbang;
#X obj 625 -6 + 1;
#X floatatom 649 60 5 0 0 0 - - -;
#X floatatom 369 111 5 0 0 0 - - -;
#X obj 27 47 pix_buffer depot 3;
#X obj 370 83 % 3;
#X obj 625 21 % 3;
#X obj 506 123 pix_buffer_write depot;
#X obj 238 135 pix_buffer_read depot;
#X obj 369 32 int 0;
#X obj 414 -1

Re: [PD] still struggling with basic understanding of Gem dataflow

2009-03-25 Thread John Harrison
On Wed, Mar 25, 2009 at 10:22 AM, marius schebella 
marius.schebe...@gmail.com wrote:

 hi john,
 I just looked at your patches, here's what I think:
 1) pix_buffer_write seems to copy and clear the pix buffer. so if your
 pix_video is connected to pix_buffer_write it is gone and you don't
 see it anymore (rectangle stays white). I am not sure if this is a
 bug, it seems strange to me, too. but as soon as you disconnect the
 pix_buffer_write the image will be shown on the rotated rectangle.


Yes I also noticed that disconnecting the [pix_buffer_write] fixes the
problem. i see that sort of thing in Gem all the time ([pix_mix] for
example.) But wouldn't a [pix_separator] fix this then? It doesn't...


 2) the rotateXYZ does not rotate the pixels, but only the geometry
 that this texture is mapped to (the rectangle). so in your left
 example you go from gemhead through buffer_read, texture to the
 rectangle. in that line no rotationXYZ is applied to the rectangle.
 marius.

So why does the right example work? Because the rotation happens after the
[pix_buffer_write] even though [pix_buffer_write] is later in the rendering
chain? Or perhaps the rotation is ignored by [pix_buffer_write]? And at the
same time [pix_buffer_write] sends the output of the rotation as a
passthrough on its outlet? And also you are saying it would be normal and
expected for the output of [pix_buffer_write] to be different than what
[pix_buffer_write] is actually storing? If that isn't the case, example 1
and example 3 should produce the same results.

Perhaps I need some rules about how Gem is different than Pd in terms of
dataflow. So far it seems to me that a rendering chain in Gem shows
conections but does not reveal the order in which these connections are
processed i.e. if 3 objects are all connected to each other in a rendering
chain in Gem i.e.

[Gemhead]
|
[object 1]
|
[object 2]
|
[object 3]

we cannot conclude that the output of [object 1] feeds the input of [object
2] and the output of [object 2] feeds the input of [object 3]. We only know
that the data will be processed by objects 1, 2 and 3 but not in what order
they will be processed.

Further perhaps we cannot conclude that the output of an object is actually
the result of the object having processed the data. Demonstrating this: in
my patch example, [pix_buffer_write] outputs different data than it stores,
or examples 1 and 3 would be the same.

And this leads me to a more general statement of my original question: how
can I determine the order in which objects are processed in Gem?

And my specific example which started this thread: how would one apply a
rotation to an image, then apply [pix_rtx] to the rotated image?

-John




 2009/3/24 John Harrison john.harri...@alum.mit.edu:
   Attached is a small example patch of how I just don't get
 Gem...still...
 
  [pix_rtx] has a steady wave that normally flows from left to right.
 
  I would have thought that the attached patch shows me rotating the image
  first, then applying [pix_rtx]. So it would stand to reason in my mind I
  would see a rotated image with [pix_rtx] flowing from left to right.
 
  But that isn't the result I see. The patch has [pix_rtx] flowing from
 right
  to left now. It is as if [pix_rtx] is applied *before* the rotation
 instead
  of *after* as I would have expected.
 
  Grasping at straws, I have tried [pix_separator] between just about every
  object, but that makes no difference.
 
  What am I misunderstanding that makes the behavior of the patch make
 sense?
  And...how would I get [pix_rtx] to flow from left to right on a mirrored
  image?
 
  -John
 
  P.S. Are questions like this better on the Gem-dev list? That's a
 developer
  list but at the same time I feel a bit awkward putting too many Gem
  questions on a Pd list
 
 
   #N canvas 962 171 305 227 10;
  #X obj 29 -58 gemhead;
  #X obj 29 -35 pix_video;
  #X obj 29 44 pix_texture;
  #X obj 28 72 rectangle 4 3;
  #X obj 159 9 gemwin;
  #X msg 136 -34 create \, 1;
  #X msg 214 -33 destroy;
  #X obj 135 -57 loadbang;
  #X obj 29 17 pix_rtx;
  #X obj 29 -10 rotateXYZ 0 180 0;
  #X connect 0 0 1 0;
  #X connect 1 0 9 0;
  #X connect 2 0 3 0;
  #X connect 5 0 4 0;
  #X connect 6 0 4 0;
  #X connect 7 0 5 0;
  #X connect 8 0 2 0;
  #X connect 9 0 8 0;
 
  ___
  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] still struggling with basic understanding of Gem dataflow

2009-03-25 Thread John Harrison
This is extremely helpful. I'm starting to get it. Comments/questions 
inline.


chris clepper wrote:
There are two types of objects in GEM: pix and OpenGL. 


Pix objects do work in the top to bottom manner like Pd DSP objects.
would [pix_coordinate] be an exception to this? I've been playing with 
it and it seems to behave the way you have described OpenGL objects and 
not GEM objects. I read the help patch about [pix_texture] reassigning 
the coordinate values, but that still didn't explain all the behavior I 
was seeing.
The convention in GEM is to put the GL objects after the pix_ ones 
showing that once the pix_ processes are done on the CPU it is time 
for the GL processes on the GPU to start. 
I understand you to be saying that the GL processes will always be 
applied after the pix_ processes. If that is the case, then it sounds 
like there is no way to have [rotateXYZ] applied before [pix_rtx]. Makes 
sense.


For the more general case, is it correct that there is no way in GEM to 
give an arbitrary rotation of an image as input to a pix_ object since 
there is no Gem pix_ object with arbitrary rotation function?


Figuring that might be the case, I tried to build [pix_rotate] using 
[pix_coordinate]...and this led me to the question about about 
[pix_coordinate]


Using pdp_rotate, pix_2gem and gem2pdp, I did successfully build a pix_ 
rotator. On the chance it might be helpful to see, I attached a demo 
patch which feeds a rotated video stream to [pix_rtx] then rotates the 
stream back to the way it was. While it more-or-less works it seems a 
bit scabby. Is there a better way?



There are lots of exceptions to Pd rules in GEM and there is really no 
way around them.  It is kind of like learning English - I before E 
except after C, excepting all of those words that ignore the rule.
As long as I can make sense of what the rules are, which objects break 
them, and some rough idea as to why, I'm cool with that.


Thank you again for your help. As Hans suggests, I'd like to find a way 
to help organize, then share this information, whether it be on the wiki 
or in some other meaningful way.


-John
#N canvas 65 149 758 508 10;
#X obj 95 44 gemhead;
#X obj 95 67 pix_video;
#X obj 235 386 pix_texture;
#X obj 234 405 rectangle 4 3;
#X obj 48 12 gemwin;
#X msg 25 -31 create \, 1;
#X msg 103 -30 destroy;
#X obj 24 -54 loadbang;
#X obj 229 245 pix_rtx;
#X obj 166 150 pdp_rotate;
#X obj 184 120 pix_2pdp;
#X floatatom 244 96 5 0 0 0 - - -;
#X obj 167 172 pdp2gem;
#X obj 116 153 gemhead;
#X obj 176 96 t a b;
#X msg 151 24 colorspace YUV;
#X obj 149 3 loadbang;
#X obj 235 331 pdp_rotate;
#X obj 253 301 pix_2pdp;
#X obj 236 353 pdp2gem;
#X obj 185 334 gemhead;
#X obj 245 277 t a b;
#X obj 304 202 * -1;
#X msg 231 217 set;
#X obj 246 122 t f b;
#X text 284 96 - change angle of wave of rtx;
#X connect 0 0 1 0;
#X connect 1 0 14 0;
#X connect 2 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 4 0;
#X connect 7 0 5 0;
#X connect 8 0 21 0;
#X connect 9 0 12 0;
#X connect 10 1 9 0;
#X connect 11 0 24 0;
#X connect 12 0 8 0;
#X connect 13 0 12 0;
#X connect 14 0 10 0;
#X connect 14 1 10 0;
#X connect 15 0 1 0;
#X connect 16 0 15 0;
#X connect 17 0 19 0;
#X connect 18 1 17 0;
#X connect 19 0 2 0;
#X connect 20 0 19 0;
#X connect 21 0 18 0;
#X connect 21 1 18 0;
#X connect 22 0 17 1;
#X connect 23 0 8 0;
#X connect 24 0 9 1;
#X connect 24 0 22 0;
#X connect 24 1 23 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


  1   2   >