Re: [PD] Console error: 'Out of memory'

2014-04-21 Thread Jack
Hello,

What is the object you used to load images with Gem ?
Have you tried to reduce the resolution of your images (to fit your
screen) before to load them ?
++

Jack



Le 21/04/2014 17:03, Claire O'Connor a écrit :
 Hi,

 I am currently using GEM to create a slideshow of images and videos.
 However, after a while of loading images, PD stops loading them and
 the console shows up with this error:

 'out of memory!
 Can't allocate memory for an image.'

 And then shows the file path of the image that it tried to load saying
 that the liading of it failed.

 Any ideas as to how to fix this problem?

 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] Console error: 'Out of memory'

2014-04-21 Thread Jack
OK.
For a slideshow, i will use [pix_buffer] or [pix_multiimage]... My
preference is for [pix_buffer].
With [pix_buffer], you also need [pix_buffer_read] to select the image
you want to show (see help about these two objects)
But, I think, it is a good idea to reduce the resolution of your
pictures to fit your [gemwin] resolution...
++

Jack




Le 21/04/2014 18:27, Claire O'Connor a écrit :
 I used pix_image! I haven't tried that, but perhaps that might work. I
 may just end up cutting down on my images.

 It is strange though, because my 'sllideshow' is set to loop and when
 it starts again, the previous images that were already opened, open
 again even though the 'out of memory, can't allocate memory for an
 image' error comes up.

 Thanks, Jack!


 On 21 April 2014 17:06, Jack j...@rybn.org mailto:j...@rybn.org wrote:

 Hello,

 What is the object you used to load images with Gem ?
 Have you tried to reduce the resolution of your images (to fit
 your screen) before to load them ?
 ++

 Jack



 Le 21/04/2014 17:03, Claire O'Connor a écrit :
 Hi,

 I am currently using GEM to create a slideshow of images and
 videos. However, after a while of loading images, PD stops
 loading them and the console shows up with this error:

 'out of memory!
 Can't allocate memory for an image.'

 And then shows the file path of the image that it tried to load
 saying that the liading of it failed.

 Any ideas as to how to fix this problem?

 Thanks!


 ___
 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 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] PD List (GEM VideoSynth)

2014-04-16 Thread Jack
Hello Nick,

Don't forget to reply to all. That could be interresting for other
people on this list.
The document you sent is now a patch (attached).
But what can we do with it ? There is only a single object [video_synth]
on the canvas. It seems to be an abstraction, right ?
You have to send us the patch AND the abstraction.
And where are other objects like [gemwin] ? We are talking about Gem, no ?
++

Jack



06 59 23 94 69 André

Le 16/04/2014 01:23, Nick Arner a écrit :
 Hi Jack, 

 Thanks for the reply! I've attached the PD patch (it looks like the
 attachment went through this time)

 Thanks,
 Nick

 -- 
 nickarner.com http://nickarner.com




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


Re: [PD] Pd-list Digest, Vol 109, Issue 52

2014-04-16 Thread Jack
OK, all is working now. ;)
But i can't help you, i don't know who is the author of this
abstraction, sorry.
++

Jack



Le 16/04/2014 16:05, Nick Arner a écrit :
 Hi Jack, 

 Yes, that was my mistake; I've now attached both the patch and the
 abstraction. 

 Thanks!
 Nick


 On Wed, Apr 16, 2014 at 6:00 AM, pd-list-requ...@iem.at
 mailto:pd-list-requ...@iem.at wrote:

 Send Pd-list mailing list submissions to
 pd-list@iem.at mailto:pd-list@iem.at

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.puredata.info/listinfo/pd-list
 or, via email, send a message with subject or body 'help' to
 pd-list-requ...@iem.at mailto:pd-list-requ...@iem.at

 You can reach the person managing the list at
 pd-list-ow...@iem.at mailto:pd-list-ow...@iem.at

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Pd-list digest...


 Today's Topics:

1. Re: Pd and RME HDSP alsa vs jack performance (Peter P.)
2. Re: PD List (GEM VideoSynth) (Jack)


 --

 Message: 1
 Date: Tue, 15 Apr 2014 18:40:31 -0400
 From: Peter P. p8...@aol.com mailto:p8...@aol.com
 Subject: Re: [PD] Pd and RME HDSP alsa vs jack performance
 To: Federico Galland federicogall...@gmail.com
 mailto:federicogall...@gmail.com
 Cc: pd-list@iem.at mailto:pd-list@iem.at
 Message-ID: 20140415224030.gb8...@aol.de
 mailto:20140415224030.gb8...@aol.de
 Content-Type: text/plain; charset=us-ascii

 * Federico Galland federicogall...@gmail.com
 mailto:federicogall...@gmail.com [2014-04-15 17:46]:
  On Tue, 15 Apr 2014 16:07:03 -0400
  Peter P. p8...@aol.com mailto:p8...@aol.com wrote:
 
   Hi list,
  
   following up onto some earlier postings I had made about the
 current
   problems running Pd with any buffersize larger(!) than 5 using
 alsa,
   the mmap code and an RME HDSP Multiface on Debian Linux, here
 are some
   more results from tests I made recently:
  
   Alsa only works with audiobuf smaller 6, otherwise causing totally
   garbled sound. With that short buffer settings it is unusable for
   everything more CPU intense than sine test tones though.
  
   The only way to get Pd to run reliably under some load on my
 box using
   the HDSP is to use jack with 256 frames at 2 periods/buffer.
  
   Now what is weird is that the built in soundcard of my box is
 able to
   do the same thing without problems with just 64 frames at 3
   periods/buffer in jack.
  
   Again with the HDSP, once I start adding Gem and let it render a
   single geo, I do get many audio dropouts unless I increase jack's
   buffers to a minimum 2048 frames at 2 frames/buffer.
  
   I tested this using two different HDSP cards on two different
 Debian
   boxes, using the -rt flag, realtime and non-realtime kernels,
   optional callbacks and different sleegrain setting.
  
   Somehow it seems very sad that one of the best pro
 multichannel sound
   cards under Linux seems to be unusable with Pd under Alsa
 reliably.
  
   I would like to contribute to any ways of improving this
 situation and
   desperately hope that someone can comment on my findings.
  
   thank you!
   best, Peter
  
   ___
   Pd-list@iem.at mailto:Pd-list@iem.at mailing list
   UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
  I guess you have ruled out everything under this wiki
 http://wiki.linuxaudio.org/wiki/system_configuration ?
 Thank you Federico,
 I looked at the page and most suggesstions is stuff I already
 considered.
 
  Is the HDSP a PCI interface? If so, pay particular attention to
 the pci bus latency part.
 Well it is a ExpressCard interface in my case, and I wonder if that
 qualifies as PCI device. The above pages mentions that PCIe devices
 are not affected by the irq priorities as PCI does.

 best, Peter



 --

 Message: 2
 Date: Wed, 16 Apr 2014 10:55:40 +0200
 From: Jack j...@rybn.org mailto:j...@rybn.org
 Subject: Re: [PD] PD List (GEM VideoSynth)
 To: Nick Arner nicholasar...@gmail.com
 mailto:nicholasar...@gmail.com, pd-list pd-list@iem.at
 mailto:pd-list@iem.at
 Message-ID: 534e458c.6060...@rybn.org
 mailto:534e458c.6060...@rybn.org
 Content-Type: text/plain; charset=utf-8

 Hello Nick,

 Don't forget to reply to all. That could be interresting for other
 people on this list.
 The document you sent is now a patch (attached).
 But what can we do with it ? There is only a single object
 [video_synth

Re: [PD] Sequencing GEM patches

2014-04-15 Thread Jack
Hello,

Here an example.
Give us a patch instead of a PNG image it is more flexible to modify it
in Pd ;)
++

Jack



Le 15/04/2014 15:24, kate sweeney a écrit :
 Hello,

 I have a main window with elevel subpatches which create visual
 graphics in a GEM window. Is there a way in which I can sequence these
 subpatches one after the other? For instance, I would like [pd one] to
 start, and when that finshes, [pd two] starts, etc. Is there something
 I can put in the main window to trigger these sequences? I have
 included a screenshot of my main window.

 All the best.


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



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


Re: [PD] GEM Video Synth Example

2014-04-15 Thread Jack
Le 15/04/2014 18:12, Nick Arner a écrit :
 Hello all, 

 I was going through some PD examples I had downloaded awhile ago and
 found an interesting example of a GEM video synth (that I've attached).

 I'd like to use it as an example in an Intro to PD Workshop I'm going
 to be giving, but can't seem to find where I downloaded it from in
 order to give credit. Anyone know who made it?

 Thanks!
 Nick

 -- 
 nickarner.com http://nickarner.com



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

Hello,

Please, send a Pd patch. I can't open it on my computer.
++

Jack


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


[PD] RE : windows and font

2014-04-10 Thread jack
Hello Philippe,
Do you have an exemple of a patch with your font ? And can you send them to us ?
++

Jack




 Message d'origine 
De : Philippe Boisnard philem...@mac.com 
Date :  
A : pd-lista puredata pd-list@iem.at 
Objet : [PD] windows and font 
 
hello

I have a problem with my patch
my UNICODE font (for exemple CODE2000.ttf) isn't recognized by text3d do you 
know why ? 
I have tested some font, and it s always the same result
I m on windows 8 

I have resolved the python problem with a clean install of python 2.7 and the 
bin pyext

philippe


___
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] Using GEM

2014-04-08 Thread Jack
Le 08/04/2014 16:20, kate sweeney a écrit :
 Hello,

 I am currently doing my final year tech project in University. I am creating 
 a graphic design + music project using GEM in Pure Data. I was wondering, is 
 there a way to trigger certain patches, one after the other? For example, one 
 patch creates moving particles, and the next creates 3d spheres. Is there a 
 way to trigger these one after the other, using a bang etc? 

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

Hello,

If you have you scenes (moving particles, 3d spheres, etc.) in the same
patch. The simplest is to send 0 or 1 to [gemhead] to render a scene.
One [gemhead] per scene.
With this method, you can put each scene in a subpatch ([pd
moving_particles], [pd 3d_spheres], etc.) and have a [receive ...]
arriving on the [gemhead].
Then, somewhere in your main patch, you put a radio button and test the
value return to activate a scene with [send ...].
++

Jack



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


Re: [PD] [OT] Cheap and strong speakers for piano stairs

2014-04-01 Thread Jack
Hello Dominic,

Thanx for your answer.
Do you have an URL to check the model ?
++

Jack


Le 30/03/2014 23:26, Dominic Melville a écrit :
 Their own brand active Thomann pa speakers are actually pretty good.
 Range in size from quite small to large models and last time I looked
 were very cheap. But if your not in Europe shipping would cost you! 

 On Sunday, March 30, 2014, Jack j...@rybn.org mailto:j...@rybn.org
 wrote:

 Hello,

 I would like to use a Raspberry Pi with esi gigaport hd+ to broadcast
 sounds for a piano stairs (8 speakers).
 Do you know a good model of amplified speaker or speaker+PowerAmp for
 this purpose ?
 A cheap suggestion is welcome.
 Best!
 ++

 Jack



 ___
 Pd-list@iem.at javascript:; 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] [OT] Pd to play sounds simultaneously on 8 speakers with cheap computer

2014-03-30 Thread Jack
Le 29/03/2014 15:43, Simon Wise a écrit :
 On 29/03/14 22:56, Jack wrote:
 Hello,

 Is it possible to use BeagleBoard, Raspberry Pi, Udoo or others without
 dropout with this configuration :

 8 IR sensors
 1 BeagleBoard (or Raspberry Pi, or Udoo or others) with Pd and linux
 1 sound cards with 8 output
 8 speakers

 like this : 8 IR sensors -  Beagleboard -  sound card -  8
 speakers (so
 it is possible to play 8 sounds at 44100 Hz 16 bits *simultaneously*).

 If yes, can you tell me which model of sound card works well with these
 cards ?
 Thanx.
 ++

 The esi gigaport hd+ is said to give 8 outs cleanly on an Rpi, search
 the list for reports from several people, but I have not tried it myself.

 With an Rpi you might then use the GPIO for your IR, but if the IR
 stuff is USB then you'd have to test, and may well be out of luck. A
 cheaper sound card and a more expensive computer may be just as
 sensible though.


 Simon

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
Thanx for this info Simon.
I dug a little bit about this sound card and found that :
https://www.mail-archive.com/pd-list@iem.at/msg57554.html
http://puredata.info/docs/raspberry-pi/FrontPage
in french : http://saillant.pierrick.free.fr/?p=30

Other sound cards with 8 outputs ?
++

Jack




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


[PD] [OT] Cheap and strong speakers for piano stairs

2014-03-30 Thread Jack
Hello,

I would like to use a Raspberry Pi with esi gigaport hd+ to broadcast
sounds for a piano stairs (8 speakers).
Do you know a good model of amplified speaker or speaker+PowerAmp for
this purpose ?
A cheap suggestion is welcome.
Best!
++

Jack



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


[PD] [OT] Pd to play sounds simultaneously on 8 speakers with cheap computer

2014-03-29 Thread Jack
Hello,

Is it possible to use BeagleBoard, Raspberry Pi, Udoo or others without
dropout with this configuration :

8 IR sensors
1 BeagleBoard (or Raspberry Pi, or Udoo or others) with Pd and linux
1 sound cards with 8 output
8 speakers

like this : 8 IR sensors - Beagleboard - sound card - 8 speakers (so
it is possible to play 8 sounds at 44100 Hz 16 bits *simultaneously*).

If yes, can you tell me which model of sound card works well with these
cards ?
Thanx.
++

Jack



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


Re: [PD] Gem geometric objects's outlet

2014-03-11 Thread Jack
To apply motion blur from a geo, I use two framebuffers
([gemframebuffer]). It is also possible to use [pix_snap] or
[pix_snap2tex]...
Here a small example attached.
++

Jack



Le 11/03/2014 15:55, Alexandros Drymonitis a écrit :
 If I want to apply, say motion blur to a geometric object that's
 moving inside the [gemwin], is there some way to use the object's
 outlet? In the help patch of each geometric object, it says that the
 outlet outputs the gemlist as many (all?) other gem objects.
 But other objects, e.g. [pix_video], [pix_image] etc., can send their
 gemlist to a geometric object and others, like [pix_motionblur], and
 you can get the desired effect. How would you go about applying some
 effects to the movement of a primitive? Is recursion what I'm looking for?


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



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


Re: [PD] Tcl invalid command with [TuioClient] and Pd-extended 0.43.4

2014-03-11 Thread Jack
Hello,

I need help to understand this problem (see below) and solve it.
It seems to work fine with Pd-Ext 0.42.5 (but not with Pd-Ext 0.43.4).
Thanx.
++

Jack



Le 16/04/2013 12:08, Marco Donnarumma a écrit :
 I can confirm, the GUI doesn't show up at all on my machine too.
 Linux Lucid 10.04 pd-ext 0.43.4



 --
 Marco Donnarumma
 New Media + Sonic Arts Practitioner, Performer, Teacher, Director.
 Embodied Audio-Visual Interaction Research Team.
 Department of Computing, Goldsmiths University of London
 ~
 Portfolio: http://marcodonnarumma.com
 Research: http://res.marcodonnarumma.com
 Director: http://www.liveperformersmeeting.net

 Subject: [PD] Tcl invalid command with [TuioClient] and Pd-extended
 0.43.4
 To: PD List pd-list@iem.at mailto:pd-list@iem.at
 Message-ID: 516c5543.2070...@rybn.org
 mailto:516c5543.2070...@rybn.org
 Content-Type: text/plain; charset=iso-8859-1

 Hello,

 I am working on a patch in which i use [TuioClient] with
 Pd-extended 0.43.4
 When i open this patch, i get in the Pd console :

 Invalid command name 'listening'
 while executing
 listening to TUIO messages on UDP port 
 (uplevel body line 1)
 invoked from within
 uplevel #0 $cmds_from_pd

 Then, very often, there is no GUI and i can't use the patch.
 How I can make this patch work (attached) all the time for an
 installation (with TuioClient.pd_darwin from tuio.org
 http://tuio.org) ?

 My configuration :
 MacMini with MacOSX.7.5
 Pd-extended 0.43.4

 Thanx.
 ++

 Jack



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

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


Re: [PD] Tcl invalid command with [TuioClient] and Pd-extended 0.43.4

2014-03-11 Thread Jack
Thanx for this patch Pierre-Yves. It works fine !
I just give a try with the new [netreceive -u -b ] + [unpackOSC] and
it seems to work fine too.
I know it is not difficult to change [TuioClient] with [netreceive], but
I have a lot of patchs that use [TuioClient], and some people use these
patchs.
So, if i could solve this issue (using only [TuioClient] with Pd-Ext
0.43.4) it would be nice...
++

Jack



Le 11/03/2014 17:47, Py Fave a écrit :
 try tu use netreceive and osc as in joined patch

 i had problems with tuioclient a long time ago on windows




 2014-03-11 17:29 GMT+01:00 Jack j...@rybn.org mailto:j...@rybn.org:

 Hello,

 I need help to understand this problem (see below) and solve it.
 It seems to work fine with Pd-Ext 0.42.5 (but not with Pd-Ext 0.43.4).
 Thanx.
 ++

 Jack



 Le 16/04/2013 12:08, Marco Donnarumma a écrit :
 I can confirm, the GUI doesn't show up at all on my machine too.
 Linux Lucid 10.04 pd-ext 0.43.4



 --
 Marco Donnarumma
 New Media + Sonic Arts Practitioner, Performer, Teacher, Director.
 Embodied Audio-Visual Interaction Research Team.
 Department of Computing, Goldsmiths University of London
 ~
 Portfolio: http://marcodonnarumma.com
 Research: http://res.marcodonnarumma.com
 Director: http://www.liveperformersmeeting.net

 Subject: [PD] Tcl invalid command with [TuioClient] and
 Pd-extended
 0.43.4
 To: PD List pd-list@iem.at mailto:pd-list@iem.at
 Message-ID: 516c5543.2070...@rybn.org
 mailto:516c5543.2070...@rybn.org
 Content-Type: text/plain; charset=iso-8859-1

 Hello,

 I am working on a patch in which i use [TuioClient] with
 Pd-extended 0.43.4
 When i open this patch, i get in the Pd console :

 Invalid command name 'listening'
 while executing
 listening to TUIO messages on UDP port 
 (uplevel body line 1)
 invoked from within
 uplevel #0 $cmds_from_pd

 Then, very often, there is no GUI and i can't use the patch.
 How I can make this patch work (attached) all the time for an
 installation (with TuioClient.pd_darwin from tuio.org
 http://tuio.org) ?

 My configuration :
 MacMini with MacOSX.7.5
 Pd-extended 0.43.4

 Thanx.
 ++

 Jack



 ___
 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 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] Tcl invalid command with [TuioClient] and Pd-extended 0.43.4

2014-03-11 Thread Jack
But, sure, with Pd-Ext 0.43.4, it is a good alternative ! ;)
++

Jack



