Re: [PD] Tidy question

2009-06-01 Thread Jonathan Wilkes

Thanks, I've got a "Frankenstein" version working. I had to create 
a "lib" folder and put the tcl/tk folders in it because it's not
finding mingw/lib, and I had to copy stuff from pd/obj into pd/bin
manually.

Here's the settings I'm trying in g_editor.c:
#define XTOLERANCE 18
#define YTOLERANCE 17
#define NHIST 35

This gives reasonable results, certainly better than the defaults.  
X and YTOLERANCE are still low enough that vertical selections stay 
vertical, and horizontal ones stay horizontal (unless the objects 
overlap, which they shouldn't in the first place.).

NHIST sets the minimum vertical distance between logical groups of 
objects.  It's normally 15, so if there's more than 15 pixels 
separating the bottom of one object from the top of another, it 
won't line them up vertically.  Obviously I like to "tidy up" one
group at a time, but maybe these should be customizable...

Would be nice to have a keyboard shortcut for this in the future 
(CTRL+Y?)

-Jonathan

--- On Mon, 6/1/09, Hans-Christoph Steiner  wrote:

> From: Hans-Christoph Steiner 
> Subject: Re: [PD] Tidy question
> To: "Jonathan Wilkes" 
> Cc: pd-list@iem.at
> Date: Monday, June 1, 2009, 6:13 PM
> 
> On May 29, 2009, at 5:32 PM, Jonathan Wilkes wrote:
> 
> >
> >
> >
> > --- On Fri, 5/29/09, Hans-Christoph Steiner 
> wrote:
> >
> >> From: Hans-Christoph Steiner 
> >> Subject: Re: [PD] Tidy question
> >> To: "Jonathan Wilkes" 
> >> Cc: pd-list@iem.at
> >> Date: Friday, May 29, 2009, 4:37 PM
> >>
> >> On May 29, 2009, at 4:17 AM, Jonathan Wilkes
> wrote:
> >>
> >>>
> >>>
> >>>
> >>> --- On Thu, 5/28/09, Hans-Christoph Steiner
> 
> >> wrote:
> >>>
>  From: Hans-Christoph Steiner 
>  Subject: Re: [PD] Tidy question
>  To: "Jonathan Wilkes" 
>  Cc: pd-list@iem.at
>  Date: Thursday, May 28, 2009, 4:06 PM
> 
>  Sounds worth trying, I haven't
> myself.  We've
> >> recently
>  done some work on the whole MinGW build
> >> environment and docs
>  so it should be relatively straightforward
> to get
>  going.  If you just want to build Pd,
> then
> >> its much
>  easier.  Most of the build
> environment setup
> >> is for all
>  the libs, which Pd itself doesn't need.
> 
>  http://puredata.info/docs/developer/mingw
> >>>
> >>> I don't understand the final step under the
> heading
> >> "Building
> >>> Pd-extended with MinGW".  Am I supposed
> to be in
> >> a msys shell
> >>> or cygwin?  Because the "svn" command
> only works
> >> in cygwin.
> >>
> >> The final step is to get the whole source tree
> for
> >> Pd-extended then
> >> build just Pd (not the whole package).  The
> 'svn' part
> >> can be run in
> >> Cygwin.  You can install a MSYS svn or you
> can add
> >> Cgywin to the path
> >> (last, so the MSYS always task precedence) then
> you can use
> >> the Cygwin
> >> svn in MSYS.  The "make -f makefile.mingw"
> must be run
> >> in MSYS.
> >>
> >> .hc
> >
> > Ok, now I'm building in msys but getting the
> mysterious message:
> > make: *** No rule to make target
> `/usr/include/stdlib.h', needed by
> > `g_canvas.o'.  Stop.
> >
> > I'm using your mingw installation, and stdlib.h
> definitely exists.
> > Any ideas on why it's not pointing to the right
> place?
> 
> Try deleting "makefile.dependencies" :
> 
> http://lists.puredata.info/pipermail/pd-dev/2007-12/010313.html
> 
> .hc
> 
> 
> >
> >
> > -Jonathan
> >
> >>
> >>
> >>>
> >>>
> >>> -Jonathan
> >>>
> 
>  .hc
> 
>  On May 28, 2009, at 12:00 AM, Jonathan
> Wilkes
> >> wrote:
> 
> >
> > Hi list,
> >       Has
> anyone ever tried
>  increasing the values for XTOLERANCE and
> > YTOLERANCE in g_editor.c to improve
> the
> >> usefulness of
>  "Tidy Up"?
> >
> > Like maybe jacking both values up to
> 14, for
>  example?  Currently,
> > objects have to be within 4 vertical
> or 3
> >> horizontal
>  pixels of each
> > other for "tidy up" to do anything at
> all.
> >
> > I would try it myself but I'm on
> windows and
> >> haven't
>  yet investigated
> > the whole build process.
> >
> > Thanks,
> > Jonathan
> >
> >
> >
> >
> >
> >> ___
> > Pd-list@iem.at
>  mailing list
> > UNSUBSCRIBE and account-management
> -> http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> 
> >>
> 
> 
>  News is what people want to keep hidden
> and
> >> everything else
>  is publicity.       
>   -
> >> Bill
>  Moyers
> 
> 
> 
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>
> 
> >>
> >> There is no way to peace, peace is the way.
> >>    -A.J. Muste
> >>
> >>
> >>
> >
> >
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> "It is convenient to imagine a power bey

Re: [PD] Slow cpu/RJDJ patching approach ...

2009-06-01 Thread Max

btw is there a way for the patch to know if it's in -nogui mode?


Am 31.05.2009 um 09:10 schrieb Roman Haefeli:


On Tue, 2009-05-26 at 17:07 -0400, Hans-Christoph Steiner wrote:

On May 25, 2009, at 9:17 PM, danomatika wrote:



I don't really need an accelerated gui as I like what Pd has now, I
just think these basic elements should not peg the cpu in -nogui
mode.  That way I can work in a nice graphical environment to create
the patches, then run said patches in the minimal environment and
not get penalized for using gui objects/parameters.


why aren't you putting a:


[r NOGUI]
 |
[spigot]

in front of every gui object?


don't get me wrong, i am not saying, that i wouldn't like to see that
automatically happen in pd, when used in -nogui mode, but until this  
is

implemented, this might be an approach for a workaround.


roman




PGP.sig
Description: Signierter Teil der Nachricht
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


[PD] multiple fluid~ using 1 .sf2

2009-06-01 Thread patrick

hi,

i would like to load one big (140mb) .sf2 in six [fluid~].

i was searching the pd mailing-list archive and found this thread (from 
2004): http://lists.puredata.info/pipermail/pd-list/2004-03/018448.html


it is implemented?
pat

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


Re: [PD] webcam problem in Gem with Ubuntu Intrepid/Pd-extended 0.41.4-rc3

2009-06-01 Thread abonnements-olivier
Thank you Iohannes for pointing out the low-level side-effects and
glitches/potentiality eg. hard-disk instead of a webcam. Once again,  an
experimental system (jaunty with libv4l-dev) against a stable one
(hardy) is a hard choice. 

Havent grilled any cat yet, but must be tasty!
++
OH

On lun, 2009-06-01 at 17:10 +0200, IOhannes m zmölnig wrote:
> abonnements-olivier wrote:
> > 
> > and for the next session
> > echo "export LD_PRELOAD=/usr/local/lib/libv4l1/v4l1compat.so" >> ~/.bashrc
> > 
> 
> actually i would not recommend this.
> LD_PRELOAD seriously interferes with how application linking works (and 
> is therefore usually discouraged); the sole purpose of it is to allow 
> library calls be intercepted and provided by a different backend, 
> something useful when doing debugging or swapping a backend for a single 
> application (like chromium does with openGL apps; or libv4l-compat in 
> our case).
> 
> otoh, the only thing that libv4l compat can actually intercept is calls 
> to ioctl(), which is deep on the kernel-side. overriding ioctl for each 
> and every application is probably really not what you want.
> apart from slowing everything down (as it wraps a system call!), you 
> might turn otu seeing your harddisk as a webcam. probably nice pictures, 
> but bad data.
> (surely libv4l-devs are trying to do everything to not do any harm when 
> wrapping system calls; but they will most likely have bugs in their code 
> as everybody)
> 
> thus the way to go, is to compile an application with native libv4l support.
> 
> anyhow, i just wanted to point out, that people here are lately 
> suggesting a log of brute force "solutions", which might work fine but 
> nevertheless i think it would be proper to warn anybody that they might 
> just grill their cat.
> 
> fgmasdr
> IOhannes
> 


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


Re: [PD] wiimote problems

2009-06-01 Thread Hans-Christoph Steiner


There is aka.wiiremote in SVN, you'll have to build it.  its in  
externals/io/aka.wiiremote.  It should work on a basic level.


.hc

On May 30, 2009, at 9:05 AM, Luigi wrote:


Hi phillip

i do not think there is a runing wiimote external out there for osx.

If thats not the case, i would be very interested in this object.

I guess you have to either use OSCulator (which i preferred over  
Darwiinremote)


Or look at Junxion on the steim - page

http://www.steim.org/steim/junxion_v4.html

Am 30.Mai.09 um 30.Mai.09 MESZ 13:53 schrieb philippe boisnard:




Le 30 mai 09 à 13:06, Andrew Faraday a écrit :


Hey guys

I've looked at old forum and mailing list entries and it seems all  
the links given are out of date.


I need to get data from a wii remote into pd in OSX. I've seen the  
[wiimote] object operating before now but I can't find where to  
download it.


I've also downloaded Darwiinremote, which is synching but I don't  
know how I could get that data into PD.


God Bless

Andrew

Surfing the web just got more rewarding. Download the New Internet  
Explorer 8___

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


--->>--

Dipl-Toning.(FH) Luigi Rensinghoff
mobil: 0177-5412191
skype: gigischinke
luigi.rensingh...@freenet.de




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






Using ReBirth is like trying to play an 808 with a long stick.- 
David Zicarelli



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


Re: [PD] Tidy question

2009-06-01 Thread Hans-Christoph Steiner


On May 29, 2009, at 5:32 PM, Jonathan Wilkes wrote:





--- On Fri, 5/29/09, Hans-Christoph Steiner  wrote:


From: Hans-Christoph Steiner 
Subject: Re: [PD] Tidy question
To: "Jonathan Wilkes" 
Cc: pd-list@iem.at
Date: Friday, May 29, 2009, 4:37 PM

On May 29, 2009, at 4:17 AM, Jonathan Wilkes wrote:





--- On Thu, 5/28/09, Hans-Christoph Steiner 

wrote:



From: Hans-Christoph Steiner 
Subject: Re: [PD] Tidy question
To: "Jonathan Wilkes" 
Cc: pd-list@iem.at
Date: Thursday, May 28, 2009, 4:06 PM

Sounds worth trying, I haven't myself.  We've

recently

done some work on the whole MinGW build

environment and docs

so it should be relatively straightforward to get
going.  If you just want to build Pd, then

its much

easier.  Most of the build environment setup

is for all

the libs, which Pd itself doesn't need.

http://puredata.info/docs/developer/mingw


I don't understand the final step under the heading

"Building

Pd-extended with MinGW".  Am I supposed to be in

a msys shell

or cygwin?  Because the "svn" command only works

in cygwin.

The final step is to get the whole source tree for
Pd-extended then
build just Pd (not the whole package).  The 'svn' part
can be run in
Cygwin.  You can install a MSYS svn or you can add
Cgywin to the path
(last, so the MSYS always task precedence) then you can use
the Cygwin
svn in MSYS.  The "make -f makefile.mingw" must be run
in MSYS.

.hc


Ok, now I'm building in msys but getting the mysterious message:
make: *** No rule to make target `/usr/include/stdlib.h', needed by
`g_canvas.o'.  Stop.

I'm using your mingw installation, and stdlib.h definitely exists.
Any ideas on why it's not pointing to the right place?


Try deleting "makefile.dependencies" :

http://lists.puredata.info/pipermail/pd-dev/2007-12/010313.html

.hc





-Jonathan







-Jonathan



.hc

On May 28, 2009, at 12:00 AM, Jonathan Wilkes

wrote:




Hi list,
  Has anyone ever tried

increasing the values for XTOLERANCE and

YTOLERANCE in g_editor.c to improve the

usefulness of

"Tidy Up"?


Like maybe jacking both values up to 14, for

example?  Currently,

objects have to be within 4 vertical or 3

horizontal

pixels of each

other for "tidy up" to do anything at all.

I would try it myself but I'm on windows and

haven't

yet investigated

the whole build process.

Thanks,
Jonathan






___

Pd-list@iem.at

mailing list

UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list









News is what people want to keep hidden and

everything else

is publicity.  -

Bill

Moyers













There is no way to peace, peace is the way.
   -A.J. Muste

















"It is convenient to imagine a power beyond us because that means we  
don't have to examine our own lives.", from "The Idols of  
Environmentalism", by Curtis White






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


Re: [PD] webcam problem in Gem with Ubuntu Intrepid/Pd-extended 0.41.4-rc3

2009-06-01 Thread IOhannes m zmölnig

abonnements-olivier wrote:


and for the next session
echo "export LD_PRELOAD=/usr/local/lib/libv4l1/v4l1compat.so" >> ~/.bashrc



actually i would not recommend this.
LD_PRELOAD seriously interferes with how application linking works (and 
is therefore usually discouraged); the sole purpose of it is to allow 
library calls be intercepted and provided by a different backend, 
something useful when doing debugging or swapping a backend for a single 
application (like chromium does with openGL apps; or libv4l-compat in 
our case).


otoh, the only thing that libv4l compat can actually intercept is calls 
to ioctl(), which is deep on the kernel-side. overriding ioctl for each 
and every application is probably really not what you want.
apart from slowing everything down (as it wraps a system call!), you 
might turn otu seeing your harddisk as a webcam. probably nice pictures, 
but bad data.
(surely libv4l-devs are trying to do everything to not do any harm when 
wrapping system calls; but they will most likely have bugs in their code 
as everybody)


thus the way to go, is to compile an application with native libv4l support.

anyhow, i just wanted to point out, that people here are lately 
suggesting a log of brute force "solutions", which might work fine but 
nevertheless i think it would be proper to warn anybody that they might 
just grill their cat.


fgmasdr
IOhannes


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


[PD] standard deviation

2009-06-01 Thread cyrille henry

hello,

i've made an abstraction that compute the standard deviation of a list.
i think it would go well in your list-abs collection. 
ok to include it?


Cyrille

#N canvas 0 0 607 413 10;
#X obj 40 46 inlet;
#X obj 40 217 sqrt;
#X obj 40 238 outlet;
#X obj 114 93 list-mean;
#X obj 40 114 list-math -;
#X obj 40 155 list-math pow 2;
#X obj 40 175 list-accum;
#X obj 40 67 t l l l;
#X obj 197 91 list length;
#X obj 40 196 /;
#X obj 40 135 list-abs;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 3 0 4 1;
#X connect 4 0 10 0;
#X connect 5 0 6 0;
#X connect 6 0 9 0;
#X connect 7 0 4 0;
#X connect 7 1 3 0;
#X connect 7 2 8 0;
#X connect 8 0 9 1;
#X connect 9 0 1 0;
#X connect 10 0 5 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] webcam problem in Gem with Ubuntu Intrepid/Pd-extended 0.41.4-rc3

2009-06-01 Thread abonnements-olivier
On jeu, 2009-05-28 at 10:40 -0400, Hans-Christoph Steiner wrote:
> On May 28, 2009, at 10:08 AM, IOhannes m zmoelnig wrote:
> 
> > Hans-Christoph Steiner wrote:
> >> Is there something that can be done in Pd-extended to make this  
> >> work?  Should all of the build farm machines have libv4l-dev  
> >> installed?
> >
> > yep.
> > though i seem to remember that there were some problems with older  
> > versions of libv4l (no idea, which exact version though; might be  
> > very early versions, like 0.1).
> >
> > for the future, libv4l is definitely the way to go on linux.
> 
> Ok I installed libv4l-dev(el) on Debian/testing, Ubuntu/Intrepid,  
> Ubuntu/Jaunty, and Fedora 9.  The other distros didn't have it.   It  
> was version 0.5.[789]

Hello, 

I just managed to install v4l on Ubuntu Hardy


I downloaded
libv4l-0.5.98.tar.gz from this URL http://people.atrpms.net/~hdegoede/ 

tar xvzf libv4l-0.5.98.tar.gz
make

then I copied the libs to /usr/local/lib

and redefined the variable

export LD_PRELOAD=/usr/local/lib/libv4l.0.5.98/libv4l1/v4l1compat.so

and for the next session
echo "export LD_PRELOAD=/usr/local/lib/libv4l1/v4l1compat.so" >> ~/.bashrc

Works fine with a Logitech Quickcam Communicate STX

++
OH


> 
> 
> Using ReBirth is like trying to play an 808 with a long stick.- 
> David Zicarelli
> 
> 
> 
> ___
> 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/gem dumb polygon question

2009-06-01 Thread CICCOLIX

cyrille henry ha scritto:
you can draw picture (pix_image/pix_texture/rectangle), and then draw 
a transparent triangle in front of the image 
(alpha/pix_image/pix_texture/rectangle)

that would be the most simple.

Cyrille


perfect, masking is a very fast way

http://www.eyax.com/mask.jpg

tank you Cyrille
--
Lazzaro

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


Re: [PD] pd/gem dumb polygon question

2009-06-01 Thread cyrille henry



CICCOLIX a écrit :

cyrille henry ha scritto:

...

Many many thanks Cyrille, Max and Ypatios,

two triangles was the first attempt i made to build the flag
(many thank for remember me the numbers of branchs).

I can not use a set of more simple polygon to create the star because, 
in a second step of work every star mast  came
in front of the stage and show some photos and video of kids 
([pix_texture]), in this case every single shape cam with the same 
texture. The effect is nice but the content is not very clear.


A way to sum (grouping) the triangles ?

not easilly, unless you try shaders.



or is better the follows steps ?

1) texture a star (jpeg etc.) on a square
2) play with the alpha of result
3) texture the shape resultant with photo and video


you can draw picture (pix_image/pix_texture/rectangle), and then draw a 
transparent triangle in front of the image 
(alpha/pix_image/pix_texture/rectangle)
that would be the most simple.

Cyrille





Any help and/or example will be great
--
Lazzaro
p.s. apologize my poor english

___
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/gem dumb polygon question

2009-06-01 Thread CICCOLIX

cyrille henry ha scritto:

hello,



CICCOLIX a écrit :

Hi,
for my scolarsheep i would to make in Gem a animate european flag.
I'm starting from the stars.

Using polygon object seem something whose wrong, it appear nice in 
line mode but bad in fill mode.
I am the suspect  that this depends on my poor knowledge of the 
foundations of geometry :)

polygone can't have this shape.
you can make a star using triangles.
but the european flag stars have 5 branchs, not 6!

anyway, you should maybe better use a square and a texture of a star...


Cyrille

Many many thanks Cyrille, Max and Ypatios,

two triangles was the first attempt i made to build the flag
(many thank for remember me the numbers of branchs).

I can not use a set of more simple polygon to create the star because, 
in a second step of work every star mast  came
in front of the stage and show some photos and video of kids 
([pix_texture]), in this case every single shape cam with the same 
texture. The effect is nice but the content is not very clear.


A way to sum (grouping) the triangles ?

or is better the follows steps ?

1) texture a star (jpeg etc.) on a square
2) play with the alpha of result
3) texture the shape resultant with photo and video



Any help and/or example will be great
--
Lazzaro
p.s. apologize my poor english

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