Le 11/03/2014 18:08, Jack a écrit :
 Thanx for this patch Pierre-Yves. It works fine !
 I just give a try with the new [netreceive -u -b ] + [unpackOSC]
 and it seems to work fine too.
 I know it is not difficult to change [TuioClient] with [netreceive],
 but I have a lot of patchs that use [TuioClient], and some people use
 these patchs.
 So, if i could solve this issue (using only [TuioClient] with Pd-Ext
 0.43.4) it would be nice...
 ++

 Jack



 Le 11/03/2014 17:47, Py Fave a écrit :
 try tu use netreceive and osc as in joined patch

 i had problems with tuioclient a long time ago on windows




 2014-03-11 17:29 GMT+01:00 Jack j...@rybn.org mailto:j...@rybn.org:

 Hello,

 I need help to understand this problem (see below) and solve it.
 It seems to work fine with Pd-Ext 0.42.5 (but not with Pd-Ext
 0.43.4).
 Thanx.
 ++

 Jack



 Le 16/04/2013 12:08, Marco Donnarumma a écrit :
 I can confirm, the GUI doesn't show up at all on my machine too.
 Linux Lucid 10.04 pd-ext 0.43.4



 --
 Marco Donnarumma
 New Media + Sonic Arts Practitioner, Performer, Teacher, Director.
 Embodied Audio-Visual Interaction Research Team.
 Department of Computing, Goldsmiths University of London
 ~
 Portfolio: http://marcodonnarumma.com
 Research: http://res.marcodonnarumma.com
 Director: http://www.liveperformersmeeting.net

 Subject: [PD] Tcl invalid command with [TuioClient] and
 Pd-extended
 0.43.4
 To: PD List pd-list@iem.at mailto:pd-list@iem.at
 Message-ID: 516c5543.2070...@rybn.org
 mailto:516c5543.2070...@rybn.org
 Content-Type: text/plain; charset=iso-8859-1

 Hello,

 I am working on a patch in which i use [TuioClient] with
 Pd-extended 0.43.4
 When i open this patch, i get in the Pd console :

 Invalid command name 'listening'
 while executing
 listening to TUIO messages on UDP port 
 (uplevel body line 1)
 invoked from within
 uplevel #0 $cmds_from_pd

 Then, very often, there is no GUI and i can't use the patch.
 How I can make this patch work (attached) all the time for an
 installation (with TuioClient.pd_darwin from tuio.org
 http://tuio.org) ?

 My configuration :
 MacMini with MacOSX.7.5
 Pd-extended 0.43.4

 Thanx.
 ++

 Jack



 ___
 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 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

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


Re: [PD] Tcl invalid command with [TuioClient] and Pd-extended 0.43.4

2014-03-11 Thread Jack
Hello Jonathan,

Thanx for the explanations. I will dig in this c++ code.
++

Jack



Le 11/03/2014 18:23, Jonathan Wilkes a écrit :
 On 03/11/2014 12:29 PM, Jack wrote:
 Hello,

 I need help to understand this problem (see below) and solve it.
 It seems to work fine with Pd-Ext 0.42.5 (but not with Pd-Ext 0.43.4).

 That leads me to believe it has something to do with the GUI rewrite,
 which happened between 0.42 and 0.43.

 Here's the relevant code-- line 90 in source/TUIO/TuioClient.cpp

 if (socket!=NULL) {
 if (!socket-IsBound()) {
 delete socket;
 socket = NULL;
 } else std::cout  listening to TUIO messages on UDP
 port   port  std::endl;
 }

 ***

 Somehow std::cout must be printing to the console in 0.42 and sending
 to the gui (i.e., tcl) in 0.43.

 If you send a GUI message to tcl it interprets the first word as a
 command.  That's why you get the error below.

 I don't know enough about c++ to give you a fix, but I'm sure someone
 else on the list does.

 Btw the relevant code is here:
 http://sourceforge.net/projects/reactivision/files/TUIO%201.0/TUIO-Clients%201.4/TUIO_PureData-1.4.zip/download?use_mirror=tenetdownload=

 Then unzip the nested source.zip.

 -Jonathan

 Thanx.
 ++

 Jack



 Le 16/04/2013 12:08, Marco Donnarumma a écrit :
 I can confirm, the GUI doesn't show up at all on my machine too.
 Linux Lucid 10.04 pd-ext 0.43.4



 --
 Marco Donnarumma
 New Media + Sonic Arts Practitioner, Performer, Teacher, Director.
 Embodied Audio-Visual Interaction Research Team.
 Department of Computing, Goldsmiths University of London
 ~
 Portfolio: http://marcodonnarumma.com
 Research: http://res.marcodonnarumma.com
 Director: http://www.liveperformersmeeting.net

 Subject: [PD] Tcl invalid command with [TuioClient] and Pd-extended
 0.43.4
 To: PD List pd-list@iem.at mailto:pd-list@iem.at
 Message-ID: 516c5543.2070...@rybn.org
 mailto:516c5543.2070...@rybn.org
 Content-Type: text/plain; charset=iso-8859-1

 Hello,

 I am working on a patch in which i use [TuioClient] with
 Pd-extended 0.43.4
 When i open this patch, i get in the Pd console :

 Invalid command name 'listening'
 while executing
 listening to TUIO messages on UDP port 
 (uplevel body line 1)
 invoked from within
 uplevel #0 $cmds_from_pd

 Then, very often, there is no GUI and i can't use the patch.
 How I can make this patch work (attached) all the time for an
 installation (with TuioClient.pd_darwin from tuio.org
 http://tuio.org) ?

 My configuration :
 MacMini with MacOSX.7.5
 Pd-extended 0.43.4

 Thanx.
 ++

 Jack



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



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



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

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


Re: [PD] pix_buffer loaded event

2014-03-06 Thread Jack
Hello Martin,

It should be quite simple with a [trigger] to get a bang when
[folder_list] and [pix_buffer] have finished their job.
To simplify :

[t b b b]
|   |   |
|   |   [folder_list]
|   |
|   [pix_buffer]
|
final bang

++

Jack



Le 05/03/2014 22:59, Martin Eckart a écrit :
 Hi all,

 I'm loading a series of images into a pix_buffer using folder_list and
 [open( messages.  I would then like to send a bang event once all the
 images are loaded.

 1) Is there a way to find out when pix_buffer has finished loading an
 image?  Maybe pix_buffer_write has something?
 2) Is there a way to know when folder_list has finished outputting all
 the files?

 This seemingly easy problem has me scratching my head.  The best
 workaround I can think of at the moment is to just build in a long
 enough delay before triggering the finished event but that feels like
  a dirty hack.

 Thoughts?

 -martin


 ___
 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_buffer loaded event

2014-03-06 Thread Jack
Here an example...
++

Jack



Le 06/03/2014 11:24, Jack a écrit :
 Hello Martin,

 It should be quite simple with a [trigger] to get a bang when
 [folder_list] and [pix_buffer] have finished their job.
 To simplify :

 [t b b b]
 |   |   |
 |   |   [folder_list]
 |   |
 |   [pix_buffer]
 |
 final bang

 ++

 Jack



 Le 05/03/2014 22:59, Martin Eckart a écrit :
 Hi all,

 I'm loading a series of images into a pix_buffer using folder_list
 and [open( messages.  I would then like to send a bang event once all
 the images are loaded.

 1) Is there a way to find out when pix_buffer has finished loading an
 image?  Maybe pix_buffer_write has something?
 2) Is there a way to know when folder_list has finished outputting
 all the files?

 This seemingly easy problem has me scratching my head.  The best
 workaround I can think of at the moment is to just build in a long
 enough delay before triggering the finished event but that feels like
  a dirty hack.

 Thoughts?

 -martin


 ___
 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



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


Re: [PD] Bugs in Pd-Extended in Ubuntu LTS

2014-03-05 Thread Jack
Did you try with Ubuntu 13.04 ?
With this version, I don't get crash when i create an object or when the
object doesn't exist. I have to admit, i get crash in very rare cases,
so it is not totally fixed yet (but it is better when i was with Ubuntu
12.04).
++

Jack



Le 05/03/2014 21:03, Pierre Massat a écrit :
 Hi,

 Just a quick follow up on this topic. I have just compiled Miller's
 latest version (0.45-4), and the bug that's crashing X is still there.
 This time I managed to reproduce it somehow by creating an empty
 object to make a subpatch and typing pd m (and bang it crashed).
 Same behaviour with the same patch in pd-extended 0.43.4.
 It's super annoying...

 Cheers,

 Pierre.


 2014-02-25 23:16 GMT+01:00 Ivica Bukvic i...@vt.edu mailto:i...@vt.edu:

 Once pd-extended removes unnecessary dependency on pd-utils you
 will. Until then you will need to uninstall one and install the other.

 On Feb 25, 2014 4:54 PM, Pierre Massat pimas...@gmail.com
 mailto:pimas...@gmail.com wrote:

 Hi,
 Katja, I will try to check if this is a problem with pulse
 audio. I also have a jackdbus running even when applications
 supposed to use it are closed (Ardour and Pd in my case).

 Can I install pd-l2ork alongside pd-extended, or do I have to
 uninstall it first ?

 Pierre.


 2014-02-25 22:22 GMT+01:00 Ivica Bukvic i...@vt.edu
 mailto:i...@vt.edu:

 Guys, Can you check if pd-l2ork works OK and please
 report? We provide native Ubuntu builds (built for 12.04).

 On Feb 25, 2014 4:20 PM, katja katjavet...@gmail.com
 mailto:katjavet...@gmail.com wrote:

 Hi Pierre,

 I'm on Xubuntu 12.04 with Pd-extended 0.44 and have
 experienced big
 troubles with Jack too. I only use Jack for complex
 routings like
 Skype to Pd or Kdenlive to Pd via PulseAudio+Jack. I
 got a lot of
 jackdbus-errors initially, and jack wouldn't restart.
 Don't know if
 it's the same issue which you're experiencing. Anyway,
 it seems that
 this was about jackd2 writing config files to
 different places, which
 can be out of sync under certain conditions. Not sure
 if this is a
 correct description but it is my interpretation.
 Looking at running
 processes in command htop, I always noticed a jackdbus
 processing
 still running when the dbus error was given. Killing
 the jackdbus
 process sometimes helped. But in the course of time
 I've somehow
 learned how to avoid it at all, by carefully
 considering the right
 order of operations when starting processes. I have
 PulseAudio
 disabled by default, so I can start Jack first, then
 the Jack clients,
 of which PulseAudio may be one. Then eventually the
 PulseAudio
 clients. When killing processes, everything in reverse
 order. I don't
 like this hocus pocus, but well, I'm happy if it works
 at all. On
 Kubuntu I couldn't get PulseAudio to cooperate with Jack.

 Katja

 On Tue, Feb 25, 2014 at 9:33 PM, Pierre Massat
 pimas...@gmail.com mailto:pimas...@gmail.com wrote:
  I just checked again and to to sum up I have three
 problems :
  - errors with JACK (and instability),
  - X crashes sometimes when typing stuff in an object
 box,
  - and Alsa throwing this error in the console :
 ALSA output error (restart
  failed): Broken pipe (though the sound does work).
 
  Pierre.
 
 
  2014-02-25 21:23 GMT+01:00 Cyrille Henry
 c...@chnry.net mailto:c...@chnry.net:
 
 
 
  Le 25/02/2014 21:03, Roman Haefeli a écrit :
 
  On Die, 2014-02-25 at 19:50 +0100, Pierre Massat
 wrote:
 
 
  I have installed Pd-extended from the Ubuntu
 repos. It seems to be the
  same version as the one available on
 puredata.info http://puredata.info (0.43.4).
 
 
  I am pretty sure there is no package called
 'pd-extended' in the Ubuntu
  repositories. Probably you got it from Hans' ppa

Re: [PD] Bugs in Pd-Extended in Ubuntu LTS

2014-03-05 Thread Jack
Oups, i wanted to say 'Ubuntu 13.10'.
++

Jack


Le 05/03/2014 21:28, Jack a écrit :
 Did you try with Ubuntu 13.04 ?
 With this version, I don't get crash when i create an object or when
 the object doesn't exist. I have to admit, i get crash in very rare
 cases, so it is not totally fixed yet (but it is better when i was
 with Ubuntu 12.04).
 ++

 Jack



 Le 05/03/2014 21:03, Pierre Massat a écrit :
 Hi,

 Just a quick follow up on this topic. I have just compiled Miller's
 latest version (0.45-4), and the bug that's crashing X is still
 there. This time I managed to reproduce it somehow by creating an
 empty object to make a subpatch and typing pd m (and bang it
 crashed). Same behaviour with the same patch in pd-extended 0.43.4.
 It's super annoying...

 Cheers,

 Pierre.


 2014-02-25 23:16 GMT+01:00 Ivica Bukvic i...@vt.edu mailto:i...@vt.edu:

 Once pd-extended removes unnecessary dependency on pd-utils you
 will. Until then you will need to uninstall one and install the
 other.

 On Feb 25, 2014 4:54 PM, Pierre Massat pimas...@gmail.com
 mailto:pimas...@gmail.com wrote:

 Hi,
 Katja, I will try to check if this is a problem with pulse
 audio. I also have a jackdbus running even when applications
 supposed to use it are closed (Ardour and Pd in my case).

 Can I install pd-l2ork alongside pd-extended, or do I have to
 uninstall it first ?

 Pierre.


 2014-02-25 22:22 GMT+01:00 Ivica Bukvic i...@vt.edu
 mailto:i...@vt.edu:

 Guys, Can you check if pd-l2ork works OK and please
 report? We provide native Ubuntu builds (built for 12.04).

 On Feb 25, 2014 4:20 PM, katja katjavet...@gmail.com
 mailto:katjavet...@gmail.com wrote:

 Hi Pierre,

 I'm on Xubuntu 12.04 with Pd-extended 0.44 and have
 experienced big
 troubles with Jack too. I only use Jack for complex
 routings like
 Skype to Pd or Kdenlive to Pd via PulseAudio+Jack. I
 got a lot of
 jackdbus-errors initially, and jack wouldn't restart.
 Don't know if
 it's the same issue which you're experiencing.
 Anyway, it seems that
 this was about jackd2 writing config files to
 different places, which
 can be out of sync under certain conditions. Not sure
 if this is a
 correct description but it is my interpretation.
 Looking at running
 processes in command htop, I always noticed a
 jackdbus processing
 still running when the dbus error was given. Killing
 the jackdbus
 process sometimes helped. But in the course of time
 I've somehow
 learned how to avoid it at all, by carefully
 considering the right
 order of operations when starting processes. I have
 PulseAudio
 disabled by default, so I can start Jack first, then
 the Jack clients,
 of which PulseAudio may be one. Then eventually the
 PulseAudio
 clients. When killing processes, everything in
 reverse order. I don't
 like this hocus pocus, but well, I'm happy if it
 works at all. On
 Kubuntu I couldn't get PulseAudio to cooperate with Jack.

 Katja

 On Tue, Feb 25, 2014 at 9:33 PM, Pierre Massat
 pimas...@gmail.com mailto:pimas...@gmail.com wrote:
  I just checked again and to to sum up I have three
 problems :
  - errors with JACK (and instability),
  - X crashes sometimes when typing stuff in an
 object box,
  - and Alsa throwing this error in the console :
 ALSA output error (restart
  failed): Broken pipe (though the sound does work).
 
  Pierre.
 
 
  2014-02-25 21:23 GMT+01:00 Cyrille Henry
 c...@chnry.net mailto:c...@chnry.net:
 
 
 
  Le 25/02/2014 21:03, Roman Haefeli a écrit :
 
  On Die, 2014-02-25 at 19:50 +0100, Pierre Massat
 wrote:
 
 
  I have installed Pd-extended from the Ubuntu
 repos. It seems to be the
  same version as the one available on
 puredata.info http://puredata.info (0.43.4).
 
 
  I am pretty sure there is no package called

[PD] pd-double and libraries

2014-03-01 Thread Jack
Hello Katja,

I just try pd-double, and I have to say it is very nice to play long
soundfile with [soundfiler] :)
Where can i find list of libraries that use double float that i can use
with pd-double ?
++

Jack



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


[PD] Problems to compile Cyclone

2014-02-28 Thread Jack
Hello,

I tried to compile Cyclone library (in miXed directory from SVN) but get
errors...

In Makefile.common, i changed :
PD_DIR ?= $(ROOT_DIR)/../../pd/src
by
PD_DIR = /home/jack/Téléchargements/pd-0.45-0test2/src

After :
$ cd ~/pure-data/externals/miXed/cyclone
$ make

I get :
gcc -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-fPIC -DUNIX -DHAVE_UNISTD_H -I.
-I/home/jack/Téléchargements/pd-0.45-0test2/src -I../shared -I   -c
-o hammer/accum.o hammer/accum.c
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
0 has invalid symbol index 11
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
1 has invalid symbol index 12
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
2 has invalid symbol index 2
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
3 has invalid symbol index 2
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
4 has invalid symbol index 11
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
5 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
6 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
7 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
8 has invalid symbol index 12
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
9 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
10 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
11 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
12 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
13 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
14 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
15 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
16 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
17 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
18 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
19 has invalid symbol index 21
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation
0 has invalid symbol index 2
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc8PsZh0.o: In function `accum_new':
accum.c:(.text+0x64): undefined reference to `pd_new'
accum.c:(.text+0x7e): undefined reference to `gensym'
accum.c:(.text+0x85): undefined reference to `s_float'
accum.c:(.text+0x96): undefined reference to `inlet_new'
accum.c:(.text+0xa2): undefined reference to `gensym'
accum.c:(.text+0xb3): undefined reference to `inlet_new'
accum.c:(.text+0xbe): undefined reference to `outlet_new'
/tmp/cc8PsZh0.o: In function `accum_setup':
accum.c:(.text+0xdc): undefined reference to `gensym'
accum.c:(.text+0x104): undefined reference to `class_new'
accum.c:(.text+0x11a): undefined reference to `class_addbang'
accum.c:(.text+0x12d): undefined reference to `class_doaddfloat'
accum.c:(.text+0x139): undefined reference to `gensym'
accum.c:(.text+0x159): undefined reference to `class_addmethod'
accum.c:(.text+0x165): undefined reference to `gensym'
accum.c:(.text+0x185): undefined reference to `class_addmethod'
accum.c:(.text+0x191): undefined reference to `gensym'
/tmp/cc8PsZh0.o: In function `accum_bang':
accum.c:(.text+0x3a): undefined reference to `outlet_float'
/tmp/cc8PsZh0.o: In function `accum_float':
accum.c:(.text+0x4a): undefined reference to `outlet_float'
/tmp/cc8PsZh0.o: In function `accum_setup':
accum.c:(.text+0x1b5): undefined reference to `class_addmethod'
collect2: error: ld returned 1 exit status
make: *** [hammer/accum.o] Error 1

Could anyone help me to solve this problem ?

My configuration :
pd-0.45-0test2
Ubuntu 13.10
++

Jack



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


Re: [PD] check mail with pd ?

2014-02-05 Thread Jack
Le 05/02/2014 15:35, Fero Kiraly a écrit :
 is it possibile ?

 thanks.

 fero



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

Just try it with [tcpclient] on Ubuntu and it works fine.
See patch attached.
++

Jack




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


Re: [PD] read first bytes of a file with [binfile]

2014-01-26 Thread Jack
Le 25/01/2014 18:39, Martin Peach a écrit :
 On 2014-01-25 12:03, Jack wrote:
 It looks like that is not possible.
 Would it be doable to add that feature to [binfile] because I need to
 read the first bytes of files  3 Gigabytes ?

 For example a message like

 [read file.ext 200{
 |
 [binfile]

 would read only the first 200 bytes? That should be doable.

 Martin


Should be very nice !
++

Jack



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


[PD] [boids3d] only output position X and Y

2014-01-26 Thread Jack
[boids3d] only output position X and Y.
When I try to open the help patch of [boids3d], I get the [boids2d] one.
And, if i send mesage [flyrect -1 1 -1 1 -1 1( to [boids3d], i get an
error :
boids2d: flyrect needs four values

So [boids3d] is [boids2d].
What can I do to change that ?
Thanx.
++

Jack



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


[PD] read first bytes of a file with [binfile]

2014-01-25 Thread Jack
It looks like that is not possible.
Would it be doable to add that feature to [binfile] because I need to
read the first bytes of files  3 Gigabytes ?
Thanx.
++

Jack



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


[PD] ALSA MIDI problem

2014-01-21 Thread Jack
Hello,

I need your help :)

I try to use my M-Audio Uno MIDI interface with Pd, but it doesn't work.

I tried this three command to be sure that my MIDI interface works.

$ lsusb
...
Bus 001 Device 007: ID 0763:0150 Midiman M-Audio Uno
...

$ dmesg | tail
[  389.178324] usb 1-1.2: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[  389.178328] usb 1-1.2: Product: USB Uno MIDI Interface
[  389.178331] usb 1-1.2: Manufacturer: M-Audio

$ amidi -p hw:1 -S 'F0 43 10 4C 00 00 7E 00 F7'
and i can see the LED MIDI out blinking.

Now with Pd, i tried :
$ pd -nosleep -noaudio -alsamidi -midiindev 0 -midioutdev 0
or
$ pd -nosleep -noaudio -alsamidi -midiindev 1 -midioutdev 1

but after checking the toggle MIDI OUT in media - test Audio and
MIDI, and can't see LED blinking on my interface.
Even after media - ALSA MIDI : In Ports : 1, Out Ports : 1 - Apply
and OK, I get nothing.

I am sure i miss something...
Any help is welcome.
Thanx.
++

Jack



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


Re: [PD] ALSA MIDI problem

2014-01-21 Thread Jack
Ok, I find a solution :

$ aconnect -i
client 0: 'System' [type=noyau]
0 'Timer   '
1 'Announce'
client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
client 20: 'USB Uno MIDI Interface' [type=noyau]
0 'USB Uno MIDI Interface MIDI 1'
client 128: 'Pure Data' [type=utilisateur]
1 'Pure Data Midi-Out 1'

$ aconnect -o
client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
client 20: 'USB Uno MIDI Interface' [type=noyau]
0 'USB Uno MIDI Interface MIDI 1'
client 128: 'Pure Data' [type=utilisateur]
0 'Pure Data Midi-In 1'

then :
$ aconnect 128:1 20:0

Now, how can i keep this configuration each time i reboot my laptop ?
++

Jack



Le 21/01/2014 12:18, Jack a écrit :
 Hello,

 I need your help :)

 I try to use my M-Audio Uno MIDI interface with Pd, but it doesn't work.

 I tried this three command to be sure that my MIDI interface works.

 $ lsusb
 ...
 Bus 001 Device 007: ID 0763:0150 Midiman M-Audio Uno
 ...

 $ dmesg | tail
 [  389.178324] usb 1-1.2: New USB device strings: Mfr=1, Product=2,
 SerialNumber=0
 [  389.178328] usb 1-1.2: Product: USB Uno MIDI Interface
 [  389.178331] usb 1-1.2: Manufacturer: M-Audio

 $ amidi -p hw:1 -S 'F0 43 10 4C 00 00 7E 00 F7'
 and i can see the LED MIDI out blinking.

 Now with Pd, i tried :
 $ pd -nosleep -noaudio -alsamidi -midiindev 0 -midioutdev 0
 or
 $ pd -nosleep -noaudio -alsamidi -midiindev 1 -midioutdev 1

 but after checking the toggle MIDI OUT in media - test Audio and
 MIDI, and can't see LED blinking on my interface.
 Even after media - ALSA MIDI : In Ports : 1, Out Ports : 1 - Apply
 and OK, I get nothing.

 I am sure i miss something...
 Any help is welcome.
 Thanx.
 ++

 Jack



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


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


Re: [PD] ALSA MIDI problem

2014-01-21 Thread Jack
Thanx Dan and IOhannes for your solutions !
I will try them as soon as possible.
++

Jack



Le 21/01/2014 23:09, Dan Wilcox a écrit :
 Oh woops. You want to call that in ~/.bash_login, not ~/bash_profile.

 On Jan 21, 2014, at 3:17 PM, Dan Wilcox danomat...@gmail.com
 mailto:danomat...@gmail.com wrote:

 Here's a portion of a startup script I use:

 

 echo rc_starts_pd: strating pd
 pd -rt -nogui -alsa -audiodev 4 -audiobuf 10 -alsamidi $PATCH 

 # renice pd for much higher priority
 renice -10 $(pidof pd)

 # wait for pd to initialize
 KA=$(aconnect -i -o | grep Pure Data)
 while [ $KA =  ]
 do
 sleep 1
 echo rc_starts_pd: pd alsamidi not ready
 KA=$(aconnect -i -o | grep Pure Data)
 done
 echo rc_starts_pd: pd alsmidi is ready

 # connect the UA-25 midi to Pure Data
 echo rc_starts_pd: alsa midi connect 'UA-25' - 'Pure Data'
 aconnect 'UA-25' 'Pure Data'
 aconnect 'Pure Data':1 'UA-25':0

 # connect the VIEWCON dongle midi to Pure Data
 echo rc_starts_pd: alsa midi connect 'VIEWCON..' - 'Pure Data'
 aconnect 'VIEWCON..' 'Pure Data'
 aconnect 'Pure Data':1 'VIEWCON..':0

 --

 It starts Pd, then waits until the PD midi device is registered with
 ALSA before trying to connect two Midi devices: UA-25  VIEWCON..

 You could run the script from you ~/.bash_profile which would call it
 as soon as the user is logged in. I use this:

 -

 # do nothing if this is a ssh session
 if [ $SSH_CLIENT !=  ] ; then
 exit
 fi

 rc_starts_pd

 -

 It's important to ignore ssh sessions since, if you're like me, and
 you want to login to your (wearable) computer via SSH to check
 something, you don't want to launch a new instance of pd.

 On Jan 21, 2014, at 1:37 PM, pd-list-requ...@iem.at
 mailto:pd-list-requ...@iem.at wrote:

 *From: *Jack j...@rybn.org mailto:j...@rybn.org
 *Subject: **Re: [PD] ALSA MIDI problem*
 *Date: *January 21, 2014 at 8:20:27 AM EST
 *To: *pd-list@iem.at mailto:pd-list@iem.at pd-list@iem.at
 mailto:pd-list@iem.at


 Ok, I find a solution :

 $ aconnect -i
 client 0: 'System' [type=noyau]
0 'Timer   '
1 'Announce'
 client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
 client 20: 'USB Uno MIDI Interface' [type=noyau]
0 'USB Uno MIDI Interface MIDI 1'
 client 128: 'Pure Data' [type=utilisateur]
1 'Pure Data Midi-Out 1'

 $ aconnect -o
 client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
 client 20: 'USB Uno MIDI Interface' [type=noyau]
0 'USB Uno MIDI Interface MIDI 1'
 client 128: 'Pure Data' [type=utilisateur]
0 'Pure Data Midi-In 1'

 then :
 $ aconnect 128:1 20:0

 Now, how can i keep this configuration each time i reboot my laptop ?
 ++

 Jack

 
 Dan Wilcox
 @danomatika
 danomatika.com http://danomatika.com/
 robotcowboy.com http://robotcowboy.com/






 
 Dan Wilcox
 @danomatika
 danomatika.com http://danomatika.com
 robotcowboy.com http://robotcowboy.com






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


Re: [PD] confused about $1 in messages

2014-01-20 Thread Jack
Le 20/01/2014 15:34, ro...@dds.nl a écrit :
 dear list,

 i'm confused about the $1 replacement in messages.

 [one two three(
 |\
 | \
 |  [list split 1]
 |  /
 | /
 |/
 |   /
 |
 [;
 [this $1 $2(

 [r this]
 |
 [print this]

 output:
 this: two three
 this: two three

 why?

 rolf


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

[one two three( is not a list.
[list one two three( is a list.
So what you get is *maybe* the normal behavior ?
But, yep, what did you expect ?
++

Jack



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


Re: [PD] compiling Pd 0.45 on Linux

2014-01-18 Thread Jack
Hello Max,

Did you install libtool ?
++

Jack



Le 18/01/2014 02:09, Max a écrit :
 Hi List,
 I am on Linux Mint 16 Cinnamon 64Bit and i want to compile Pd 0.45. Here
 is my experience:

 pd-0.45-3/
 $ ./autogen.sh
 autoreconf: Entering directory `.'
 autoreconf: configure.ac: not using Gettext
 autoreconf: running: aclocal --force -I m4/generated -I m4
 autoreconf: configure.ac: tracing
 autoreconf: configure.ac: adding subdirectory portaudio to autoreconf
 autoreconf: Entering directory `portaudio'
 autoreconf: configure.in: not using Gettext
 autoreconf: running: aclocal --force
 aclocal: warning: autoconf input should be named 'configure.ac', not
 'configure.in'
 autoreconf: configure.in: tracing
 autoreconf: configure.in: subdirectory bindings/cpp not present
 autoreconf: configure.in: not using Libtool
 autoreconf: running: /usr/bin/autoconf --force
 configure.in:104: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
   If this token and others are legitimate, please use m4_pattern_allow.
   See the Autoconf documentation.
 configure.in:105: error: possibly undefined macro: AC_PROG_LIBTOOL
 autoreconf: /usr/bin/autoconf failed with exit status: 1

 however as suggested in INSTALL.TXT the fallback method works with
 make -f makefile.gnu
 sudo make -f makefile.gnu install
 (once the dependency libasound2-dev is installed)

 yet when I run Pd, I get no sound
 ./pd
 oops: ALSA cards not reported in order?
 oops: ALSA cards not reported in order?
 oops: ALSA cards not reported in order?
 oops: ALSA cards not reported in order?
 oops: ALSA cards not reported in order?
 oops: ALSA cards not reported in order?

 The Pd package from the repositories has the same issue:
 ALSA input error (snd_pcm_open): No such file or directory
 ALSA output error (snd_pcm_open): No such file or directory
 ALSA input error (snd_pcm_open): No such file or directory
 ALSA output error (snd_pcm_open): No such file or directory

 Seems I have a problem with ALSA.
 Anyone has a clue where to start looking for this issue?

 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] [list prepend] without a space

2014-01-17 Thread Jack
Hello Jong,

See patch attached, it could help you...
++

Jack



Le 16/01/2014 12:06, Jonghyun Kim a écrit :
 Hi list,

 For OSC communication, I wonder to know how to do it.

 My original list(not exactly list but I say so) is:
 *test 1 2 3*

 Prepend symbols are: (prepend twice or more)
 */abc*
 */def*

 I want to do it
 

 [test 1 2 3(
 |
 [t a b]
 |   \
 |[symbol */abc*]
 | \
 [list prepend]
 |
 [t a b]
 |   \
 |[symbol */def*]
 | \
 [list prepend]
 |
 [print]

 
 The result is:

 */def/abctest123*

 But, I want to remove the space within */def* and */abc*

 I want to do without the space.

 
 */def/abctest123*
 

 how to do it?

 I tried with [$2$1] as list prepend, but the symbol in the text, it
 failed.

 Pleas help!

 Thanks,
 Jong


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



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


[PD] pmpd3d and iPlane

2014-01-06 Thread Jack
Hello,

I don't understand the interactor behavior of iPlane with a mass.

When i create :
[iPlane mob 0 -1 0 0 4 0 1 1 0 1]
i expect to create a plane at (0, 4, 0) with a normal vector (0, -1, 0)
which interact with masses mob.
Is it true ?

If it is true, when i send a force (0, 0.1, 0) to a [mass mob 1 10 0 0 0(
i expect an interaction with the plane when the position Y of the mass
mob is (around) 4.0.
Is it still true ?

If not, what are the good arguments for [iPlane] to get an interaction
with the mass at (0, 4, 0) ?

Patch is attached.
Thanx.
++

Jack




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


Re: [PD] pmpd3d and iPlane

2014-01-06 Thread Jack
OK, thanx for the clarification.
Now, it is working fine !
++

Jack



Le 06/01/2014 20:45, Cyrille Henry a écrit :
 using interactor messages with pmpd* objects is like using interactors
 objects with mass.
 i.e : it did not create a fixed interaction like the link message
 do. it create a one time only interaction.
 so you just have to bang it at every iteration with the gemhead.

 cheers
 c


 Le 06/01/2014 20:11, Jack a écrit :
 Hello,

 I don't understand the interactor behavior of iPlane with a mass.

 When i create :
 [iPlane mob 0 -1 0 0 4 0 1 1 0 1]
 i expect to create a plane at (0, 4, 0) with a normal vector (0, -1, 0)
 which interact with masses mob.
 Is it true ?

 If it is true, when i send a force (0, 0.1, 0) to a [mass mob 1 10 0
 0 0(
 i expect an interaction with the plane when the position Y of the mass
 mob is (around) 4.0.
 Is it still true ?

 If not, what are the good arguments for [iPlane] to get an interaction
 with the mass at (0, 4, 0) ?

 Patch is attached.
 Thanx.
 ++

 Jack




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


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


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


Re: [PD] Creating random filenames

2013-12-29 Thread Jack
Le 29/12/2013 13:17, Ronni Montoya a écrit :
 Hi, how can i create random file names in pd?

 I need to have a recording button in my patch that everytimes records
 an audio file in a different ( random ) file name.

 For example, each time i record something it should create random .wav
 file names:

 kasdsd.wav
 lifasik.wav
 kjaskld.wav   etc


 any idea how to achieve this?

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

A solution without external...
++

Jack




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


Re: [PD] GEM causes soung glitches

2013-12-26 Thread Jack
Le 26/12/2013 17:16, D G a écrit :
 Hello List
 Im using GEM in 0.43.4 extended in ubuntu 12.04

 Every time I open GEM window, the audio stream becomes glitchy. When I
 close it it goes away.

 I guess it might be a configuration tweak of the video card, but can't
 make it work. Does anyone have a clue or point out a good source of
 detailed info to overcome this?

 Thanks for your help!

 Daniel


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

If you have a multicore CPU :
- You can use 2 instances of Pd : one for the sound, the other for the
visual. Then you can use netsend/netreceive to send data between 2
instances.
- Another possibility : use [pd~]. See help about this object.
++

Jack


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


Re: [PD] [PD-announce] pd-aubio 0.3

2013-12-24 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 24/12/2013 09:44, IOhannes m zmölnig a écrit :
 On 2013-12-23 21:12, Jack wrote:

 So it seems that it is possible to build pd-aubio without installing
aubio.


 it seems so.
 but in order to do so, you probably have to install aubio first to
 some non-standard location (e.g. somewhere in tmp), and then point
 PKG_CONFIG_PATH to this location. you probably have to use *absolute*
 paths whe ndoing so.

 finally, the resulting binary (aubio.pd_linux) most probably will link
 to libaubio.so; make sure that it can find the library (LD_LIBRARY_PATH).

 fgamrds
 IOhannes



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

I ended up by installing aubio 'conventionally' :
$ sudo ./waf install
And it is OK now to compile aubio.pd_linux.
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSuXR/AAoJEOuluecjw8GULfoH/RC34egT8AHlyRZ+WVcR5XLy
y5ff3EZuqcsLL7lHVTAZZICuza1L3Ks/+qup9IoLIPm3m8hRiGHj5KlOc3f+roOW
khDZ7ogrxNbZ5qp/4eliXjpsU8Xe+ZViL9RGKt2jxic4FIZ8dlKMnPKGp/3VdF42
5WYqKhCd1+9cZdknsiQyGkGpZTpHuR9oEpveb9zpEHtAnisIXcKD0kDa26Erq3RZ
6xod9QcA8g+iQSJywrat43a0GBSZOBzw0WgnVmmfW/qnP+FzSyhBmyq6JX1PxMcO
1TUm/jQQ++/OFO4rgt26qqjlBggTATZAtl7PZR+Zs+t6tgqVj9IgPqQJl6zTi50=
=RXXK
-END PGP SIGNATURE-

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


Re: [PD] [PD-announce] pd-aubio 0.3

2013-12-23 Thread Jack
Hello Paul,

I tried to build pd-aubio but it failed.

I first build aubio 0.4.0 with :
$ ./waf --disable-avcodec configure
(because i get an error with libavcodec)

then :
$ ./waf build
(but don't want to install it)

and get :
Waf: Leaving directory `/home/jack/Téléchargements/aubio-0.4.0/build'
'build' finished successfully (1.409s)

After :
PKG_CONFIG_PATH=~/Téléchargements/aubio-0.4.0/build ./waf distclean
configure build --prefix=~/Téléchargements/aubio-0.4.0/src/

I get :

'distclean' finished successfully (0.000s)
Setting top to   : /home/jack/pd-aubio
Setting out to   : /home/jack/pd-aubio/build
Checking for 'gcc' (c compiler)  : /usr/bin/gcc
Checking for header m_pd.h   : yes
Checking for program pkg-config  : /usr/bin/pkg-config
Checking for 'aubio' = 0.4.0: yes
'configure' finished successfully (0.108s)
Waf: Entering directory `/home/jack/pd-aubio/build'
[1/8] c: src/aubio_setup.c - build/src/aubio_setup.c.1.o
[2/8] c: src/aubioonset~.c - build/src/aubioonset~.c.1.o
[3/8] c: src/aubiopitch~.c - build/src/aubiopitch~.c.1.o
[4/8] c: src/aubioquiet~.c - build/src/aubioquiet~.c.1.o
[5/8] c: src/aubiotempo~.c - build/src/aubiotempo~.c.1.o
[6/8] c: src/aubiotss~.c - build/src/aubiotss~.c.1.o
[7/8] c: src/aubiozcr~.c - build/src/aubiozcr~.c.1.o
../src/aubiopitch~.c:11:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
../src/aubiotempo~.c:11:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
../src/aubioquiet~.c:11:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
../src/aubiotss~.c:12:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
../src/aubioonset~.c:11:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
../src/aubiozcr~.c:12:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
 #include aubio/aubio.h
 ^
compilation terminated.
Waf: Leaving directory `/home/jack/pd-aubio/build'
Build failed
 - task in 'aubio' failed (exit status 1):
{task 33467408: c aubiopitch~.c - aubiopitch~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubiopitch~.c', '-c', '-o', 'src/aubiopitch~.c.1.o']
 - task in 'aubio' failed (exit status 1):
{task 33467920: c aubiotempo~.c - aubiotempo~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubiotempo~.c', '-c', '-o', 'src/aubiotempo~.c.1.o']
 - task in 'aubio' failed (exit status 1):
{task 33467792: c aubioquiet~.c - aubioquiet~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubioquiet~.c', '-c', '-o', 'src/aubioquiet~.c.1.o']
 - task in 'aubio' failed (exit status 1):
{task 33468048: c aubiotss~.c - aubiotss~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubiotss~.c', '-c', '-o', 'src/aubiotss~.c.1.o']
 - task in 'aubio' failed (exit status 1):
{task 33467536: c aubioonset~.c - aubioonset~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubioonset~.c', '-c', '-o', 'src/aubioonset~.c.1.o']
 - task in 'aubio' failed (exit status 1):
{task 33468176: c aubiozcr~.c - aubiozcr~.c.1.o}
['/usr/bin/gcc', '-fPIC', '-I/usr/local/include', '-DHAVE_M_PD_H=1',
'-DHAVE_AUBIO=1', '-DPD', '-DPACKAGE_VERSION=\'0.3\'',
'../src/aubiozcr~.c', '-c', '-o', 'src/aubiozcr~.c.1.o']

What can i do to solve this problem ?
Thanx.
++

Jack



Le 20/12/2013 14:38, Paul Brossier a écrit :
 Hi all!

 As some of you have noticed, a new version of aubio has been released a
 few days ago.

 aubio is a library of functions to analyze music signals, providing note
 onset detection, pitch detection, and beat tracking, amongst others.

 The previous release of aubio included the pd-aubio external, which now
 has its own package.

 Source tarball, signature and digest:
   http://aubio.org/pub/pd-aubio/pd-aubio-0.3.tar.bz2
   http://aubio.org/pub/pd-aubio/pd-aubio-0.3.tar.bz2.asc
   http://aubio.org/pub/pd-aubio/pd-aubio-0.3.tar.bz2.md5
   http://aubio.org/pub/pd-aubio/pd-aubio-0.3.tar.bz2.sha1

 Git repository:
   git://git.aubio.org/git/pd-aubio/
   http://git.aubio.org/?p=pd-aubio.git;a=summary

 Mirror on github:
   https://github.com/piem/pd-aubio

 To find

Re: [PD] [PD-announce] pd-aubio 0.3

2013-12-23 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 23/12/2013 20:25, IOhannes m zmölnig a écrit :
 On 2013-12-23 16:35, Jack wrote:
 Hello Paul,

 I tried to build pd-aubio but it failed.

 wild guess: since aubio and pd-aubio are now separate packages, i guess
 that you have to have aubio [1] installed prior to building pd-aubio.


 fgmdar
 IOhannes

 [1] http://aubio.org/download



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

Hello IOhannes,

I didn't install aubio (with ./waf install) but just build it (with
./waf build) because i don't want to install it. So all is in
/home/jack/Téléchargements/aubio-0.4.0/

Is there a possibility to build pd-aubio to avoid this error :
../src/aubiopitch~.c:11:25: fatal error: aubio/aubio.h: Aucun fichier ou
dossier de ce type
Or i am forced to install aubio with :
$ ./waf build

In the README of pd-aubio you can read :
If you have aubio installed in an unusual location, just set your
PKG_CONFIG_PATH accordingly. For instance, to build against aubio
installed in
/var/tmp/aubio:

$ PKG_CONFIG_PATH=/var/tmp/aubio/lib/pkgconfig waf \
distclean configure build install --prefix=/var/tmp/aubio

So it seems that it is possible to build pd-aubio without installing aubio.
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSuJk/AAoJEOuluecjw8GUvhcH/3VBDhZ4Swmq9kyGFJ6P2dTV
7Pp8KY9mw6+2WRaQLqE/rbSxI+vp8tBVeHmjDu/IRhzwgzRGiimPLzT968xK5mem
tn6Gkdssmm2wAx6ANYAeLVSPN9MG716Awhg18WUt1yOa4Q0jSRl6E9CmCDENOTOE
jIlm4dqK1S6EUrRtWbCgg4z8kVNJwMrLWh1J4CBf3RspKhP/w4KEpIPXXjNkCHYh
wVbW/tWBiYJPkVf92QWHAEOJ0WP02A411100vpitpl1xTZTAVOWJi/yqd4LWdz0c
r1RxZEb4jTNzxFraH/6clfqCa5IuxCRC+8qBzM+0fdobFJOgj3GROieYEgLZD2E=
=T9gU
-END PGP SIGNATURE-

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


Re: [PD] xinput external

2013-12-19 Thread Jack
Le 19/12/2013 07:53, pured...@11h11.com a écrit :
 hi,

 i am using a modified version of xinput (adding ;, leading 0 and
 unbuffered) with pdsend (udp). i can now get my tablet
 x,y,pressure,tilt in pd. a demo patch is included (showing a way to
 parse xinput test data).

 https://github.com/patricksebastien/xinputpdsend

 the only problem is that i am using [shell] to execute the xinput |
 pdsend and when quitting pd it hangs until killall xinput.

 not very elegant, but working for me.

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

Hello,

It should be possible to make a bash script where you would start xinput
and pd in background and get their PID.
Then use a loop to check if pd is still alive (with its PID), if not,
you kill xinput.
++

Jack



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


Re: [PD] xinput external

2013-12-19 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 19/12/2013 12:04, IOhannes m zmölnig a écrit :
 On 2013-12-19 11:32, IOhannes m zmoelnig wrote:
 as for adding ; and leading 0; you might want to use `sed`.

 or use a script like the attached one (on Debian, 'unbuffer' can be
 found in the 'expect-dev' package)

 usage: ./xinput.sh id udp-port

 as for the problem of terminating a process in [shell], i usually start
 external senders outside of Pd:

 script
  #!/bin/sh
  ./xinput.sh 12 9998 
  XINPUT_PID=$1
  pd -open mypatch.pd
  kill -QUIT ${XINPUT_PID}
 script

 gfmadsr
 IOhannes


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

Ya, better and simpler than to check if pd is still alive : keep pd in
foregroud ;)
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSstR+AAoJEOuluecjw8GU2nwH/0DX6wmQXYVbU+OCERFJAclQ
wJ3Dv8/OaR5PRcLaklhS7gdZ7K7t+QXM8ddmHkPbFCtp1TFnxqrHPkcsEq9usN8y
SxpDW61l0UyVZrWLvlB2lk1Xdrb35BgL8BaHfeOq7UO1zOR1JllShThaGyCa2Hd2
Mwr8OmoxxMwHhn/ZmLfAUa735X596Z7AMLrTGX5J58TUBA2lD9hbuqykhudKxYXH
CP1+BOTP8dB30uriTdLfUXO7h5LW+Z+xxtvgDe0BeOE0Ad98qwxgZ7QLU4/JEW+V
9mcfUASfZC1CNhS1a+zQ0y6Vg3f4ajcIsAL9ofza2NPifGlLI8bZq5Xnql+K8tE=
=FVhO
-END PGP SIGNATURE-

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


Re: [PD] OSX Gmerlin support in GEM

2013-12-04 Thread Jack
Le 04/12/2013 18:16, Martin Eckart a écrit :
 Hi all,

 I made a GEM patch in linux that ran well and now I'm trying to get it
 to work on an OSX machine but the video playback is incredibly
 slow/CPU intensive.  Is there a way I could get gmerlin into
 pd(extended) GEM in osx?

 Scanning the pd-list I see references to complicated/messy set ups but
 I can't find any reasonable instructions or plan of attack.

 Please point me in the right direction  if you can.

 Cheers,
 -martin


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

The change of the codec is not an option ?
++

Jack


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


Re: [PD] Multiplying 2 variables

2013-11-28 Thread Jack
Le 28/11/2013 10:21, sebaroc...@gmail.com a écrit :





 Hi everybody, im sorry for this simple question but i guess i'm not
 handling it well. 
 I know that the multiplying object stores two values (left inlet and
 right inlet)  and performs the operation when both are stored or when
 a bang is sent to the left inlet. I did this mechanism (attached
 image) in order to multiply this two inputs every time one of them
 changes, but i am observing that the result isn't always the same. 

 So, i think that im doing something wrong, could you help me?

 Thanks you!

 Sebastián



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

Can't see something wrong in your patch.
It is possible to add [t f f] after the left number box to 'clearly' see
the order after this box. But it is not necessary here.
++

Jack


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


[PD] Can't create boids objects

2013-11-11 Thread Jack
Hello,

After a 'make' I get boids2d.pd_linux and boids3d.pd_linux but can't
create objects under Pd.
When I try to create an object, i get in pd console :

./boids2d.pd_linux: ./boids2d.pd_linux: wrong ELF class: ELFCLASS32
boids2d: can't load library
./boids3d.pd_linux: ./boids3d.pd_linux: wrong ELF class: ELFCLASS32
boids3d: can't load library

What can I do/change to use these objects under Pd ?

Here my configuration :
Pd 0.45.0test 2
Last boids sources from
svn://svn.code.sf.net/p/pure-data/svn/trunk/externals/boids

Thanx for help.
++

Jack



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


Re: [PD] Can't create boids objects

2013-11-11 Thread Jack
Le 11/11/2013 16:00, Jack a écrit :
 Hello,

 After a 'make' I get boids2d.pd_linux and boids3d.pd_linux but can't
 create objects under Pd.
 When I try to create an object, i get in pd console :

 ./boids2d.pd_linux: ./boids2d.pd_linux: wrong ELF class: ELFCLASS32
 boids2d: can't load library
 ./boids3d.pd_linux: ./boids3d.pd_linux: wrong ELF class: ELFCLASS32
 boids3d: can't load library

 What can I do/change to use these objects under Pd ?

 Here my configuration :
 Pd 0.45.0test 2
 Last boids sources from
 svn://svn.code.sf.net/p/pure-data/svn/trunk/externals/boids

 Thanx for help.
 ++

 Jack



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

Sorry for the noise, I didn't see that i have the both boids2d.pd_linux
and boids3d.pd_linux (old ones) in the folder where there is my patch.
I removed them and it is working fine now.
++

Jack



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


[PD] audio output AND input with the Rpi?

2013-10-28 Thread Chris Jack
Hey folks,

Apologies as this post is not strictly about Pd, though Pd will be a
crucial part of my final setup so whatever solution I find ought to work
with Pd. Also, there is a chance the issue might lie with Pd. I just don't
know.

I'm looking for a usb bus-powered audio interface for the Rpi that can take
a stereo input and provide stereo output *at the same time.*
* *
I have tried a couple different images and a couple different audio
interfaces, to no avail. Perhaps there's something can be done with one of
these setups to get it working?

First, the Pd-LA custom Raspian (v1) image and Pd 43.2:

..with Behringer UCA202 (at 44100khz):

Alsamixer picks the device up but the input section shows nothing.

Pd (gui) audio preferences allows selection of the interface for both input
and output. Output only is lovely and clean but as soon as the device is
selected for audio input the audio quality drops horrendously (vaguely
recognisable from the original signal)..
..although what gives me hope is I CAN software monitor the input (poorly)
in 'Test Audio and MIDI' with this arrangement.

..with Behringer UCA202 (at 48000khz):

Output only in Pd is poor (beating and popping sound - possibly sounds like
a samp rate conversion issue).
When device is selected as Pd input software monitoring is possible and
oddly, though the result is still poor, there is effectively no drop in
quality from having the device selected only for output and the monitored
signal sounds drastically better than at 44100khz.


..with Turtle Beach Amigo II* (at 44100):

Alsamixer shows both input and output and allows to change gain of both.
If plugged in from boot and only the output is selected in Pd it works but
with a lot of jitter. Selecting the device for input too causes a further
drop in audio quality although again I can software monitor the input in
'Test Audio and MIDI'
If plugged in after boot the OS crashes.


The Satellite CCRMA (operating via ssh) and Pd-extended:

..with Behringer UCA202 (at 44100 and 48000):

Alsamixer picks the device up but again the input section shows nothing.

If I have the device plugged in from boot then I get the same behaviour
with it as I do in Pd vanilla on the Pd-LA Raspian image, ie. software
input monitoring but at an extremely poor quality.

If I don't plug the device in from boot I see it in Pd audio prefs but get
this:

ALSA input error (snd_pcm_open): No such file or directory

ALSA output error (snd_pcm_open): No such file or directory

from the Pd terminal and this

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
oops: ALSA cards not reported in order?

from the ssh terminal.


..with Turtle Beach Amigo II* (at 44100khz):

Alsamixer shows both input and output and allows to change gain of both.

If plugged in from boot and then only output selected in Pd I get clean
audio out. If I try to select the Turtle Beach as audio inout in Pd then Pd
stalls indefinitely when I try to 'Test Audio and MIDI' or make anything in
a patch.

Same direct input monitoring by default.

Also get

ALSA input error (snd_pcm_open): Device or resource busy

ALSA output error (snd_pcm_open): Device or resource busy

from the Pd terminal if I don't have it plugged in from boot, though no
message in ssh terminal.

*It also appears that by default the Turtle Beach does direct input
monitoring of some sorts, the output stage sending out a clean copy of
whatever signal is going into the input stage whenever the device is
plugged into a usb port. With the Pd-LA image this occurred simultaneously
while input monitoring in Pd. I guess this is part of the design of the
Turtle Beach, though their documentation is devoid of any useful info
regards this. If this is the case then this ain't the sound card for me,
though clearly some might find this a very useful feature.

Just to give a bit more info about what I'm attempting: I wish to run the
stereo input from the Turtle Beach through Pd, play with the audio signal
using data from an accelerometer (not nearly there yet) and then send the
audio out through the Turtle Beach's stereo output.

Apologies for the essay. Hopefully my findings are useful for others and
hopefully I can get my rig working! Help muchly appreciated. I've probably
left out some crucial bit of info so please shout me if I have!

Cheers,
Chris Jack.

Chris Jack

*art/research*
http://itsmrjack.com/

*discus jockeying/sound art*
http://soundcloud.com/itsmrjack/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] RE : Re: need help with gem and glsl feedback

2013-10-09 Thread Jack
Le 06/10/2013 22:13, Py Fave a écrit :
 Hello , i just opened your last patch and am looking at it .
 weanwhile i reply to your points

 2013/10/6 Jack j...@rybn.org:
 Hello,

 Le 05/10/2013 22:51, Py Fave a écrit :

 in fact my problem is not solved .
 it seems like the feedback effect  happens everywhere but on the
 surface drawn by the shader .

 According to the patch, the feedback is applied on a [square 4] (where there
 is also the [torus 2]).
 Then, [gemframebuffer] 'snap' the whole 'inside' [square 4]. And your torus
 is inside this snapshot (as texels and not vertices).

 yes ,and then there is  some feedback on the texels of the square .
 but in my patch if i rotate the torus i get some feedback but not on the
 shaded part (only the silhouette of the torus .  i don't know why .
 i would like everything to go in the feedback loop .

 in fact i try to have trails that show geodesics on a surface
 later i plan to replace my torus with other models .



 i use a torus , in perspective wich has a shader applied .

 i tried the following workaround(archive is joined ) , but still no luck .
 the file to open has a OPEN in name .

 It seems there is no circle4.geom, [receive13] and [nshader0]
 objects/abstractions in your .zip.
 sorry i forgot  .

 receive13 only is missing .
 it's part of ext13 library (and is in pd-extended iirc)
 http://puredata.info/downloads/ext13

 [receive13 nothing ]could  be replaced by receive nShader1
 or all the shader abstraction can be replaced by the classical shader network
 with fragment shader = circle4.frag  and vertex shader = circle4.vert.
 no .geom was used


 i would like the dots to have the feedback ,
 or dots + geometry alltogether.

 I can't see dot in your patch (or gem window), maybe they come from geometry
 shader (which is missing) ?

 i didn't use geometry shader . just  fragment .
 glsl program complains in the abstraction  but no harm here i think

 i tried pix_snap2tex ( using gems.feedback from pdmtl abstractions) too
 but no luck because we can't choose the mixing function .
 and i would like only white to make trails .
 and i don't know how to keep the supporting geometry from appearing .
 the torus should be full black with a white trail only .

 A simple possibility is to use 2 torus, a black 'on' a white. And use the
 white for the trail ?

 An other way :

 white torus as texture
 |__ in the feedback __ output feedback as texture
 |__ convert white in black texel __ output black torus as texture

 Then mix (multiply) black torus with white feedback to get a black torus
 with white trails.
 ++

 Jack

 i'll send a modified patch a bit later .

 Thank you so much i see some good things from the last patch you sent .

 it is not what i want to do but opens other directions
 and perhaps i was focusing on one method but there seems to be alternatives .

 i'll update this thread tomorrow .
 i have to keep some life away from computer :-)

 Thanks for your help

 Py

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

Hello Pierre-Yves,

This patch should work for your purpose.
If it doesn't work, you have, maybe, a problem with your configuration.
++

Jack


// Cyrille Henry 2007

void main()
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;

}

uniform float time, alpha_back;
uniform vec2 mouse;
uniform vec2 resolution;

uniform sampler2D backbuffer;

#define PI2 6.2831853070


// definition for a scale, rotate, and color transform
// color transform is multiply (darken) only
struct Transform {
vec4 color;
vec2 center;
float scale;
float rotation;
};

vec2 applyTransform(const Transform t, vec2 v) {
v -= t.center;
float c = cos(t.rotation);
float s = sin(t.rotation);
return (vec2(
(v.x*c - v.y*s),
(v.y*c + v.x*s)) * t.scale + t.center);
}

#define SCALE 5.0

// model will be scaled such that the rectangle (-SCALE/2, -SCALE/2), (SCALE/2, 
SCALE/2)
// will be centered and fit the window with square aspect ratio.
float scale = SCALE / min(resolution.y,resolution.x);

vec2 mapModelToTexture(const vec2 v) {
return (v/(resolution*scale) + 0.5);
}

vec2 mapTextureToModel(const vec2 v) {
return (v - 0.5 * resolution) * scale;
}

// apply transform, return backbuffer sample
vec4 getBackbufferTransform(const Transform t, vec2 v) {
return t.color * 
texture2D(backbuffer, 
   mapModelToTexture(applyTransform(t, v)));
}

vec4 whiten(const vec4 color, float f) {
return (1.-f)*color + vec4(f);
}

void main( void ) {
// transform fragment coords to model coords
vec2 v = mapTextureToModel(gl_FragCoord.xy);

// draw orbs

const float innerRadius = 0.01;
float outerRadius = .24 + .03 * (sin(17.*time

Re: [PD] Direct-from-disk audio with position, loop, varispeed

2013-10-09 Thread Jack
Hello,


Le 09/10/2013 18:20, Mario Mey a écrit :
 Sorry, guys, for entering in this thread without reading all the
 mails. But I want to ask you something.

 I use readsf~ to read a speaking recorded files, sounds and songs
 (some songs are 3 or 5 minutes long, but there's one of 20, so, I
 thought readsf~ was better that put the files into arrays).

 Readsf~ gives no information about the time, and it would be very
 usefull for me to synch with an animation in BlenderGameEngine.

If you want to get the length of a sound file, you have several
possibilities :
- use [wavinfo] from ext13
- use [soundfile_info] from iemlib
- use [shell] with your favorite command line to get info on soundfile
++

Jack



 Also, yet, I don't know if readsf~ is the one that makes noises when
 BlenderPlayer is rendering in 3D in full screen. I just thought that
 the computer can't process that 3D rendering and has Jack with low
 latency. Maybe readsf~ is the problem...

 Anyway, I wanted to ask you about readsf~:

 Is readsf~ stable?
 Does it consume so much CPU?
 Is there any other object better to use? Maybe the one you are talking
 about in this thread...

 I don't need to varispeed, for example. Just read files, play and know
 its position in time. And low CPU consumption.

 Thanks.

 PD1: I'm on Ubuntu 12.04.
 PD2: what about THREADLIB and SNDFILER to open files in a different
 thread? Do they work? http://grh.mur.at/software/threadlib.html and
 http://grh.mur.at/software/sndfiler.html.

 ___
 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] iem_tab can't create object

2013-10-07 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 06/10/2013 19:42, IOhannes m zmölnig a écrit :
 On 10/06/13 18:37, Jack wrote:
 Hello,

 I have a problem to use iem_tab library (tab_copy). I know about array
 get/set but my old patch use tab_copy.
 iem_tab compile fine.

 When i open externals/iem/iem_tab/tab_copy-help.pd, i get in pd console :
  tab_copy src dst
 ... couldn't create
  tab_copy src dst
 ... couldn't create

 In my directory externals/iem/iem_tab/, i have iem_tab.pd_linux

 you have to load the iem_tab library first. e.g. by creating
 [iem/iem_tab/iem_tab] or adding it to the startup libs.

 obviously, the help-patches assume that the library is already loaded,
 so they don't bother with loading it.


 fg,sdr
 IOhannes



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

I still get pd crash, even with iem_tab load first :
$ cat .pdsettings
...
loadlib1: iem_tab
loadlib2: Gem
loadlib3: pdstring
loadlib4: zexy
loadlib5: tcpserver
loadlib6: tcpclient
loadlib7: pdlua
loadlib8: boids3d
loadlib9: boids2d
loadlib10: pdgst
loadlib11: pix_gst2pix
nloadlib: 11


Here the output with valgrind (with gdb bellow) :
$ valgrind pd
==5401== Memcheck, a memory error detector
==5401== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==5401== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==5401== Command: pd
==5401==
==5401== Invalid read of size 1
==5401==at 0x5D19040: vfprintf (vfprintf.c:1655)
==5401==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
==5401==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
==5401==by 0x4ECC86: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==  Address 0x69bec08 is 40 bytes inside a block of size 376 free'd
==5401==at 0x4C2BA6C: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5401==by 0x4ECC67: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==
==5401== Invalid read of size 1
==5401==at 0x5D48AB0: _IO_default_xsputn (genops.c:476)
==5401==by 0x5D18FFE: vfprintf (vfprintf.c:1655)
==5401==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
==5401==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
==5401==by 0x4ECC86: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==  Address 0x69bec08 is 40 bytes inside a block of size 376 free'd
==5401==at 0x4C2BA6C: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5401==by 0x4ECC67: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==
==5401== Invalid read of size 1
==5401==at 0x5D48AC2: _IO_default_xsputn (genops.c:475)
==5401==by 0x5D18FFE: vfprintf (vfprintf.c:1655)
==5401==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
==5401==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
==5401==by 0x4ECC86: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==  Address 0x69bec0a is 42 bytes inside a block of size 376 free'd
==5401==at 0x4C2BA6C: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5401==by 0x4ECC67: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54: sys_loadpreferences (in /usr/local/bin/pd)
==5401==by 0x486370: sys_main (in /usr/local/bin/pd)
==5401==by 0x5CEDEA4: (below main) (libc-start.c:260)
==5401==
==5401== Invalid read of size 1
==5401==at 0x5D19040: vfprintf (vfprintf.c:1655)
==5401==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
==5401==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
==5401==by 0x4ECCA9: alsa_getdevs (in /usr/local/bin/pd)
==5401==by 0x4907A3: sys_set_audio_settings (in /usr/local/bin/pd)
==5401==by 0x489C54

Re: [PD] iem_tab can't create object

2013-10-07 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 07/10/2013 14:14, IOhannes m zmoelnig a écrit :
 On 2013-10-07 13:53, Jack wrote:
  I still get pd crash, even with iem_tab load first :

 since when does your Pd crash? your original post only claimed that
 the objects could not be created.
Since i add iem_tab in startup (in preference/startup).
If i remove it, Pd doesn't crash.

 what is your system (OS,arch,...)?
Ubuntu 13.04
Pd 0.45.0test 2
++

Jack



 gfamd
 IOhannes

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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSUqosAAoJEOuluecjw8GUKnAIAJzWtIzOOCE9F++ScKILAgyN
Erl4sPq+yibAaFH/iBxHDfR6kN1PnFyenTEmriUyv+EyFfIGCdUfPnbOTxnlobAA
MxBcXCqlpRpJI9PBz5idrVwCMfWM3Eo1li3t+fbWOUZd7qFLTP9deTIdY6n61z8K
VfdqsxFyoNqJX0u7hSzD7uGGO6uY/620N0YaX+YHutPywnPfE+DB8blRGCvV2WYE
XglWIzOiNf6O3+ML5WqCAdVt6lkBjH0JPVGvLK1GdBZ0GAAfgc8xkjxiuAAZQuOA
WRhfP1x+3JNxDdVdfDOj7S+So/ZY0lqRY/RIpi1NHUcwfEi8HtVqQbsQkKe7qyw=
=1jsL
-END PGP SIGNATURE-

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


Re: [PD] RE : Re: need help with gem and glsl feedback

2013-10-07 Thread Jack
Test with this one.
You should get the motion blur on the torus (here from your webcam).
Ifnot, there is a broblem somewhere else...

Le 06/10/2013 22:13, Py Fave a écrit :
 Hello , i just opened your last patch and am looking at it .
 weanwhile i reply to your points

 2013/10/6 Jack j...@rybn.org:
 Hello,

 Le 05/10/2013 22:51, Py Fave a écrit :

 in fact my problem is not solved .
 it seems like the feedback effect  happens everywhere but on the
 surface drawn by the shader .

 According to the patch, the feedback is applied on a [square 4] (where there
 is also the [torus 2]).
 Then, [gemframebuffer] 'snap' the whole 'inside' [square 4]. And your torus
 is inside this snapshot (as texels and not vertices).

 yes ,and then there is  some feedback on the texels of the square .
 but in my patch if i rotate the torus i get some feedback but not on the
 shaded part (only the silhouette of the torus .  i don't know why .
 i would like everything to go in the feedback loop .
It should be OK if you put the shader for the torus on the Gem chain
with [gemhead 5] and then let the feedback chains safe like in the patch
attached.
Tell me if there is a problem now.
++

Jack



 in fact i try to have trails that show geodesics on a surface
 later i plan to replace my torus with other models .



 i use a torus , in perspective wich has a shader applied .

 i tried the following workaround(archive is joined ) , but still no luck .
 the file to open has a OPEN in name .

 It seems there is no circle4.geom, [receive13] and [nshader0]
 objects/abstractions in your .zip.
 sorry i forgot  .

 receive13 only is missing .
 it's part of ext13 library (and is in pd-extended iirc)
 http://puredata.info/downloads/ext13

 [receive13 nothing ]could  be replaced by receive nShader1
 or all the shader abstraction can be replaced by the classical shader network
 with fragment shader = circle4.frag  and vertex shader = circle4.vert.
 no .geom was used


 i would like the dots to have the feedback ,
 or dots + geometry alltogether.

 I can't see dot in your patch (or gem window), maybe they come from geometry
 shader (which is missing) ?

 i didn't use geometry shader . just  fragment .
 glsl program complains in the abstraction  but no harm here i think

 i tried pix_snap2tex ( using gems.feedback from pdmtl abstractions) too
 but no luck because we can't choose the mixing function .
 and i would like only white to make trails .
 and i don't know how to keep the supporting geometry from appearing .
 the torus should be full black with a white trail only .

 A simple possibility is to use 2 torus, a black 'on' a white. And use the
 white for the trail ?

 An other way :

 white torus as texture
 |__ in the feedback __ output feedback as texture
 |__ convert white in black texel __ output black torus as texture

 Then mix (multiply) black torus with white feedback to get a black torus
 with white trails.
 ++

 Jack

 i'll send a modified patch a bit later .

 Thank you so much i see some good things from the last patch you sent .

 it is not what i want to do but opens other directions
 and perhaps i was focusing on one method but there seems to be alternatives .

 i'll update this thread tomorrow .
 i have to keep some life away from computer :-)

 Thanks for your help

 Py

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



test.pd
Description: application/puredata
// Jack/RYBN 2013
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect MyTex1, MyTex2;

void main() {
vec2 tex_coord = gl_FragCoord.st;
vec4 color = texture2DRect(MyTex1, tex_coord);
vec4 color0 = texture2DRect(MyTex2, tex_coord);
color *= 0.01;
color0 *= 0.99;
gl_FragColor = color+color0;
 }

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


Re: [PD] iem_tab can't create object

2013-10-07 Thread Jack
Le 07/10/2013 14:33, Jack a écrit :

 Le 07/10/2013 14:14, IOhannes m zmoelnig a écrit :
  On 2013-10-07 13:53, Jack wrote:
   I still get pd crash, even with iem_tab load first :

  since when does your Pd crash? your original post only claimed that
  the objects could not be created.

Yes, I was trying to use an old iem_tab.pd_linux (in the same
directory where there is my patch).

 Since i add iem_tab in startup (in preference/startup).
 If i remove it, Pd doesn't crash.

  what is your system (OS,arch,...)?
 Ubuntu 13.04
 Pd 0.45.0test 2

I forgot :
Linux jack-GE60-0NC-0ND 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10
20:03:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
++

Jack


 ++

 Jack



  gfamd
  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


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


Re: [PD] RE : Re: need help with gem and glsl feedback

2013-10-06 Thread Jack
Hello,

Le 05/10/2013 22:51, Py Fave a écrit :
 in fact my problem is not solved .
 it seems like the feedback effect  happens everywhere but on the
 surface drawn by the shader .
According to the patch, the feedback is applied on a [square 4] (where
there is also the [torus 2]).
Then, [gemframebuffer] 'snap' the whole 'inside' [square 4]. And your
torus is inside this snapshot (as texels and not vertices).

 i use a torus , in perspective wich has a shader applied .

 i tried the following workaround(archive is joined ) , but still no luck .
 the file to open has a OPEN in name .
It seems there is no circle4.geom, [receive13] and [nshader0]
objects/abstractions in your .zip.

 i would like the dots to have the feedback ,
 or dots + geometry alltogether.
I can't see dot in your patch (or gem window), maybe they come from
geometry shader (which is missing) ?

 i tried pix_snap2tex ( using gems.feedback from pdmtl abstractions) too
 but no luck because we can't choose the mixing function .
 and i would like only white to make trails .
 and i don't know how to keep the supporting geometry from appearing .
 the torus should be full black with a white trail only .
A simple possibility is to use 2 torus, a black 'on' a white. And use
the white for the trail ?

An other way :

white torus as texture
|__ in the feedback __ output feedback as texture
|__ convert white in black texel __ output black torus as texture

Then mix (multiply) black torus with white feedback to get a black torus
with white trails.
++

Jack




 btw i'm on windows not my choice.
 i have to share the screen with other programs wich are windows only

 any help welcome once more .

 Thanks

 Pierre-Yves


 ___
 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] $1 inside a message is not saving data ?

2013-10-06 Thread Jack
Le 06/10/2013 13:12, Фывапр Олджэвич a écrit :
 #N canvas 939 165 700 300 10;
 #X msg 139 127 0 \$1;
 #X obj 139 175 print;
 #X floatatom 111 74 5 0 0 0 - - -;
 #X obj 181 73 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
 -1;
 #X text 117 48 1;
 #X text 183 52 2;
 #X text 216 112 Why message is not saving data in \$1 ?;
 #X connect 0 0 1 0;
 #X connect 2 0 0 0;
 #X connect 3 0 0 0;

Hello,

Maybe you are looking for something attached with this patch ?
++

Jack




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


Re: [PD] RE : Re: need help with gem and glsl feedback

2013-10-06 Thread Jack
Le 06/10/2013 14:41, Jack a écrit :
 Hello,

 Le 05/10/2013 22:51, Py Fave a écrit :
 in fact my problem is not solved .
 it seems like the feedback effect  happens everywhere but on the
 surface drawn by the shader .
 According to the patch, the feedback is applied on a [square 4] (where
 there is also the [torus 2]).
 Then, [gemframebuffer] 'snap' the whole 'inside' [square 4]. And your
 torus is inside this snapshot (as texels and not vertices).
 i use a torus , in perspective wich has a shader applied .

 i tried the following workaround(archive is joined ) , but still no luck .
 the file to open has a OPEN in name .
 It seems there is no circle4.geom, [receive13] and [nshader0]
 objects/abstractions in your .zip.
 i would like the dots to have the feedback ,
 or dots + geometry alltogether.
 I can't see dot in your patch (or gem window), maybe they come from
 geometry shader (which is missing) ?
 i tried pix_snap2tex ( using gems.feedback from pdmtl abstractions) too
 but no luck because we can't choose the mixing function .
 and i would like only white to make trails .
 and i don't know how to keep the supporting geometry from appearing .
 the torus should be full black with a white trail only .
 A simple possibility is to use 2 torus, a black 'on' a white. And use
 the white for the trail ?

Attached is an example of that method.
Hope it will help you...
++

Jack



 An other way :

 white torus as texture
 |__ in the feedback __ output feedback as texture
 |__ convert white in black texel __ output black torus as texture

 Then mix (multiply) black torus with white feedback to get a black
 torus with white trails.
 ++

 Jack



 btw i'm on windows not my choice.
 i have to share the screen with other programs wich are windows only

 any help welcome once more .

 Thanks

 Pierre-Yves


 ___
 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

// Jack/RYBN 2013
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect MyTex1, MyTex2;

void main() {
vec2 tex_coord = gl_FragCoord.st;
vec4 color = texture2DRect(MyTex1, tex_coord);
vec4 color0 = texture2DRect(MyTex2, tex_coord);
gl_FragColor = color+color0;
gl_FragColor.a = 0.9;
 }



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


[PD] iem_tab can't create object

2013-10-06 Thread Jack
Hello,

I have a problem to use iem_tab library (tab_copy). I know about array
get/set but my old patch use tab_copy.
iem_tab compile fine.

When i open externals/iem/iem_tab/tab_copy-help.pd, i get in pd console :
 tab_copy src dst
... couldn't create
 tab_copy src dst
... couldn't create

In my directory externals/iem/iem_tab/, i have iem_tab.pd_linux

My configuration :
Pd 0.45.0test 2
++

Jack



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


[PD] RE : Re: need help with gem and glsl feedback

2013-10-03 Thread jack
Use, format RGB32 instead of RGB for your framebufers.
++

JackPy Fave pyf...@gmail.com a écrit :first thanks both for your help.
i was tired yesterday evening.

jack , i have a problem with your patch.
i had already similar problems before, that's why i wanted to use some
shader in the feedback chain .

it works ok BUT with very long feedback ( 0.999 alpha ) values i get a
ghost image,
the point never diseappears( because perhaps of a bad approximation in
opengl ) .
ie : color 1 1 1 0.995
leaves traces
is that a problem with  my graphics card ? i don't think so .
i join a clumsy correction test , with makes things flicker a bit too much .
do you have a better workaround?



2013/10/2 Jack j...@rybn.org:
 Le 02/10/2013 20:10, Py Fave a écrit :
 Hello list ,

 i'm currently trying to understand a bit more glsl ,
 and am tearing my hairs

 i have a scene with some  moving geometry (torus)
 on this  geometry i use successfully a simple shader to plot a moving circle.

 Then
 i try to make the classical feedback effect , but i need to use glsl
 because i want to control precisely the adding of the image at time
 and at time+1

 here is the feedback shader i try to use .
 
 uniform sampler2D tex1,tex2;
 uniform float motionblurstrenght;
 vec2 coord = gl_TexCoord[0].st;
 void main()
 {
 vec4 t1 = texture(tex1, coord);//new frame
 vec4 t2 = texture(tex2, coord);//acumulated frame
 gl_FragColor = vec4(t1.r);
    float r = ((1.-motionblurstrenght)*t2.r) + (t1.r);//motion blur
  gl_FragColor = vec4(r);
 }
 --


 do you have a clean example or hints on how to implement this ?
 i am currently fighting  with gemframebuffer and pix_texture
 and  rendering order and texunits .
 and i feel i'm missing something ..

 i would like , if possible to keep this as an effect i can turn on and
 off  , without modifing my current gem chains .

 i think i need two gem chains ,one early and one at last in the frame
 drawing chronology , but i can't make it though i tried a lot

 any help appreciated .

 Pierre-Yves

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

 This example could help, see attached.
 ++

 Jack



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

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


Re: [PD] RE : Re: need help with gem and glsl feedback

2013-10-03 Thread Jack
Le 03/10/2013 11:23, Patrice Colet a écrit :
 Hello,

 I'm trying to find out how to get a backbuffer for attached shader found in 
 the web (http://glsl.heroku.com/e#8849.0), it seem I couldn't get alpha 
 channel in gemframebuffer's recursion, any idea?

 Colet Patrice



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

I just added a line at the begining and an other one at the end of
fractalFeedback.frag to change the alpha for the feedback.
I also change the texunit ID backbuffer to 0 in the patch.
You can change alpha feedback with the number box i added in the patch.
Hope it helps.
++

Jack





feedback.pd
Description: application/puredata

uniform float time, alpha_back;
uniform vec2 mouse;
uniform vec2 resolution;

uniform sampler2D backbuffer;

#define PI2 6.2831853070


// definition for a scale, rotate, and color transform
// color transform is multiply (darken) only
struct Transform {
vec4 color;
vec2 center;
float scale;
float rotation;
};

vec2 applyTransform(const Transform t, vec2 v) {
v -= t.center;
float c = cos(t.rotation);
float s = sin(t.rotation);
return (vec2(
(v.x*c - v.y*s),
(v.y*c + v.x*s)) * t.scale + t.center);
}

#define SCALE 5.0

// model will be scaled such that the rectangle (-SCALE/2, -SCALE/2), (SCALE/2, 
SCALE/2)
// will be centered and fit the window with square aspect ratio.
float scale = SCALE / min(resolution.y,resolution.x);

vec2 mapModelToTexture(const vec2 v) {
return (v/(resolution*scale) + 0.5);
}

vec2 mapTextureToModel(const vec2 v) {
return (v - 0.5 * resolution) * scale;
}

// apply transform, return backbuffer sample
vec4 getBackbufferTransform(const Transform t, vec2 v) {
return t.color * 
texture2D(backbuffer, 
   mapModelToTexture(applyTransform(t, v)));
}

vec4 whiten(const vec4 color, float f) {
return (1.-f)*color + vec4(f);
}

void main( void ) {
// transform fragment coords to model coords
vec2 v = mapTextureToModel(gl_FragCoord.xy);

// draw orbs

const float innerRadius = 0.01;
float outerRadius = .24 + .03 * (sin(17.*time) + sin(11.*time));

vec2 p1 = (vec2(sin(time), cos(time)));
vec2 p2 = (vec2(sin(time*1.1), cos(time*1.1)));
vec2 p3 = (vec2(sin(time*1.3), cos(time*1.3)));

float d1 = length(v -p1);
float d2 = length(v -p2);
float d3 = length(v -p3);

const float aa = 0.95;
const float bb = 0.65;
const float cc = 0.05;
const vec4 color1 = vec4(aa, bb, cc, 2.0);
const vec4 color2 = vec4(cc, bb, aa, 2.0);
const vec4 color3 = vec4(aa, cc, bb, 2.0);

vec4 drawing = vec4(0.,0.,0.,0.);
drawing += smoothstep(outerRadius, innerRadius, d1) * color1;
drawing += smoothstep(outerRadius, innerRadius, d2) * color2;
drawing += smoothstep(outerRadius, innerRadius, d3) * color3;

// draw ring/disc
float rr = length(v);
drawing += vec4(1.)
* smoothstep(1.1, 1., rr)
* smoothstep(0.9, 0.5+0.5*sin(0.1*time), rr);

// apply feedback transforms to backbuffer

// define transform structs
float r = time*.27;
Transform t1 = Transform(
whiten(vec4(aa, bb, cc, 1.0), 0.7), 
vec2(-.7, 0.),
1.5, 
-r*3.);
Transform t2 = Transform(
whiten(vec4(cc, bb, aa, 1.0), 0.7),
vec2(0.7, 0.),
1.5,
r*2.);

// composite feedback with drawing
vec4 fc = max(  getBackbufferTransform(t1, v),
getBackbufferTransform(t2, v));
gl_FragColor = (1.-drawing[3])*fc -vec4(.01) + drawing[3]*drawing;
gl_FragColor.a = alpha_back;
}

// Cyrille Henry 2007

void main()
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;

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


Re: [PD] need help with gem and glsl feedback

2013-10-02 Thread Jack
Le 02/10/2013 20:10, Py Fave a écrit :
 Hello list ,

 i'm currently trying to understand a bit more glsl ,
 and am tearing my hairs

 i have a scene with some  moving geometry (torus)
 on this  geometry i use successfully a simple shader to plot a moving circle.

 Then
 i try to make the classical feedback effect , but i need to use glsl
 because i want to control precisely the adding of the image at time
 and at time+1

 here is the feedback shader i try to use .
 
 uniform sampler2D tex1,tex2;
 uniform float motionblurstrenght;
 vec2 coord = gl_TexCoord[0].st;
 void main()
 {
 vec4 t1 = texture(tex1, coord);//new frame
 vec4 t2 = texture(tex2, coord);//acumulated frame
 gl_FragColor = vec4(t1.r);
float r = ((1.-motionblurstrenght)*t2.r) + (t1.r);//motion blur
  gl_FragColor = vec4(r);
 }
 --


 do you have a clean example or hints on how to implement this ?
 i am currently fighting  with gemframebuffer and pix_texture
 and  rendering order and texunits .
 and i feel i'm missing something ..

 i would like , if possible to keep this as an effect i can turn on and
 off  , without modifing my current gem chains .

 i think i need two gem chains ,one early and one at last in the frame
 drawing chronology , but i can't make it though i tried a lot

 any help appreciated .

 Pierre-Yves

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

This example could help, see attached.
++

Jack




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


[PD] RE : video recording of a gem window

2013-10-01 Thread jack
If you don't succeed with [pix_record], you should try with [pix_writer] or 
[pix_write]. Then use a software to create your movie from several pictures.
++

JackDavid Schaffer schafferda...@hotmail.com a écrit :Hi there, I'm trying to 
find a way to capture my gem window into a video file. I've been trying 
pix_record but it seems that it is not what I need. I red about pdp_rec but it 
is not present in my version of pd-extended (0.43.4 on osX 10.7.5) is it 
obsolete? Any other object, library that I could use? 

Thank you very much,

David

http://www.flickr.com/photos/schafferdavid/
http://audioblog.arteradio.com/David_Schaffer/___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Gridflow and fonts on Raspberry Pi

2013-09-23 Thread Jack
Le 23/09/2013 02:27, Patrice Colet a écrit :
  I've collected some tricks since I'm using sys_gui, attached are the ones 
 you might need to build and communicate with your interface through pd, if 
 sys_gui is ok on raspberry, all the tcl and tk code is fully documented 
 online...

 Tested on Pd 0.45.0

 Colet Patrice

 - Mail original -
 De: Colet Patrice colet.patr...@free.fr
 À: Jack j...@rybn.org, pd-list@iem.at
 Envoyé: Dimanche 22 Septembre 2013 21:29:24
 Objet: Re: [PD] Gridflow and fonts on Raspberry Pi

 Hello jack,

   I don't know about raspberry, but it seems tcltk is used for te
   GUI,
 so what about using [sys_gui] for generating the interface?

   a toplevel -fullscreen should be able to do what you are looking
   for,
 it's also possible to create fonts

 Le 22/09/2013 19:10, Jack a écrit :
 Hello,

 I found gridflow for Raspberry Pi here :
 http://artengine.ca/acastonguay/gridflow/
 And see a message from Claude here about Gridflow font :
 http://lists.puredata.info/pipermail/pd-list/2006-01/034431.html

 My questions :
 I would like to use Raspberry Pi and Pd to render text on a screen.
 I guess Gridflow could be the right library to use if it can manage
 fonts and if it is stable on RPi ?
 Is there an other library (or idea) for this purpose ? For example
 : a
 pd window in fullscreen with a canvas with text ? In this case, how
 to
 achieve that (fullscreen without menubar and window title bar with
 pd).

 I am on raspbian :
 PRETTY_NAME=Raspbian GNU/Linux 7 (wheezy)
 NAME=Raspbian GNU/Linux
 VERSION_ID=7
 VERSION=7 (wheezy)
 Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013
 armv6l GNU/Linux
 with Pd-0.45.2 () compiled 16:14:18 Sep 17 2013.
 Thanx for any help.
 ++

 Jack



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

Hello Patrice,

Very nice ! Ijust test your patch with Pd-0.45.0 (test 2) on Ubuntu
13.04 and it is working perfectly.
Thanx a lot, I will test soon on Raspberry Pi.
++

Jack



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


Re: [PD] Gridflow and fonts on Raspberry Pi

2013-09-23 Thread Jack
Le 23/09/2013 12:45, Patrice Colet a écrit :
  I've confused a bit the first trick, renaming a proc could be necessary for 
 procedures coded from pd messages, not the ones loaded from a tcl files. 
 Also, introcing tcl classes could help for not having duplicated proc names.

  It would be nice to know if sys_gui is ok on Raspberry Pi in the case I'd 
 use it on some project :D.
Good news ! ;)

All objects in hcs library compile on Raspberry Pi.
On Ubuntu, you need to replace line (in Makefile) :
PD_PATH = /usr
by
PD_PATH = /usr/local
then
$ make

Your example with RPi to write text in a fullscreen window via tcl (with
sys_gui object) works fine.
Thanx.
++

Jack



 [sys_gui] can replace a large bunch of external objects (zexy, toxy, cyclone, 
 moocow, ...), but a bit slower, and sometimes would require the need to use 
 [makefilename %c] for curved braces, but in most cases tcl's [list ...] can 
 do it. The new text object allows to store easily tcl code inside a patch or 
 datastructure, I've found this usefull for storing image data... Including it 
 into pd-core would make it very efficient for application designing, there 
 still would be the need for [get_dir] in file processing though.

 Colet Patrice

 - Mail original -
 De: Jack j...@rybn.org
 À: Patrice Colet colet.patr...@free.fr, pd-list@iem.at
 Envoyé: Lundi 23 Septembre 2013 11:03:16
 Objet: Re: [PD] Gridflow and fonts on Raspberry Pi

 Le 23/09/2013 02:27, Patrice Colet a écrit :
  I've collected some tricks since I'm using sys_gui, attached are
  the ones you might need to build and communicate with your
  interface through pd, if sys_gui is ok on raspberry, all the tcl
  and tk code is fully documented online...

 Tested on Pd 0.45.0

 Colet Patrice

 - Mail original -
 De: Colet Patrice colet.patr...@free.fr
 À: Jack j...@rybn.org, pd-list@iem.at
 Envoyé: Dimanche 22 Septembre 2013 21:29:24
 Objet: Re: [PD] Gridflow and fonts on Raspberry Pi

 Hello jack,

   I don't know about raspberry, but it seems tcltk is used for te
   GUI,
 so what about using [sys_gui] for generating the interface?

   a toplevel -fullscreen should be able to do what you are looking
   for,
 it's also possible to create fonts

 Le 22/09/2013 19:10, Jack a écrit :
 Hello,

 I found gridflow for Raspberry Pi here :
 http://artengine.ca/acastonguay/gridflow/
 And see a message from Claude here about Gridflow font :
 http://lists.puredata.info/pipermail/pd-list/2006-01/034431.html

 My questions :
 I would like to use Raspberry Pi and Pd to render text on a
 screen.
 I guess Gridflow could be the right library to use if it can
 manage
 fonts and if it is stable on RPi ?
 Is there an other library (or idea) for this purpose ? For
 example
 : a
 pd window in fullscreen with a canvas with text ? In this case,
 how
 to
 achieve that (fullscreen without menubar and window title bar
 with
 pd).

 I am on raspbian :
 PRETTY_NAME=Raspbian GNU/Linux 7 (wheezy)
 NAME=Raspbian GNU/Linux
 VERSION_ID=7
 VERSION=7 (wheezy)
 Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST
 2013
 armv6l GNU/Linux
 with Pd-0.45.2 () compiled 16:14:18 Sep 17 2013.
 Thanx for any help.
 ++

 Jack



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

 Very nice ! Ijust test your patch with Pd-0.45.0 (test 2) on Ubuntu
 13.04 and it is working perfectly.
 Thanx a lot, I will test soon on Raspberry Pi.
 ++

 Jack



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


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


[PD] Gridflow and fonts on Raspberry Pi

2013-09-22 Thread Jack
Hello,

I found gridflow for Raspberry Pi here :
http://artengine.ca/acastonguay/gridflow/
And see a message from Claude here about Gridflow font :
http://lists.puredata.info/pipermail/pd-list/2006-01/034431.html

My questions :
I would like to use Raspberry Pi and Pd to render text on a screen.
I guess Gridflow could be the right library to use if it can manage
fonts and if it is stable on RPi ?
Is there an other library (or idea) for this purpose ? For example : a
pd window in fullscreen with a canvas with text ? In this case, how to
achieve that (fullscreen without menubar and window title bar with pd).

I am on raspbian :
PRETTY_NAME=Raspbian GNU/Linux 7 (wheezy)
NAME=Raspbian GNU/Linux
VERSION_ID=7
VERSION=7 (wheezy)
Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013
armv6l GNU/Linux
with Pd-0.45.2 () compiled 16:14:18 Sep 17 2013.
Thanx for any help.
++

Jack



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


Re: [PD] turn off lighting only in specific gemhead?

2013-09-21 Thread Jack
Le 21/09/2013 19:49, Ronni Montoya a écrit :
 Hi, is it possible to turn off the lighting only in a specific gemhead?

 I need that my lighting ( in gemwin) can affect all my gemheads
 instead of one. how can i do this?

 I been trying with

 [GEMglDisable] and [GLdefine GL_LIGHTING]  inside my gemhead but it
 turns off the lighting for all my gemheads.



 any idea how can achieve this?




 R.

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

Have a look at the patch attached (when you disable for one part, you
need to enable after...).
++

Jack


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


Re: [PD] pix_mask and glsl incompatibilities?

2013-09-13 Thread Jack
Le 12/09/2013 21:55, David Schaffer a écrit :
 Hi,

 I run pd extended ver. 0.43.4 on a macbook pro and I'm noticing
 something strange when triyng to use the gsls objects and the pix_mask
 object in the same abstraction:
 pix_mask won't work. I still have a picture, the console doesn't warn
 me for anything, but the pix_mask effect doesn't occur anymore, just
 like it's been bypassed... is there a workaround to this?

 thanks,

 David

 Ps: in my abs, the glsl process affects the alpha channel of a still
 image.

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

 http://audioblog.arteradio.com/David_Schaffer/



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

Hello,

Can you send us a little patch with this problem ?
++

Jack


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


Re: [PD] chaining pix_masks

2013-09-13 Thread Jack
Le 12/09/2013 22:08, David Schaffer a écrit :
 Hi, yet another question: is it possible to chain several pix_mask
 objects?

 Thanks

 D.S

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

 http://audioblog.arteradio.com/David_Schaffer/



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
Yes,it should be possible.
Have you a problem with that ?
If yes can you send us a little patch that illustrate this problem ?
++

Jack


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


Re: [PD] Conflict between GEMglPushMatrix/GEMglPopMatrix and %

2013-09-07 Thread Jack
Le 07/09/2013 23:43, topo bot a écrit :
 Hi again, im iterating a geo in Gem and then im anulating one iterated
 geo using module with spigot.
 It works fine, but when i add  GEMglPushMatrix and GEMglPopMatrix  i
 get GL:stack overflow because each GEMglPushMatrix is expecting one
 GEMglPopMatrix and when i anulate one geo that means that one
 GEMglPushMatrix is not gonna have its GEMglPopMatrix pair.

 any idea how can i solve this problem?

 I attached the patch and here theres also a pic

 http://www.freeimagehosting.net/newuploads/8s8r3.png


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

Can you explain what you want to achieve ?
If you just want to have the same occurence of
GEMglPushMatrix/GEMglPopMatrix, then use another [spigot] with a [== 1].
Send the output of this [spigot] directly in the [GEMglPopMatrix]. You
should get What you want (hide the sphere and always get couple
GEMglPushMatrix/GEMglPopMatrix).
++

Jack


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


Re: [PD] Conflict between GEMglPushMatrix/GEMglPopMatrix and %

2013-09-07 Thread Jack
Le 08/09/2013 00:51, Jack a écrit :
 Le 07/09/2013 23:43, topo bot a écrit :
 Hi again, im iterating a geo in Gem and then im anulating one iterated
 geo using module with spigot.
 It works fine, but when i add  GEMglPushMatrix and GEMglPopMatrix  i
 get GL:stack overflow because each GEMglPushMatrix is expecting one
 GEMglPopMatrix and when i anulate one geo that means that one
 GEMglPushMatrix is not gonna have its GEMglPopMatrix pair.

 any idea how can i solve this problem?

 I attached the patch and here theres also a pic

 http://www.freeimagehosting.net/newuploads/8s8r3.png


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

 Can you explain what you want to achieve ?
 If you just want to have the same occurence of
 GEMglPushMatrix/GEMglPopMatrix, then use another [spigot] with a [==
 1]. Send the output of this [spigot] directly in the [GEMglPopMatrix].
 You should get What you want (hide the sphere and always get couple
 GEMglPushMatrix/GEMglPopMatrix).
 ++

 Jack




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

Here the patch.
Don't know if it is what you want.
++

Jack




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


Re: [PD] repeating data in array or looping the data when reading?

2013-09-01 Thread Jack
Hello,


Le 01/09/2013 10:30, Ronni Montoya a écrit :
 Hi again, I'm creating some structures iterating geos using the repeat 
 object.
[repeat] comes from zexy. You have two specifics object for this purpose
(iteration) called [gemlist] from Gem and [until] from Pd. See
gemlist-help.pd.

 I have tables with data(colors) and I'm applying a different color to
 each iterated geo.

 If my array has 20 values (20 colors)  and then i iterate 20 times a
 geo, then each geo is gonna have a different color.

 But if i iterate 40 times then i will only have the first 20 geos
 colored and the rest is gonna be black.
In your counter, use a [mod 20] to loop two times from 0 to 19 (to read
your table which has 20 index).
++

Jack



 I was wondering which should be the best approach in pd to solve this problem.

 I need that instead having  black  geos i need that it can loop the
 values in the array , in that way it wouldn't mind to have more
 iterated geos than values in my array.

 Other approach i was thinking  is creating a large table , and then
 filling only with 20 color values, and then repeat the data through
 the whole table.

 I was wondering which should be the best approach for this? how can i
 repeat the data of my array?



 cheers

 R.

 ___
 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] pd 0.45-0 released

2013-08-28 Thread Jack
Le 27/08/2013 19:15, Jack a écrit :

 Le 27/08/2013 12:30, Max a écrit :
  There is one little annoyance:
  if you select a GUI object, right click fro the properties and then
 go to change on of the fields in the dialog, you can't hit backspace,
 because this deletes the object and closes the properties dialog.
 Somehow the backspace takes effect on the canvas instead of the
 numbers of say changing the values of a slider.

  but generally: amazing, thank you miller.
  :)

  m.

  Am 23.08.2013 um 21:00 schrieb Miller Puckette m...@ucsd.edu:

  Hi all,
 
  Pd version 0.45-0 is available on
 http://crca.ucsd.edu/~msp/software.htm
  or via git from sourceforge:
   git clone git://git.code.sf.net/p/pure-data/pure-data
   cd pure-data
   git checkout -b 0.45
 
  As always I'm sure there will be problems here and there - you're
 welcome
  to report them on the Pd mailing list (pd-list@iem.at) which is
 always the
  fastest way to get me to see them.
 
  cheers
  Miller
 
  ___
  Pd-announce mailing list
  pd-annou...@iem.at
  http://lists.puredata.info/listinfo/pd-announce
 
  ___
  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
 Hello,

 I had the same problem with one of my patch today : 'properties' on
 canvas then backspace on a field deleted the canvas.
 But I can't reproduce it.
 ++

 Jack



I forgot :
the problem occurs on :
Ubuntu 13.04
Pd 0.45.0test 2
++

Jack



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


Re: [PD] [PD-announce] pd 0.45-0 released

2013-08-27 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 27/08/2013 12:30, Max a écrit :
 There is one little annoyance:
 if you select a GUI object, right click fro the properties and then go
to change on of the fields in the dialog, you can't hit backspace,
because this deletes the object and closes the properties dialog.
Somehow the backspace takes effect on the canvas instead of the numbers
of say changing the values of a slider.

 but generally: amazing, thank you miller.
 :)

 m.

 Am 23.08.2013 um 21:00 schrieb Miller Puckette m...@ucsd.edu:

 Hi all,

 Pd version 0.45-0 is available on http://crca.ucsd.edu/~msp/software.htm
 or via git from sourceforge:
  git clone git://git.code.sf.net/p/pure-data/pure-data
  cd pure-data
  git checkout -b 0.45

 As always I'm sure there will be problems here and there - you're welcome
 to report them on the Pd mailing list (pd-list@iem.at) which is
always the
 fastest way to get me to see them.

 cheers
 Miller

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

 ___
 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
Hello,

I had the same problem with one of my patch today : 'properties' on
canvas then backspace on a field deleted the canvas.
But I can't reproduce it.
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSHN66AAoJEOuluecjw8GUVT8H/1ZFduiB+XwDl0nqY6ceIG+m
CFhcCUK+PadXCx+I2X4Xojvq4nV6xO7Ll+vQag8mREC3a3rw5V3TQwMLwkWkWJt2
p4Ewx2N5H0Ok1Y3f2RQuNWW7mTcMNSYCD2+7qmoGB8RorI7o3e6ADK8Ft+lsTDCU
HF1kmUNDzZ+NR1iCFbKjWc0c8Ki2RIYn62YMpwvAKz3XgN6dkz1PA06EeDyqsbba
V8VP0eIADyvfRtOm+O/7mA1zXjmlAh9cEi6c37SCSe8w5ns5XLCuwnI5mrpaHUwJ
NGAof17HeHWqkZDjOYUlcMqcYyONr2CzltDIY6ekK83ESThgCMO2Ff7qWb+DgR4=
=M1oi
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-26 Thread Jack
Hello,

The answer about v4l2 driver for xiQ camera from Ximea :

Dear Mr.Jack,

Based on information of our linux implementation specialist we are not
planning implementation of v4l2 because it is quite complicated task and
there are no big potential from current customers.

Probably gstreamer interface would be simpler for implementation, but
unfortunately also this interface is not in our plan pipeline.

Best regards


Hello,

I have a xiQ camera and test it on my Ubuntu. It works well with
streamViewer provided by your staff.
But for a lot of people working under linux platform like me, it
would be very nice to use v4l2 driver. This is free/open and a standard
on linux.
Are you working on this solution (to make v4l2 driver for your xiQ
USB3.0 camera) ?
Best!
++

Jack


For peole interested in the xiQ cameras : Ximea API/Gstreamer have
worked during more 24 hours without problem on my computer (Ubuntu
12.04, kernel 3.8, gstreamer 0.10).
I run into trouble (i get a crash after more or less 2 hours) when i
tried to modify the code to get Gstreamer working with
v4l2sink/v4l2loopback/[pix_video], but my skill in C++ are to bad to get
things stable...
++

Jack



Le 23/08/2013 12:17, Jack a écrit :

 Hello,

 Le 22/08/2013 21:03, IOhannes zmölnig a écrit :
  On 08/22/2013 08:40 PM, Jack wrote:
 
  $ cat /sys/devices/virtual/video4linux/video1/format
  GREY?30:1280x1024@30
 
  I expect 60 fps.
  If i set :
  $ v4l2-ctl -d /dev/video1 -p 60
  or
  $ v4l2-ctl -d /dev/video1 -p 1
  It doesn't change anything.
  Do you know if there is a possibility to get this frame rate (60 fps) ?
  Is it a limitation using videoloopback ?

  no.
  v4l2loopback does not know nor care about frames or formats.
  it simply passes the frames from one application to another. there is no
  colorspace-conversion of resampling or the like involved.
 OK.



  it's gstreamer that doesn't set the framerate correctly.

  you could force it by running:
   $ echo @60 | sudo tee /sys/devices/virtual/video4linux/video1/format

  in practice i don't think that this framerate setting will do much.
 Yes, it doesn't change anything.



  For info, i get 60 fps when I use the application streamViewer.

  how do you know?
 It is written in the top window border : Acquisition [ cptured: 2854,
 skipped: 1, fps : 61.40 ]
 Seeing the video capture in the Gem window, i guess it is at 60 fps.
 So, in this case, information about framerate return by :
 $ v4l2-ctl --all -d /dev/video1
 or
 $ cat /sys/devices/virtual/video4linux/video1/format
 is incorrect.
 Thank you for your help IOhannes, now I can get the stream from a
 XIMEA camera in Gem.
 Do you think, it will be much better/faster/stable to get a v4l2
 driver from XIMEA than to use a pipe with gstreamer/v4l2loopback ?
 ++

 Jack




  fdsmard
  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


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


Re: [PD] sample based engine sound for racing game

2013-08-26 Thread Jack
Le 26/08/2013 21:54, hghoyer a écrit :

 hi list,

 does anyone has experience or tips to patch a realistc motorsound for
 racing game prototyping?

 i wants to experiment with some motorsound loops to create some real
 engine noise...

 for tips i'll be very happy



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

[phasor~ 85]
|\
| \
|  \
[dac]

? :)
++

Jack


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


Re: [PD] sample based engine sound for racing game

2013-08-26 Thread Jack
Le 26/08/2013 22:48, Jack a écrit :
 Le 26/08/2013 21:54, hghoyer a écrit :

 hi list,

 does anyone has experience or tips to patch a realistc motorsound for
 racing game prototyping?

 i wants to experiment with some motorsound loops to create some real
 engine noise...

 for tips i'll be very happy



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

 [phasor~ 85]
 |\
 | \
 |  \
 [dac]

 ? :)
 ++

 Jack




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

More seriously, you can find interresting things here :
http://www.obiwannabe.co.uk/tutorials/html/tutorial_motors.html
++

Jack


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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-23 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

Le 22/08/2013 21:03, IOhannes zmölnig a écrit :
 On 08/22/2013 08:40 PM, Jack wrote:

 $ cat /sys/devices/virtual/video4linux/video1/format
 GREY?30:1280x1024@30

 I expect 60 fps.
 If i set :
 $ v4l2-ctl -d /dev/video1 -p 60
 or
 $ v4l2-ctl -d /dev/video1 -p 1
 It doesn't change anything.
 Do you know if there is a possibility to get this frame rate (60 fps) ?
 Is it a limitation using videoloopback ?

 no.
 v4l2loopback does not know nor care about frames or formats.
 it simply passes the frames from one application to another. there is no
 colorspace-conversion of resampling or the like involved.
OK.



 it's gstreamer that doesn't set the framerate correctly.

 you could force it by running:
  $ echo @60 | sudo tee /sys/devices/virtual/video4linux/video1/format

 in practice i don't think that this framerate setting will do much.
Yes, it doesn't change anything.



 For info, i get 60 fps when I use the application streamViewer.

 how do you know?
It is written in the top window border : Acquisition [ cptured: 2854,
skipped: 1, fps : 61.40 ]
Seeing the video capture in the Gem window, i guess it is at 60 fps.
So, in this case, information about framerate return by :
$ v4l2-ctl --all -d /dev/video1
or
$ cat /sys/devices/virtual/video4linux/video1/format
is incorrect.
Thank you for your help IOhannes, now I can get the stream from a XIMEA
camera in Gem.
Do you think, it will be much better/faster/stable to get a v4l2 driver
from XIMEA than to use a pipe with gstreamer/v4l2loopback ?
++

Jack




 fdsmard
 IOhannes



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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFzakAAoJEOuluecjw8GUxh8H/3uYQ0ZG0on0w8h1J6Rox2Tr
kiIt4tSeV3fBPJfaBugYky6e003MprM8aLSyEE2ugbDMQ2tGX7O3qtau1jqpuRd6
gSA7l5R4UVK+whIunilwmG+mrBytwVUi4lx9CRmaRIgcN6GNYJO9mIDMKgOwNO7S
B86SOYGX7TtKr7vTyC+z9jIq/fDaKgNQTN85gyYgimqdtP/zt1rIhkoomDuQO5u1
9IpezxPxu7JnEWqSjLJ+1VPM69k6JNsOga5A9Vv6IKvHbgWiK42n+Zr2KE4+HxlZ
ZEAPJNNQg/sWH+/fAd+84tsQpAxUEr5bgTpw3ROt+wBumwk2S8wZzVZDA1BZ9rE=
=1w9V
-END PGP SIGNATURE-

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


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jack
Le 22/08/2013 07:13, Jonathan Wilkes a écrit :
 Hi list,

 I've got some updates to [canvasinfo], [pdinfo], and [classinfo] that
 I'll put in a demo build either tomorrow or the next day.

 I also added a new data structure class with two creators:
 [drawimage] - draw an image on a canvas
 [drawsprite] - draw a sprite on a canvas

 The [drawsprite] object takes the name of a directory containing an
 image sequence and
 loads the images into tcl/tk memory when the object gets created.  A
 ds float field can then be
 associated with that image so that when you change its value it jumps
 to that image in the
 sequence.  I used the code from [drawnumber], so you can even animate
 the sprite by clicking
 and dragging on the image.

 Since all the images are preloaded into tcl/tk, animating them is
 fairly straightforward-- tk just
 clears the old image and copies the new one from one of the images it
 has in memory.

 Of course the upshot is fairly obvious-- we can finally have ponies
 running around inside Pure
 Data patches.

 E.g., thanks to this:
 http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

 I can now do this:
 https://puredata.info/Members/jancsika/omgponies.webm/view

 I just added the realtime code selection as an afterthought using
 [cnv] objects.  However, it
 would be neat to be able to group code and highlight it
 programmatically as the data is flowing.

 -Jonathan


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

Very funny animation, we can now design platform games directly in a
patch. ! ;)
More seriously, it could replace the [#see] object from gridflow,
interresting...
++

Jack


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


[PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Hello,

I would like to get the stream from a XIMEA camera using gstreamer.
There is an example (in the XIMEA Linux Software Package) that use
gstreamer to get the stream. This example works fine on Ubuntu 12.04
(with kernel 3.8) and Ubuntu 13.04.
But i would like to get the stream with v4l2sink/v4l2src from gstreamer
with pdgst (or better, from [pix_video] ??? :).
My skills in C++ are bad and if someone can help me to modify the source
code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it
work only with v4l2src, it would be very nice.
The XIMEA Linux Software Package can be downloaded from :
http://www.ximea.com/support/wiki/apis/XIMEA_Linux_Software_Package
Thanx.
++

Jack


#include sys/time.h
#include pthread.h
#include gtk/gtk.h
#ifdef GDK_WINDOWING_X11
#include gdk/gdkx.h
#endif
#include gst/app/gstappsrc.h
#include gst/interfaces/xoverlay.h
#include m3api/xiApi.h
#include m3api/xiExt.h

BOOL acquire, quitting, render = TRUE;
int maxcx, maxcy, roix0, roiy0, roicx, roicy;
pthread_t videoThread;
HANDLE handle = INVALID_HANDLE_VALUE;
guintptr window_handle;

GstBusSyncReply bus_sync_handler(GstBus* bus, GstMessage* message, gpointer) {
	if(GST_MESSAGE_TYPE(message) != GST_MESSAGE_ELEMENT || !gst_structure_has_name(message-structure, prepare-xwindow-id))
		return GST_BUS_PASS;
#if GST_CHECK_VERSION(0,10,31)
	gst_x_overlay_set_window_handle(GST_X_OVERLAY(GST_MESSAGE_SRC(message)), window_handle);
#else
	gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(GST_MESSAGE_SRC(message)), window_handle);
#endif
	gst_message_unref(message);
	return GST_BUS_DROP;
}

#if defined(GDK_WINDOWING_X11)
void video_widget_realize_cb(GtkWidget* widget, gpointer) {
	GdkWindow *window = gtk_widget_get_window(widget);
	if (!gdk_window_ensure_native(window))
		g_error (Couldn't create native window needed for GstXOverlay!);
	window_handle = GDK_WINDOW_XID(window);
}
#elif defined(GDK_WINDOWING_QUARTZ)
void video_widget_realize_cb(GtkWidget*, gpointer);
#else
#error Unsupported GDK backend
#endif

inline unsigned long getcurus() {
	struct timeval now;
	gettimeofday(now, NULL);
	return now.tv_sec * 100 + now.tv_usec;
}

gboolean close_cb(GtkWidget*, GdkEvent*, gpointer quit) {
	quitting = quit ? TRUE : FALSE;
	if(videoThread)
		acquire = FALSE;
	else
		gtk_main_quit();
	return TRUE;
}

void* videoDisplay(void*) {
	GtkWidget *videoWindow;
	GdkScreen *screen;
	GstElement *pipeline, *appsrc/*, *fpssink*/;
	GstFlowReturn ret;
	GstBuffer *buffer;
	GstBus *bus;
	GstCaps *caps = 0;
	int max_width, max_height;
	int prev_width = -1;
	int prev_height = -1;
	unsigned long frames = 0;
	unsigned long prevframes = 0;
	unsigned long lostframes = 0;
	unsigned long curtime, prevtime;
	long lastframe = -1;
	gchar/* *videofps,*/ title[256];
	XI_IMG_FORMAT prev_format = XI_RAW8;
	XI_IMG image;
	image.size = sizeof(XI_IMG);
	image.bp = NULL;
	image.bp_size = 0;
	gdk_threads_enter();
	videoWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_window_set_title(GTK_WINDOW(videoWindow), streamViewer);
	gtk_widget_set_double_buffered(videoWindow, FALSE);
	g_signal_connect(videoWindow, realize, G_CALLBACK(video_widget_realize_cb), NULL);
	g_signal_connect(videoWindow, delete-event, G_CALLBACK(close_cb), NULL);
	gtk_widget_show_all(videoWindow);
	gtk_widget_realize(videoWindow);
	screen = gdk_screen_get_default();
	max_width = 0.8*gdk_screen_get_width(screen);
	max_height = 0.8*gdk_screen_get_width(screen);
	gdk_threads_leave();
	if(xiStartAcquisition(handle) != XI_OK)
		goto exit;
	//pipeline = gst_parse_launch(appsrc is-live=TRUE name=streamViewer ! queue max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-borders=TRUE ! fpsdisplaysink name=fpssink text-overlay=FALSE sync=FALSE, NULL);
	pipeline = gst_parse_launch(appsrc is-live=TRUE name=streamViewer ! queue max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-borders=TRUE ! autovideosink, NULL);
	if(!pipeline)
		goto exit;
	bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
	gst_bus_set_sync_handler(bus, (GstBusSyncHandler)bus_sync_handler, NULL);
	gst_object_unref(bus);
	appsrc = gst_bin_get_by_name(GST_BIN(pipeline), streamViewer);
	//fpssink = gst_bin_get_by_name(GST_BIN(pipeline), fpssink);
	gst_element_set_state(pipeline, GST_STATE_PLAYING);
	prevtime = getcurus();
	while(acquire) {
		if(xiGetImage(handle, 5000, image) != XI_OK)
			break;
		if(render) {
			buffer = gst_buffer_new();
			gst_buffer_set_data(buffer, (guint8*)image.bp, image.width*image.height*(image.frm == XI_RAW8 ? 1 : 3));
			GST_BUFFER_TIMESTAMP(buffer) = GST_CLOCK_TIME_NONE;
			if(prev_width != image.width || prev_height != image.height || prev_format != image.frm) {
if(caps)
	gst_caps_unref(caps);
if(image.frm == XI_RAW8)
	caps = gst_caps_new_simple (video/x-raw-gray,
			bpp, G_TYPE_INT, 8,
			depth, G_TYPE_INT, 8,
			framerate, GST_TYPE_FRACTION, 0, 1,
			width, G_TYPE_INT, image.width,
			height, G_TYPE_INT, image.height,
			NULL);
else if(image.frm

Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jack
Le 22/08/2013 16:36, Jonathan Wilkes a écrit :
 On 08/22/2013 03:53 AM, Jack wrote:
 Le 22/08/2013 07:13, Jonathan Wilkes a écrit :
 Hi list,

 I've got some updates to [canvasinfo], [pdinfo], and [classinfo]
 that I'll put in a demo build either tomorrow or the next day.

 I also added a new data structure class with two creators:
 [drawimage] - draw an image on a canvas
 [drawsprite] - draw a sprite on a canvas

 The [drawsprite] object takes the name of a directory containing an
 image sequence and
 loads the images into tcl/tk memory when the object gets created.  A
 ds float field can then be
 associated with that image so that when you change its value it
 jumps to that image in the
 sequence.  I used the code from [drawnumber], so you can even
 animate the sprite by clicking
 and dragging on the image.

 Since all the images are preloaded into tcl/tk, animating them is
 fairly straightforward-- tk just
 clears the old image and copies the new one from one of the images
 it has in memory.

 Of course the upshot is fairly obvious-- we can finally have ponies
 running around inside Pure
 Data patches.

 E.g., thanks to this:
 http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

 I can now do this:
 https://puredata.info/Members/jancsika/omgponies.webm/view

 I just added the realtime code selection as an afterthought using
 [cnv] objects.  However, it
 would be neat to be able to group code and highlight it
 programmatically as the data is flowing.

 -Jonathan


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

 Very funny animation, we can now design platform games directly in a
 patch. ! ;)
 More seriously, it could replace the [#see] object from gridflow,
 interresting...
 ++

 As I understand it, [#see] is much more powerful because it's
 visualizing stuff
 created from gridflow computations on the fly.  But it's probably also
 much slower
 for that same reason.

 One drawback to [drawsprite] is if you wanted to abuse it to draw a
 large image
 sequence-- say a video clip-- you're going to use a ton of memory
 loading the images
 into wish's memory.  And by default tcl/tk doesn't free that memory
 back to the OS.
 However it does free it up within tcl/tk when the corresponding
 [drawsprite] is deleted--
 so if you delete it and undo a bunch of times it won't consume more
 memory than it did
 in the first place.

 But for small sprites this isn't really an issue, and once the images
 are loaded it is very
 cheap to copy/cut the scalar images on a canvas.

 -Jonathan


 Jack




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



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

Is it possible to add an argument to [drawsprite] to load the first X
frame of the video ? Then, it will limit the memory used for large videos.
++

Jack


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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 16:51, IOhannes m zmölnig a écrit :
 On 08/22/13 16:13, Jack wrote:
 Hello,

 I would like to get the stream from a XIMEA camera using gstreamer.
 There is an example (in the XIMEA Linux Software Package) that use
 gstreamer to get the stream. This example works fine on Ubuntu 12.04
 (with kernel 3.8) and Ubuntu 13.04.
 But i would like to get the stream with v4l2sink/v4l2src from gstreamer
 with pdgst (or better, from [pix_video] ??? :).
 My skills in C++ are bad and if someone can help me to modify the source
 code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it
 work only with v4l2src, it would be very nice.

 hmm, i'm sure this is really a problem which should be solved by XIMEA:
 they ought to provide proper v4l2 drivers, rather than creating their
 own framework which will only ever be used by their products, and expect
 each application to support their framework (that is: unless they are
 willing to pay me so that i can add support for their software)
I will email to XIMEA to suggest to use v4l2. It will be very more
simple for everyone in linux world...


 anyhow, after a quick glance at your sample code it seems that GStreamer
 is *not* used to grab the video, but only for displaying it.
 the actual grabbing is done in application space via the SDK.
 this basically means, that you cannot do it in pdgst.

 a rather quick hack would be to change the gstreamer output from
 autovideosink to v4l2sink device=/dev/video42 and recompile the
 streamViewer.
 this should allow [pix_video] to access the video-stream via v4l2.
It is exactly what i do but it doesn't work.
++

Jack


 fgmadrs
 IOhannes



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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFil9AAoJEOuluecjw8GUJYIIAKBCFPJI0osmzeecP+fcmRtR
vX7jDfxQ3JjEAeqgaTpeNUdIUc2bexwowMaVi/3Ge3xnYPrA3XGG6TZwN0diFdoo
Ix6sesxjPMKxJg1GsaE3JPmaJ7f1p3OyLAPGpPqIyBTVnyfMM5ubjwA6YElYNJkE
21E7hTfrXm2I1zbkIFkqEpLcjhIm09YFbqniiRL9Ch6x1n6QJU91EwyhSQRMZYmT
MpCvEDpHS/cLCkriajdPsBT3UN5KIW/+piFF8g8v6kykd5s5v6UQeaT8/AY+kdqJ
i4OTo0oquKHzEjQ13vVgzTOXjciafGPB4ql0qFXgNe+pw/UF/k54LRVu52XQPBg=
=1U75
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
 On 08/22/13 16:51, IOhannes m zmölnig wrote:
 hmm, i'm sure this is really a problem which should be solved by XIMEA:
 they ought to provide proper v4l2 drivers, rather than creating their
 own framework

 just to make sure that this got through: you *really* should write to
 XIMEA asking them to create proper v4l2 drivers (at least for their
 USB-based cameras).

 those companies often need some user feedback...
Yep. I will tonight.
++

Jack



 fgmasdr
 IOhannes




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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFinsAAoJEOuluecjw8GUVEAIAKczqnujBEAqXOuYMKrLLUTl
oLyHfCjrIn8CI++grmVuWUQC0VIJwSWfoX9IZ43FDPL1h5Meb1R2MYgU2Y25dtlN
c4Ho6V9XJs05jCOIlWmKQ+tT6xMBZxK35h7rO/xhGucvPC8rHtNCuxBR+XcHJwNI
MKHbRvc3e86JTURJ4ABoKWXmJ28RL0ZH92JNRgUUQA/YxtQ5R87fGtNRxhWxJhxh
tb/8TtuJhR5Ae4ccC3g033kUwfWFjJ9cjUN8RiNqR4k6ex6pZxrjjPHvsTINfPNd
6J3fzCB+WF+fV9FCFO/EuoSWozZgiWe0IFSOmiwkvNIZhcqibM/AUeCpIGPavLQ=
=pUWF
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Le 22/08/2013 17:10, Jack a écrit :

 Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
  On 08/22/13 16:51, IOhannes m zmölnig wrote:
  hmm, i'm sure this is really a problem which should be solved by XIMEA:
  they ought to provide proper v4l2 drivers, rather than creating their
  own framework

  just to make sure that this got through: you *really* should write to
  XIMEA asking them to create proper v4l2 drivers (at least for their
  USB-based cameras).

  those companies often need some user feedback...
 Yep. I will tonight.
 ++

 Jack

Done, I expect their answer soon and keep you informed.
++

Jack





  fgmasdr
  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


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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 17:23, IOhannes m zmölnig a écrit :
 On 08/22/13 17:08, Jack wrote:
 a rather quick hack would be to change the gstreamer output from
 autovideosink to v4l2sink device=/dev/video42 and recompile the
 streamViewer.
 this should allow [pix_video] to access the video-stream via v4l2.
 It is exactly what i do but it doesn't work.

 maybe you should clean the engines.
What does it mean clean the engines.
Thanx for your help.
++

Jack




 dfmadr
 IOhannes



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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFi7dAAoJEOuluecjw8GUuA4IAKPoKtyouk7B0sZLjwo1l7XU
/BXSZ7ZyRQlaIqC3gpJl8qmH5915H7LP37XjWkC8IzYHAZohK34NH8haH485O1Ea
JihXm2o78rFkqpDg/pOH9XAtsOrsW0rHyyjckTyenR5TlrfYZ0XikpTWSs+usogB
GrpbBwjfyLgG7/5Uw8ILQHF4reREqXlae/Jq892BxR0BVWhzGAOjIBIwK5WFvwt5
z9MD6+1mjAWmbwtlXzUsX8+NsKoFsj/IG/VaIDvTuxEQqHp9t5pjDS+bxQGGIff0
pjfooRBaW11FTY6UWZtOgo2zx0uByx1YRltu45O1ufYnvFvCOSTPha5IeOyyS/w=
=pdDv
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 17:47, IOhannes m zmölnig a écrit :
 On 08/22/13 17:31, Jack wrote:
 It is exactly what i do but it doesn't work.

 maybe you should clean the engines.
 What does it mean clean the engines.
 Thanx for your help.

 it means that i have absolutely no idea what you mean by it doesn't
work.

 if you want help, you need to be more specific about your specific
 problem, about errors, warnings...

 gmasdr
 IOhannes



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list
OK.
When I compile streamViewer.cpp which contains the gstreamer pipe
finishing by : v4l2sink device=/dev/video2, i get no error.
And after :
$ ./streamViewer
the application runs as expected.

In Pd, i open the help patch about [pix_video] and send the message
[driver v4l2, device 2( to [pix_video].
I expect to get the stream, but i get (in the pd console) :
Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
v4l: failed opening device: '/dev/video2'

So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
wrong after the modification.
How can i solve this problem ?
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFjpjAAoJEOuluecjw8GU8XEH/3jk3VRdyGhkHEEtSWeU7hgy
nHV29F1UJgth2YUMZyvWSz6Xz8aRtDjmNgRpcBa2bPm9w02q7hZYrWCqKaOJUX6U
EmBoNdfnjHiB0mVImtwiOP02u7XgtLFYYE0pNw2fbDOznlJ2MQT6cB9/jvhJ3sNY
jXJLSSrQOgJHw5GCcDACOJfP9YfIUu+giz0gJxJ4wiPN5dunf2ujmIYyFx9EiFIK
ZvVTPJjcFyySjqRP5IhRvhsJfP0dYAerMMPxySGgU3OhDgM8hV/+RI9PrytXe0h7
3SZlJxa5sjUaXXcyxQFMUlZx89Y9AkrENQLEBw+n/xE/xuVUb3NvTAv0K0oMmEE=
=3B6d
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
 On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
 And after :
 $ ./streamViewer
 the application runs as expected.


 you might try to create a slightly more complex pipeline, that outputs
 to both v4l2sink *and* autovideosink (so you can see whether the
 pipeline is running).


 In Pd, i open the help patch about [pix_video] and send the message
 [driver v4l2, device 2( to [pix_video].
 I expect to get the stream, but i get (in the pd console) :
 Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
 v4l: failed opening device: '/dev/video2'

 So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
 wrong after the modification.
 How can i solve this problem ?

 try raising the verbosity of streamViewer, to see what it really does:
  ./streamViewer --gst-debug-level=4
I get that in the terminal when it is running :

0:00:21.907218447 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1073479680 = 20)
0:00:21.907237033 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef210
0:00:21.923285100 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1074790400 = 20)
0:00:21.923321131 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1074790400 = 20)
0:00:21.923332968 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef2b0
0:00:21.939656140 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1076101120 = 20)
0:00:21.939721014 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1076101120 = 20)
0:00:21.939748951 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef350
0:00:21.955868740 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1077411840 = 20)
0:00:21.955912125 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1077411840 = 20)


 check what happens to the videodevice when streamViewer should write
to it.
 try:
  v4l2-ctl --all -d /dev/video2
 to see the mode of the device.
$ v4l2-ctl --all -d /dev/video2
Failed to open /dev/video2: No such file or directory

 also check /sys/devices/virtual/video4linux/video2/format whether the
 format has been set correctly.
$ cat /sys/devices/virtual/video4linux/video2/format
cat: /sys/devices/virtual/video4linux/video2/format: No such file or
directory

It seems there is a problem when I see : queue filled (1077411840 =
20) ?
Thanks to help me to solve this problem !
++

Jack




 fgmasdr
 IOhannes





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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFj7hAAoJEOuluecjw8GUGrQH/1kkszHPI+IRZmhW2xiICXE1
ZCv7OjXmlykrgwMZJjus3gnZf7VpbLoaGYRg/1RytBAdE9zYI/v0WUyO/3j9/lXt
kijg42gMiShRo+5RpsH1UzUH5smL2qOlvnaR3VpP2mWvBD68lVK5F7kOJJZXqCf1
vdX44hcklveDX4VfxIJnELyu+wEpM3IjSpTxuDXZTpCEueCwmOeqWpE/9tKlzafF
wGdtYzJnsbicRdpArYbFPD8omXDTD49WzA1dtxd0isiuDPQcWyLgla9m2xTMiEEg
mX+2Shp1Pm5DxrWPCR/3uDJNNn1QYNM4vdt+1/M4+DMl62w9ijAXsq5Rr3pNXS8=
=S38u
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 19:39, IOhannes m zmölnig a écrit :
 On 08/22/13 18:40, Jack wrote:

 Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
 On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
 [...]
 $ v4l2-ctl --all -d /dev/video2
 Failed to open /dev/video2: No such file or directory
 [...]
 $ cat /sys/devices/virtual/video4linux/video2/format
 cat: /sys/devices/virtual/video4linux/video2/format: No such file or
 directory


 it seems that there is no /dev/video2.
 you should set up your pipeline to write to an existing v4l2 loopback
 device.
 then report the output of v4l2-ctl and /sys/devices/... for *that* device.

 fgmdsr
 IOhannes



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

Thanks IOhannes,
I completely forgot to install v4l2loopback.
Now it is working perfectly.
Nice ! :)
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFlclAAoJEOuluecjw8GU9iIH/0ASkVio1BIYCifCZuDHyPAQ
luIRQ4ZHZgAfrkQJd/auRFh5kK2zbmnqB8rG6Ft2UKRPKdPOlFZYXQ8Fp9v2oEfc
tiiq0UoOl8Srp7F9ow83TFEoMWTD12nslQr86H8GSqWGbX873tDs+rPs8tQnpc1Q
4DhQwkTv/0T5uFkcq3YX3MDiSDwxdiQ6e7kPg9R2P0ZWfhJJMHQc+Df9MDB9vlvM
64muy8wroFSnvJT6Jo1LpAwNZrnxxf1eQmT/gbvScl41w9TfKnM3YBN7a3P0nDej
Cmg/j9fEd8gSg+cu6NnOOiDrKNCBJfICCgAH9FuZf65xEB3AsAUZUM3BwLP2698=
=XWKK
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Le 22/08/2013 20:23, Jack a écrit :

 Le 22/08/2013 19:39, IOhannes m zmölnig a écrit :
  On 08/22/13 18:40, Jack wrote:
 
  Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
  On 08/22/13 18:05, Jack wrote:
   When I compile streamViewer.cpp which contains the gstreamer pipe
  finishing by : v4l2sink device=/dev/video2, i get no error.
  [...]
  $ v4l2-ctl --all -d /dev/video2
  Failed to open /dev/video2: No such file or directory
  [...]
  $ cat /sys/devices/virtual/video4linux/video2/format
  cat: /sys/devices/virtual/video4linux/video2/format: No such file or
  directory
 

  it seems that there is no /dev/video2.
  you should set up your pipeline to write to an existing v4l2 loopback
  device.
  then report the output of v4l2-ctl and /sys/devices/... for *that*
 device.

  fgmdsr
  IOhannes



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

 Thanks IOhannes,
 I completely forgot to install v4l2loopback.
 Now it is working perfectly.
 Nice ! :)
 ++

 Jack





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

Now :
$ v4l2-ctl --all -d /dev/video1
Driver Info (not using libv4l2):
Driver name   : v4l2 loopback
Card type : Dummy video device (0x)
Bus info  : v4l2loopback:0
Driver version: 0.7.0
Capabilities  : 0x0501
Video Capture
Read/Write
Streaming
Video input : 0 (loopback: ok)
Video output: 0 (loopback in)
Format Video Capture:
Width/Height  : 1280/1024
Pixel Format  : 'GREY'
Field : None
Bytes per Line: 1280
Size Image: 1310720
Colorspace: SRGB
Format Video Output:
Width/Height  : 1280/1024
Pixel Format  : 'GREY'
Field : None
Bytes per Line: 1280
Size Image: 1310720
Colorspace: SRGB
Streaming Parameters Video Capture:
Frames per second: 30.000 (30/1)
Read buffers : 8
Streaming Parameters Video Output:
Frames per second: 30.000 (30/1)
Write buffers: 8
keep_format (bool)   : default=0 value=0
  sustain_framerate (bool)   : default=0 value=0
timeout (int): min=0 max=1 step=1
default=0 value=0
   timeout_image_io (bool)   : default=0 value=0

$ cat /sys/devices/virtual/video4linux/video1/format
GREY?30:1280x1024@30

I expect 60 fps.
If i set :
$ v4l2-ctl -d /dev/video1 -p 60
or
$ v4l2-ctl -d /dev/video1 -p 1
It doesn't change anything.
Do you know if there is a possibility to get this frame rate (60 fps) ?
Is it a limitation using videoloopback ?
For info, i get 60 fps when I use the application streamViewer.
++

Jack


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


Re: [PD] [PD-announce] pd 0.45 test release

2013-08-18 Thread Jack
Le 18/08/2013 03:51, Miller Puckette a écrit :
 Hi all,

 Pd 0.45-0test1 is now up on http://crca.ucsd.edu/~msp/software.htm
 or via git from sourceforge:
   git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data
   git checkout 0.45-0test1


 Some new features:

 binary netsend/netreceive (so you should no longer need an extern for OSC)

 pd~ (multiprocessing) works on windows and is less likely to deadlock although
 not yet perfect

 multi-purpose array and text objects.  Array is a more general
 replacement for the table, tabread and tabwrite obejcts.  text is
 sort of like Max's coll but simpler and hopefully more powerful.

 texts are also avaioable as fields in data structures.

 tempo messages for delay, metro, timer, and test sequence.  In particular
 you can specify or measure time in samples, but you can also use this for
 changing the speed of an ensemble of delay loops while keeping them in sync.

 Objects/messages/comments have settable box widths.  

 Also various improvements in audio and midi handling:

 The Pd window now tells you whether PD has an audio device open or not

 Fixed hangups exiting when using jack

 Got ASIO working again on PC (it was apparently broken; I don't know for how
 long.)

 cheers
 Miller

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

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

Hello Miller,

I get errors after :
$ sudo make install
...
make install-data-hook
make[5]: Entering directory
`/home/jack/Téléchargements/pd-0.45-0test1/extra/expr~'
cd /usr/local/lib/pd/extra/expr~  ( \
ln -s expr~.pd_linux expr.pd_linux; \
ln -s expr~.pd_linux fexpr~.pd_linux; \
cd ..; \
ln -s expr~/expr.pd_linux expr.pd_linux; \
ln -s expr~/expr~.pd_linux expr~.pd_linux; \
ln -s expr~/fexpr~.pd_linux fexpr~.pd_linux; \
ln -s expr~/expr-help.pd expr-help.pd; \
ln -s expr~/expr-help.pd expr~-help.pd; \
ln -s expr~/expr-help.pd fexpr~-help.pd; \
)
ln: failed to create symbolic link ‘expr.pd_linux’: File exists
ln: failed to create symbolic link ‘fexpr~.pd_linux’: File exists
ln: failed to create symbolic link ‘expr.pd_linux’: File exists
ln: failed to create symbolic link ‘expr~.pd_linux’: File exists
ln: failed to create symbolic link ‘fexpr~.pd_linux’: File exists
ln: failed to create symbolic link ‘expr-help.pd’: File exists
ln: failed to create symbolic link ‘expr~-help.pd’: File exists
ln: failed to create symbolic link ‘fexpr~-help.pd’: File exists
make[5]: *** [install-data-hook] Error 1
make[5]: Leaving directory
`/home/jack/Téléchargements/pd-0.45-0test1/extra/expr~'
make[4]: *** [install-data-am] Error 2
make[4]: Leaving directory
`/home/jack/Téléchargements/pd-0.45-0test1/extra/expr~'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/jack/Téléchargements/pd-0.45-0test1/extra/expr~'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/jack/Téléchargements/pd-0.45-0test1/extra'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/jack/Téléchargements/pd-0.45-0test1'
make: *** [install] Error 2

My system :
Ubuntu 13.04
Linux jack-GE60-0NC-0ND 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9
00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
++

Jack



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


Re: [PD] [PD-announce] pd 0.45 test release

2013-08-18 Thread Jack
Le 18/08/2013 03:51, Miller Puckette a écrit :
 Hi all,

 Pd 0.45-0test1 is now up on http://crca.ucsd.edu/~msp/software.htm
 or via git from sourceforge:
   git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data
   git checkout 0.45-0test1


 Some new features:

 binary netsend/netreceive (so you should no longer need an extern for OSC)

 pd~ (multiprocessing) works on windows and is less likely to deadlock although
 not yet perfect

 multi-purpose array and text objects.  Array is a more general
 replacement for the table, tabread and tabwrite obejcts.  text is
 sort of like Max's coll but simpler and hopefully more powerful.

 texts are also avaioable as fields in data structures.

 tempo messages for delay, metro, timer, and test sequence.  In particular
 you can specify or measure time in samples, but you can also use this for
 changing the speed of an ensemble of delay loops while keeping them in sync.

 Objects/messages/comments have settable box widths.  

 Also various improvements in audio and midi handling:

 The Pd window now tells you whether PD has an audio device open or not

 Fixed hangups exiting when using jack

 Got ASIO working again on PC (it was apparently broken; I don't know for how
 long.)

 cheers
 Miller

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

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

Re-hello Miller,

In your help patch about [delay], when you write about 'tempo' :
In this example the unit is set to 1/2 millisecond so that '1000' gives
a delay of 2000 msec (2 seconds).
This should give a 500 ms instead 2000 ms, or i am wrong ?
++

Jack




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


Re: [PD] msgfile and commas

2013-07-31 Thread Jack
Le 31/07/2013 11:11, James Dunn a écrit :
 What about something like this?

 Quoth Max, on 30/07/2013 23:57:
 another escaping problem:
 any idea how the comma could be displayed correctly?



 ___
 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

Since a while now, [text3d] accepts the 'string' method.
So it is possible to simplify the patch using this message.
See example attached.
++

Jack




comma-msgfile-test.pd
Description: application/puredata
hello, world___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM question

2013-07-21 Thread Jack
Le 21/07/2013 13:19, Fero Kiraly a écrit :
 hi friends,

 can I effectize whole GEM output at once?

 I mean like data flow in audio processing.

 for example: make 3 squares and then use on whole GEM screen
 [pix_scanline] box.
  I am not sure if I've explained it well..

 fero


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

You have two possibilities to do that :
1) Use [pix_snap] to capture a part of the frame buffer and then apply
[pix_scanline]. This method is the simplest but could be slow for your
hardware.
2) Use [gemframebuffer] to render off-screen and convert this
framebuffer into texture. Then use shaders (GLSL) to perform a
[pix_scanline] like. Try this method if the first is too slow.
++

Jack


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


Re: [PD] remove space between list

2013-07-10 Thread Jack
Le 11/07/2013 01:51, giuliano obici a écrit :
 Hi everyone

 Someone know how to merge a list of symbol (words) in a list removing
 the space between?

 no list2symbol
 no $1$2$3...

 I have a leng list of symbols and I would merge them in one simple world

 something like this example would be perfect

 somethinglikethisexamplewouldbeperfect

 best

 Giuliano

 -- 
 http://giulianobici.com
 http://n-1.art.br
 +49 0176 74198553


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

Hello,

You can do it with [makefilename], see example attached.
++

Jack




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


Re: [PD] GEM: texture on transparent sphere visible from opposite side

2013-06-11 Thread Jack
Le 09/06/2013 08:48, Matthias Kronlachner a écrit :
 On 6/8/13 5:20 PM, Claude Heiland-Allen wrote:
 Hi,

 On 08/06/13 14:48, Matthias Kronlachner wrote:
 i have a texture on a sphere and slightly add transparency to the
 sphere.
 i can now see objects behind the sphere, but is it possible to make the
 texture of the opposite side of the sphere visible? (through the
 (semitransparent) front side of the sphere)
 Short answer: no.

 Long answer: no, because transparency and OpenGL don't quite get along
 as nicely as you might expect.  Rendering order (of every triangle that
 makes up every object) matters a great deal.  Transparency involves
 blending the current triangle with whatever is behind it. OpenGL uses
 its depth buffer to keep track of what's been drawn and how far away it
 is at each pixel - keeping only the nearest value - whether it was
 rasterized before or after the previous triangle.  You need to draw
 non-transparent stuff first, then sort every transparent triangle into
 depth order, possiby splitting up any transparent triangles that
 intersect each other into smaller triangles, then render them in order
 urthest from camera first, nearest to camera last.  I'm pretty sure that
 Gem doesn't support depth sorting.

 You might be able to hack it and get something that looks mostly ok some
 of the time by rotating the sphere to change the depth order vs render
 order of the triangles making up the sphere, but it will be very
 fragile...


 Claude
 thanks, i was expecting something like this.
 i guess i will think about an alternative approach to that instead of
 hacking around with depth sorting and rendering order within a single
 geometric object.

 matthias


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

Hello,

I think it should be doable using culling (GL_FRONT and GL_BACK). But,
in this case, you need to render two times the sphere (one with culling
GL_FRONT and the other with culling GL_BACK) and then adjust alpha
between them.
++

Jack



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


Re: [PD] parsing XML

2013-06-11 Thread Jack
Le 11/06/2013 13:56, Iain Mott a écrit :
 Hi list,

 I have a string2any object which is outputting XML that mostly looks
 like this when sent to a print object:

 print: updatesource id='1' level='-86.6183'//update
 print: updatesource id='1' level='-87.9314'//update
 print: updatesource id='1' level='-85.5559'//update
 print: updatesource id='1' level='-83.4277'//update
 print: updatesource id='1' level='-83.5981'//update

 etc.

 My patch doesn't need this information, only 'position' information, and
 when something important happens, data with x and y coordinates is
 outputted by string2any like this:


 print: updatesource id='1'position x='1.19286'
 y='0.992857'//source/update
  
 My patch needs to extract the x and y values as floats.

 I'm a bit rusty with Pd and I've not been able to work out how to do
 this. Can anyone please suggest what externals/techniques to use?

 Thanks!

 Iain


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
Maybe, something like that could help ?
(patch attached to this mail).
++

Jack




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


Re: [PD] multiblob tracking in Gem while objects keep their IDs

2013-06-06 Thread Jack
Le 05/06/2013 22:17, Max a écrit :
 wow, this looks so wrong! (your screenshot)
 I have no idea why this is.

 I just tried it under Linux mint 15 (through ssh- XY from os x)

 Pd 0.43.2
 GEM: ver: 0.93.3 
 GEM: compiled: Sep  6 2012

 and it works perfectly there.

 on my other machine, os x
 0.44.0-extended-20130213
 GEM: ver: 0.93.3 
 GEM: compiled: Nov 10 2011

 it also runs nicely.

 I'm afraid I don't know why it isn't running on your machine.
 can anyone else try it?

 max


 Am 04.06.2013 um 13:38 schrieb Antoine Villeret antoine.ville...@gmail.com:

 hi,

 2013/6/2 Max abonneme...@revolwear.com

 Am 30.05.2013 um 14:06 schrieb Antoine Villeret antoine.ville...@gmail.com:

 hi,

 I'm sorry it still doesn't work
 and I can't find values that works well on the testbed.mov video...

 I don't know why, tell me if you want more info or snapshots
 Did you download all of the files, especially the abstractions you'll need 
 for 07b-multi-blobtracker-IDs.pd?
 i've cloned the Bewegungsmelder repository 
 Were there any messages, errors, warnings in the console?
 nothing explaining that in the console, nothing in the terminal

 with quicktime4linux or gmerlin backend :
 [pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder
 [pix_film]: loaded file: /home/antoine/pd/Bewegungsmelder/testbed.mov with 
 623 frames (480x320) at 25.00 fps



 What OS and Pd/Gem version are you using?
 Ubuntu 12.04
 Pd 44.2
 Gem  0.93.git f890f4d

 here is attached a screenshot of what i get

 I was guessing a video decompression artefact but I got the same result with 
 all the backends I have that can open testbed.mov (quicktime4linux and 
 gmerlin)
 but I got the same result with both...

 I also converted the video to mjpeg and to h264 and got the same...
 very strange...

 +
 a

 m.

 Capture du 2013-06-04 13:06:45.png
Hello Max,

I have the same results than Antoine.
A screenshot is attached.
Configuration :
Ubuntu 13.04, Pd 0.44.3, Gem ver: 0.93.git 374f713.
++

Jack


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


Re: [PD] ubutu 13.04

2013-06-06 Thread Jack
Le 01/05/2013 10:01, Cyrille Henry a écrit :
 hello,

 there always been problem with nvidia proprietary driver. On 12.10, i
 was not able to start audacity.
 i don't know about skype.

 i think i read somwhere that the intel GPU drivers was completely
 rewriten, so that's certainly the cause of the bug. since it affect
 lot's of people i hope that the ubuntu team will find a workaround or
 jump back to the old version quite quickly.

 but yes, the wait few weeks before updating rules is still valid.

 cheers
 c


 Le 30/04/2013 20:12, Miller Puckette a écrit :
 ... so it sounds like there are at least 2 serious problems with the new
 ubuntu affecting several applications - maybe a bit tighter quality
 control
 is needed on their end :)

 M

 Here with (to use Intel graphics):
 $ skype
 it is OK.

 But with (to use NVidia):
 $ optirun skype
 Skype crash.

 But with Pd, it is different : Pd crash X server even with or without
 optirun as describe Cyrille in his previous message (when you open a
 big
 (?) patch and start to add object that contains more than 3 letters).
 If you start a patch from scratch, you can create several objects
 without problem...

 My configuration :
 Pd-0.44.3 () compiled 11:55:24 Apr 29 2013
 Ubuntu 13.04
 Linux jack-GE60-0NC-0ND 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17
 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
 ++

 Jack



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

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


Someone has found a solution for this X crash ?
++

Jack



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


Re: [PD] how to kill all [shell]'s child before quitting Pd

2013-05-28 Thread Jack
Le 28/05/2013 20:14, Antoine Villeret a écrit :
 hi, 

 I'm calling a new instance of Pd inside a Pd patch with [shell]
 but I notice I can't quit the main pd instance if a process is still
 running inside the [shell]

 the GUI hangs until the process ends (until I quit Pd)
 since the child pd is running without gui, 

 1) is it possible to exit a running process via [shell] ?
 for example how could I send a ^c (ctrl+c) command ?

 2) moreover, how to trig it when I press ctrl+Q or menu quit ?

 3) the [noquit] abstraction gives me a tcl error : can't rename
 menu_quit command doesn't exists

 I'm running pd vanilla 0.44-2

 thanks for help

 antoine

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


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

With the message [pd  echo $!( to [shell], you should get the PID of
the subprocess. A [kill number_PID( to [shell] should kill this subprocess.
++

Jack


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


Re: [PD] multiblob tracking in Gem while objects keep their IDs

2013-05-27 Thread Jack
Le 27/05/2013 04:10, Max a écrit :
 Am 27.05.2013 um 02:57 schrieb Jack j...@rybn.org:

 Le 27/05/2013 02:32, Max a écrit :
 Am 27.05.2013 um 02:24 schrieb Jack j...@rybn.org:

 Le 27/05/2013 01:26, Max a écrit :
 Am 27.05.2013 um 01:00 schrieb Jack j...@rybn.org:
 Le 26/05/2013 20:56, Max a écrit :
 hi list, a student of mine, Jakob Gomoll, did solve how to track 
 multiple blobs while every blob keeps its ID.
 Here is where i scratch my head: It works fine until you render the 
 output of the multiblob tracker to a rectangle.
 I'd like to understand why this is.

 Is it a bug or a feature?
 connect the tracker to the pix_texture (where the red line is) and it 
 will mess up the result:

 Hello Max,
 This could be interesting for you :
 http://www.mail-archive.com/pd-list@iem.at/msg42343.html
 Thanks Jack,
 I know – I have posted on this thread too. We solved this problem 
 differently. Because our application was microscopy and we had specimen 
 who were stopping their movement for a while before moving on, the 
 continuity approach wasn't working. Since we based the blob detection on 
 frame differences [pix_movement] rather than background subtraction from 
 a reference frame [pix_background] blobs who were resting for a few 
 frames simply disappeared and got a new ID assigned.
 Our approach is to set a time-out after we declare a blob dead. If it 
 starts moving in the same region (size is settable too) again before the 
 time-out, we pick up the old ID. So rather than using movement vectors as 
 reference we used proximity. All data is stored in tables.

 The patch works beautifully without any externals. Have you tried?

 So this problem is already solved - my question was rather a Gem thing: 
 why does is stop working when I want to render the image behind it? Do 
 you know this?

 Max

 Sorry, i didn't see your patch in your previous post.
 If I try to open it, i get :
 arraysize blob_ids
 ... couldn't create

 What is [arraysize] ?
 oh, darn - seems it isn't completely vanilla then. it is an external by 
 Juha Vehviläinen
 http://puredata.info/downloads/arraysize
 Ah ok, maybe with [expr size(table_name)].
 About the problem : you need to render the [rectangle] before draw_blobs.
 See the patch attached…
 thank you jack (but still scratching my head why exactly that is, will 
 revisit tomorrow).
 updated here: https://github.com/mxa/Bewegungsmelder

Hello Max,

In your patch, you need to put the crosses on the rectangle showing
movement. These crosses and rectangle are in the same plan. Therefore,
you need to render, first, the rectangle and after the crosses.
Inside the subpatch draw_blob, you have a [gemhead 90], which one is
banged each time it has a cross to render. But, this [gemhead 90] is
rendered many times (or not) during your main [gemhead] (in the main
windows).
If you open the subpatch draw_blob, you can see that i add a
[loadbang] and a [0 ( to stop the render of [gemhead 90] each frame,
because the render is forced (many times or not) by a bang from the main
[gemhead] and because you needn't to render this [gemhead 90] during the
'normal' render cycle.
You can easily replace [gemhead 90] with [gemhead 10] and get exactly
the same result.
If you want, it should be possible to replace this [gemhead 90] with a
[gemlist].
Hope the explanations are clear. I give here a small example to understand.
++

Jack




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


Re: [PD] Pd crash at startup with Ubuntu 13.04

2013-04-30 Thread Jack
Le 29/04/2013 12:26, Jack a écrit :
 Hello,

 I have installed Ubuntu 13.04 and Pd-0.44.3.
 When i start Pd, Pd crash at startup.
 If someone can help me to sove this problem...
 Here the output with valgrind :

 $ valgrind pd
 ==18223== Memcheck, a memory error detector
 ==18223== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
 ==18223== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
 ==18223== Command: pd
 ==18223==
 ==18223== Invalid read of size 1
 ==18223==at 0x5D19040: vfprintf (vfprintf.c:1655)
 ==18223==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
 ==18223==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
 ==18223==by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
 ==18223==at 0x4C2BA6C: free (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==18223==by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==
 ==18223== Invalid read of size 1
 ==18223==at 0x5D48AB0: _IO_default_xsputn (genops.c:476)
 ==18223==by 0x5D18FFE: vfprintf (vfprintf.c:1655)
 ==18223==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
 ==18223==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
 ==18223==by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
 ==18223==at 0x4C2BA6C: free (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==18223==by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==
 ==18223== Invalid read of size 1
 ==18223==at 0x5D48AC2: _IO_default_xsputn (genops.c:475)
 ==18223==by 0x5D18FFE: vfprintf (vfprintf.c:1655)
 ==18223==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
 ==18223==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
 ==18223==by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==  Address 0x698d29a is 42 bytes inside a block of size 376 free'd
 ==18223==at 0x4C2BA6C: free (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==18223==by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==
 ==18223== Invalid read of size 1
 ==18223==at 0x5D19040: vfprintf (vfprintf.c:1655)
 ==18223==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
 ==18223==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
 ==18223==by 0x4DC6B9: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
 ==18223==at 0x4C2BA6C: free (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==18223==by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
 ==18223==by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
 ==18223==by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
 ==18223==by 0x482438: sys_main (in /usr/local/bin/pd)
 ==18223==by 0x5CEDEA4: (below main) (libc-start.c:260)
 ==18223==
 ==18223== Invalid read of size 1
 ==18223==at 0x5D19040: vfprintf (vfprintf.c:1655)
 ==18223==by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
 ==18223==by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
 ==18223==by 0x4DC6D8: alsa_getdevs

Re: [PD] ubutu 13.04

2013-04-30 Thread Jack
Le 30/04/2013 18:19, Max a écrit :
 the related bugreport:
 https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-310/+bug/1134030


 Am 30.04.2013 um 18:08 schrieb Miller Puckette m...@ucsd.edu:

 This is anecdotal, but Max Neupert told me yesterday that he installed
 13.04 on a machine and found that he could no longer run skype.  Apparently
 the proprietary nvidia driver is to blame.  So if you have nvidia graphics
 (no matter what kind of CPU) beware!

 Miller

 On Tue, Apr 30, 2013 at 02:35:12PM +0200, stéfan piat wrote:
 hello, I can confirm this bug, (intel GPU + xubuntu 13.04)
 but this crash occured to me not only with pd :
 random loggofs whith random apps (or browsing folders from thoses apps)



 2013/4/30 Cyrille Henry c...@chnry.net


 Le 30/04/2013 14:05, me.grimm a écrit :

 hmmm all is ok on my 13.04 installs.
 but im running pd-extended ... maybe the reason?

 well, it's a Xorg crash.not a pd crash.
 do you have an intel GPU?


 c


 m

 On Tue, Apr 30, 2013 at 5:49 AM, Cyrille Henry c...@chnry.net wrote:

 hello,

 for ubuntu user : don't update to 13.04!

 on my computer and also on jack computer, pd can crash X server.
 when creating an object, the 4th letter typed on a object box make the
 screen goes black and the login screen to appear after few seconds...

 cheers
 c



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




 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list 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

Here with (to use Intel graphics):
$ skype
it is OK.

But with (to use NVidia):
$ optirun skype
Skype crash.

But with Pd, it is different : Pd crash X server even with or without
optirun as describe Cyrille in his previous message (when you open a big
(?) patch and start to add object that contains more than 3 letters).
If you start a patch from scratch, you can create several objects
without problem...

My configuration :
Pd-0.44.3 () compiled 11:55:24 Apr 29 2013
Ubuntu 13.04
Linux jack-GE60-0NC-0ND 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17
18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
++

Jack



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


  1   2   3   4   5   6   7   8   9   >