Re: [PD] GEM in 10.7

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 12:17 AM, Hans-Christoph Steiner wrote:
 
 Yes, on 10.6 and 10.7 it'll compile 64-bit by default.  You can try this:
 
 ./configure CFLAGS=-arch i386 LDFLAGS=-arch i386
 

this will override all default CFLAGS and LDFLAGS, and the former might
be ignored by Gem's build process since it uses c++ and thus CXXFLAGS
will apply.

the Gem way to do this is to specify the fat architectures via configure
_flags_:
$ ./configure --enable-fat-binary=i386
will in the end create a fat binary that holds (only) i386 binaries.

fgmasr
IOhannes



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


Re: [PD] cartopol~ outputs inverted phases (bug report)

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 01:05 AM, Alexandre Torres Porres wrote:
 oops, I guess I didnt understand you then.
 
 well, I tried myself, and in max [cartopol~] matches [cartopol], That is;
 they both give same results in MAX.
 
 Now in Pd, they don't match, [cartopol~] gives inverted phases, but
 [cartopol] in Pd matches the [atas2] and [expr] versions.
 
 And the results in MAX also are in agreement to [atan2] and [expr] or
 [cartopol] in Pd.
 
 So Pd's [cartopol~] is the odd one out.

i'm not sure i can follow. i think there is still some information missing.

in Max, [cartopol~] and [cartopol] match.
in Pd, [cartopol~] and [cartopol] are inverted. this really means:
cyclone's [cartopol~] is inverted with respect to the [cartopol] you are
using.

cyclone's [cartopol~] is to match Max's [cartopol~], phase wise. if it
doesn't, then it's a bug in cyclone.

so as a first step, you should check whether they output the same in Max
and Pd/cyclone, if you send them the same input.


i don't know, where your [cartopol] implementation comes from.
if it comes from cyclone, then it must match Max's [cartopol]
implementation. if it does not, it's a bug in cyclone. if Max's
[cartopol] and [cartopol~] behave differently (which they don't), then
cyclone's implementations must behave differently as well.

however, if the [cartopol] you are using is _not_ from cyclone, this
doesn't matter at all.
e.g. zexy's [cart2pol] doesn't care at all about Max and cyclone
compatibility; i don't know whether they behave the same and if they
don't then i'm sure i wouldn't change [cart2pol]s behaviour (as it is
designed to be mathematically correct, not to be Max compatible)


fmgasdrt
IOhannes



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


Re: [PD] GEM in 10.7

2011-12-16 Thread Nicolas Montgermont

You'll also need the font library : ftgl,
that you can install with fink.
my configure line here on osx 10.6 is:
./configure 
--with-pd=/Applications/Pd-extended.app/Contents/Resources/include/pd/ 
--enable-fat-binary=i386 --with-ftgl-includes=/sw/include/ 
--with-ftgl-libs=/sw/lib/


that reminds me this page:
http://puredata.info/community/projects/software/gem/documentation/faq/how-do-you-compile-gem-on-osx
should be updated.

I can do that if you agree,
best
n

Le 16/12/11 09:27, IOhannes zmölnig a écrit :

On 12/16/2011 12:17 AM, Hans-Christoph Steiner wrote:

Yes, on 10.6 and 10.7 it'll compile 64-bit by default.  You can try this:

./configure CFLAGS=-arch i386 LDFLAGS=-arch i386


this will override all default CFLAGS and LDFLAGS, and the former might
be ignored by Gem's build process since it uses c++ and thus CXXFLAGS
will apply.

the Gem way to do this is to specify the fat architectures via configure
_flags_:
$ ./configure --enable-fat-binary=i386
will in the end create a fat binary that holds (only) i386 binaries.

fgmasr
IOhannes



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


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


Re: [PD] Wiimote, Kinect for Windows/pd

2011-12-16 Thread Richie Cyngler
Yep, I know of people who've used Glovepie for Windows. I use OSCulator on
OSX and it is so easy to use and brilliant.

I'm pretty sure there are externals that should work (sorry I can't be more
specific, I gave up looking after I found a workable solution)

One thing I will say is that Macs (imac and macbook pro) have some (not
predicable) issues with internal bluetooth seriously failing. This was so
bad I changed my usb external soundcard to a firewire version. This mostly
solved the problem which only happens once in a blue moon now.

Sorry to go off topic but this issue was doing my head in for so long when
I was first working with wiis I thought I'd better mention it. I don;t know
how wide spread it is.

On Fri, Dec 16, 2011 at 8:58 AM, Pagano, Patrick
p...@digitalworlds.ufl.eduwrote:

  ** **

 *Do Externals or workarounds exist for these entertainment devices on
 windows7 ?*

 *I have working versions for linux/OSX but I was hoping for some Win7
 versions to use for demonstration*

 *Most posts I see regarding wii, not on linux refers to GlovePIe for
 Windows, on OSX osculator seems to be the answer*

 * *

 * *

 * *

 * *

 *Cheers*

 * *

 * *

 *pp*

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




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


Re: [PD] GEM in 10.7

2011-12-16 Thread Jaime Oliver
Now with Hans' proposed method:

./autogen.sh
./configure CFLAGS=-arch i386 LDFLAGS=-arch i386
--with-pd=/Applications/Pd-0.43-0.app/Contents/Resources/
make

I get a different set of errors (attached) and it also fails.

Curiously, it builds fine without any flags.

any ideas?

best,

J

On Fri, Dec 16, 2011 at 4:48 AM, Jaime Oliver jaime.oliv...@gmail.com wrote:
 Thanks for the responses.

 Well, if compiled by doing:
 ./autogen.sh
 ./configure --with-pd=/Applications/Pd-0.43-0.app/Contents/Resources/
 --enable-fat-binary=i386
 make

 There are several errors and the build fails.

 I am attaching the build log and the error messages from the console.

 I'll try Hans' method and report back,

 J

 On Fri, Dec 16, 2011 at 4:20 AM, Nicolas Montgermont
 nicolas_montgerm...@yahoo.fr wrote:
 You'll also need the font library : ftgl,
 that you can install with fink.
 my configure line here on osx 10.6 is:
 ./configure
 --with-pd=/Applications/Pd-extended.app/Contents/Resources/include/pd/
 --enable-fat-binary=i386 --with-ftgl-includes=/sw/include/
 --with-ftgl-libs=/sw/lib/

 that reminds me this page:
 http://puredata.info/community/projects/software/gem/documentation/faq/how-do-you-compile-gem-on-osx
 should be updated.

 I can do that if you agree,
 best
 n

 Le 16/12/11 09:27, IOhannes zmölnig a écrit :

 On 12/16/2011 12:17 AM, Hans-Christoph Steiner wrote:

 Yes, on 10.6 and 10.7 it'll compile 64-bit by default.  You can try this:

 ./configure CFLAGS=-arch i386 LDFLAGS=-arch i386

 this will override all default CFLAGS and LDFLAGS, and the former might
 be ignored by Gem's build process since it uses c++ and thus CXXFLAGS
 will apply.

 the Gem way to do this is to specify the fat architectures via configure
 _flags_:
 $ ./configure --enable-fat-binary=i386
 will in the end create a fat binary that holds (only) i386 binaries.

 fgmasr
 IOhannes



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


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

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




 --
 Jaime E Oliver LR

 jo2...@columbia.edu
 www.jaimeoliver.pe
 858 750 0924 (cel)



-- 
Jaime E Oliver LR

jo2...@columbia.edu
www.jaimeoliver.pe
858 750 0924 (cel)
joliver-mpb-new:Gem-0.93.3 joliver$ make
Making all in src
make  all-recursive
Making all in Gem
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../../src  -I../../src  -DHAVE_VERSION_H -DPD 
-I/Applications/Pd-0.43-0.app/Contents/Resources//src  -g -O2 
-freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-glew.lo -MD -MP 
-MF .deps/libGem_la-glew.Tpo -c -o libGem_la-glew.lo `test -f 'glew.cpp' || 
echo './'`glew.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src 
-DHAVE_VERSION_H -DPD -I/Applications/Pd-0.43-0.app/Contents/Resources//src -g 
-O2 -freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-glew.lo -MD -MP 
-MF .deps/libGem_la-glew.Tpo -c glew.cpp  -fno-common -DPIC -o 
.libs/libGem_la-glew.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src 
-DHAVE_VERSION_H -DPD -I/Applications/Pd-0.43-0.app/Contents/Resources//src -g 
-O2 -freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-glew.lo -MD -MP 
-MF .deps/libGem_la-glew.Tpo -c glew.cpp -o libGem_la-glew.o /dev/null 21
mv -f .deps/libGem_la-glew.Tpo .deps/libGem_la-glew.Plo
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../../src  -I../../src  -DHAVE_VERSION_H -DPD 
-I/Applications/Pd-0.43-0.app/Contents/Resources//src  -g -O2 
-freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-Files.lo -MD 
-MP -MF .deps/libGem_la-Files.Tpo -c -o libGem_la-Files.lo `test -f 'Files.cpp' 
|| echo './'`Files.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src 
-DHAVE_VERSION_H -DPD -I/Applications/Pd-0.43-0.app/Contents/Resources//src -g 
-O2 -freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-Files.lo -MD 
-MP -MF .deps/libGem_la-Files.Tpo -c Files.cpp  -fno-common -DPIC -o 
.libs/libGem_la-Files.o
Files.cpp:113:4: warning: #warning wordfree() not called
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src 
-DHAVE_VERSION_H -DPD -I/Applications/Pd-0.43-0.app/Contents/Resources//src -g 
-O2 -freg-struct-return -Os -falign-loops -falign-functions -falign-jumps 
-funroll-loops -ffast-math -mmmx -fpascal-strings -MT libGem_la-Files.lo -MD 
-MP -MF .deps/libGem_la-Files.Tpo -c 

Re: [PD] GEM in 10.7

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 10:59 AM, Jaime Oliver wrote:
 Now with Hans' proposed method:
 
 ./autogen.sh
 ./configure CFLAGS=-arch i386 LDFLAGS=-arch i386
 --with-pd=/Applications/Pd-0.43-0.app/Contents/Resources/
 make
 
 I get a different set of errors (attached) and it also fails.

well, i told you that hans' suggestion won't work, as CFLAGS will
likely be ignored.
so what you are doing now, is to _compile_ Gem as x86_64, and then try
to _link_ together those objects as i386 (since LDFLAGS will be
respected), which obviously will not work.

 
 Curiously, it builds fine without any flags.

yes, because all non-working code gets disabled.

i cannot really imagine why an i386 build fails, unless apple really
updated the i386 headers for 10.7 to drop the deprecated functions.

and you did do a make clean before fuddling around with
--enable-fat-binary?

fgamsdr
IOhannes



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


Re: [PD] GEM in 10.7

2011-12-16 Thread Jaime Oliver
 and you did do a make clean before fuddling around with
 --enable-fat-binary?

even better, I started with a fresh package.

J

 fgamsdr
 IOhannes


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




-- 
Jaime E Oliver LR

jo2...@columbia.edu
www.jaimeoliver.pe
858 750 0924 (cel)

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


Re: [PD] number to fractions external?

2011-12-16 Thread Claude Heiland-Allen

On 16/12/11 06:51, i go bananas wrote:

by the way, here is the method i used:

first, convert the decimal part to a fraction in the form of n/10
next, find the highest common factor of n and 10
(using the 'division method' like this:
http://easycalculation.com/what-is-hcf.php )

then just divide n and 10 by that factor.


I don't think that method will give happy results for most simple 
fractions.  Plus it's useful to get approximations that are simpler or 
more accurate, like 3 or 22/7 or 355/113 for pi..


Your patch doesn't work very well for me:

input: 1/7
fraction: 2857/2
input: 8/9
fraction: 1/12500
input: 7/11
fraction: 15909/25000
input: 11/17
fraction: 4313.67/.67

(input is $1 $2--[/], so as accurate as floating point is...)


actually, that means it's accurate to 6 decimal places, i guess.


There's a way to get a simple fraction like 1/7 instead of 143/1000 or 
whatever, could be possible to implement in Pd?  (I've not tried.)


[0] 
http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/Data-Ratio.html#approxRational


[1] 
http://en.wikipedia.org/wiki/Continued_fraction#Best_rational_approximations



well...whatever :D



Claude

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


Re: [PD] number to fractions external?

2011-12-16 Thread i go bananas
yeah, my patch only works for rational numbers.

will have a look at the article / method you posted, claude.







On Fri, Dec 16, 2011 at 7:49 PM, Claude Heiland-Allen cla...@goto10.orgwrote:

 On 16/12/11 06:51, i go bananas wrote:

 by the way, here is the method i used:

 first, convert the decimal part to a fraction in the form of n/10
 next, find the highest common factor of n and 10
 (using the 'division method' like this:
 http://easycalculation.com/**what-is-hcf.phphttp://easycalculation.com/what-is-hcf.php)

 then just divide n and 10 by that factor.


 I don't think that method will give happy results for most simple
 fractions.  Plus it's useful to get approximations that are simpler or more
 accurate, like 3 or 22/7 or 355/113 for pi..

 Your patch doesn't work very well for me:

 input: 1/7
 fraction: 2857/2
 input: 8/9
 fraction: 1/12500
 input: 7/11
 fraction: 15909/25000
 input: 11/17
 fraction: 4313.67/.67

 (input is $1 $2--[/], so as accurate as floating point is...)


  actually, that means it's accurate to 6 decimal places, i guess.


 There's a way to get a simple fraction like 1/7 instead of 143/1000 or
 whatever, could be possible to implement in Pd?  (I've not tried.)

 [0] http://hackage.haskell.org/**packages/archive/base/latest/**
 doc/html/src/Data-Ratio.html#**approxRationalhttp://hackage.haskell.org/packages/archive/base/latest/doc/html/src/Data-Ratio.html#approxRational

 [1] http://en.wikipedia.org/wiki/**Continued_fraction#Best_**
 rational_approximationshttp://en.wikipedia.org/wiki/Continued_fraction#Best_rational_approximations

  well...whatever :D



 Claude


 __**_
 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


Re: [PD] GEM in 10.7

2011-12-16 Thread Jaime Oliver
 i cannot really imagine why an i386 build fails, unless apple really
 updated the i386 headers for 10.7 to drop the deprecated functions.

Well, I know other people are using gem in 10.7 so they must have
compiled it in some way...

Nicolas?

best,
J



-- 
Jaime E Oliver LR

jo2...@columbia.edu
www.jaimeoliver.pe
858 750 0924 (cel)

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


Re: [PD] number to fractions external?

2011-12-16 Thread i go bananas
sorry, should have said 'finite' numbers.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM in 10.7

2011-12-16 Thread Nicolas Montgermont
Maybe it's just a unneeded slash at the end of your configure cause we 
can see your compile line is including:

-I/Applications/Pd-0.43-0.app/Contents/Resources//src
so I'd try:

./configure --with-pd=/Applications/Pd-0.43-0.app/Contents/Resources 
--enable-fat-binary=i386

n

Le 16/12/11 10:48, Jaime Oliver a écrit :

Thanks for the responses.

Well, if compiled by doing:
./autogen.sh
./configure --with-pd=/Applications/Pd-0.43-0.app/Contents/Resources/
--enable-fat-binary=i386
make

There are several errors and the build fails.

I am attaching the build log and the error messages from the console.

I'll try Hans' method and report back,

J

On Fri, Dec 16, 2011 at 4:20 AM, Nicolas Montgermont
nicolas_montgerm...@yahoo.fr  wrote:

You'll also need the font library : ftgl,
that you can install with fink.
my configure line here on osx 10.6 is:
./configure
--with-pd=/Applications/Pd-extended.app/Contents/Resources/include/pd/
--enable-fat-binary=i386 --with-ftgl-includes=/sw/include/
--with-ftgl-libs=/sw/lib/

that reminds me this page:
http://puredata.info/community/projects/software/gem/documentation/faq/how-do-you-compile-gem-on-osx
should be updated.

I can do that if you agree,
best
n

Le 16/12/11 09:27, IOhannes zmölnig a écrit :

On 12/16/2011 12:17 AM, Hans-Christoph Steiner wrote:

Yes, on 10.6 and 10.7 it'll compile 64-bit by default.  You can try this:

./configure CFLAGS=-arch i386 LDFLAGS=-arch i386

this will override all default CFLAGS and LDFLAGS, and the former might
be ignored by Gem's build process since it uses c++ and thus CXXFLAGS
will apply.

the Gem way to do this is to specify the fat architectures via configure
_flags_:
$ ./configure --enable-fat-binary=i386
will in the end create a fat binary that holds (only) i386 binaries.

fgmasr
IOhannes



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


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

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






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

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


Re: [PD] GEM in 10.7

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 12:14 PM, Jaime Oliver wrote:
 i cannot really imagine why an i386 build fails, unless apple really
 updated the i386 headers for 10.7 to drop the deprecated functions.
 
 Well, I know other people are using gem in 10.7 so they must have
 compiled it in some way...

maybe they are simply using the binaries provided?
they are compiled on a 10.5 machine, but they should run on 10.7

do you have any special reason to compile it yourself?

gfmasr
IOhannes



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


Re: [PD] GEM in 10.7

2011-12-16 Thread Jaime Oliver
 maybe they are simply using the binaries provided?

Of course...

 they are compiled on a 10.5 machine, but they should run on 10.7

I also have a 10.6 version I could use, but have this laptop right now...

 do you have any special reason to compile it yourself?

well, I haven't gotten around making a system to compile just one
pix_external, so I just recompile gem over and over again, and because
that is the only recent change in the code it compiles only that one
object very fast.

It'd be great to have an example in the extra folder just like there
is in pd in doc/6.externs/... that is, a piece of example code and a
multi-platform makefile.
or is there...?

best,

J

 gfmasr
 IOhannes


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




-- 
Jaime E Oliver LR

jo2...@columbia.edu
www.jaimeoliver.pe
858 750 0924 (cel)

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


[PD] Problem to compile zexy

2011-12-16 Thread Jack

Hello,

After 
(https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/zexy) 
:

zexy$ svn cleanup
zexy$ svn up
À la révision 15817.
zexy$ ./autogen.sh

I get :

running autoreconf /usr/bin/autoreconf
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autom4te: cannot create autom4te.cache: Aucun fichier ou dossier de ce type
aclocal: /usr/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

How can i fix this problem ?
Thanx for help.
++

Jack



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


Re: [PD] cartopol~ outputs inverted phases (bug report)

2011-12-16 Thread Alexandre Torres Porres
The [cartopol] I use in Pd is the one that comes with the latest
Pd-Extended, in the cyclone folder.
cheers
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] number to fractions external?

2011-12-16 Thread Alexandre Torres Porres
 i had a go at it

thanks, I kinda had to go too, but no time... :(

 yeah, my patch only works for rational numbers.

you know what, I think I asked this before on this list,

deja'vu

 will have a look at the article / method you posted, claude.

are you going at it too? :)

by the way, I meant something like 1.75 becomes 7/4 and not 3/4, but that
is easy to adapt on your patch

thanks

cheers



2011/12/16 i go bananas hard@gmail.com

 by the way, here is the method i used:

 first, convert the decimal part to a fraction in the form of n/10
 next, find the highest common factor of n and 10
 (using the 'division method' like this:
 http://easycalculation.com/what-is-hcf.php )

 then just divide n and 10 by that factor.

 actually, that means it's accurate to 6 decimal places, i guess.
 well...whatever :D

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


Re: [PD] number to fractions external?

2011-12-16 Thread i go bananas
actually, i'm not going to do anything more on this.

i had a look at the articles claude posted, and they went a bit far over my
head.

my patch will still work for basic things like 1/4 and 7/8, but i wouldn't
depend on it working for a serious application.  As you first suggested,
it's not so simple, and if you read claude's articles, you will see that it
isn't.

it's not brain science though, so maybe someone with a bit more number
understanding can tackle it.



On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres
por...@gmail.comwrote:

  i had a go at it

 thanks, I kinda had to go too, but no time... :(

  yeah, my patch only works for rational numbers.

 you know what, I think I asked this before on this list,

 deja'vu

  will have a look at the article / method you posted, claude.

 are you going at it too? :)

 by the way, I meant something like 1.75 becomes 7/4 and not 3/4, but that
 is easy to adapt on your patch

 thanks

 cheers



 2011/12/16 i go bananas hard@gmail.com

 by the way, here is the method i used:

 first, convert the decimal part to a fraction in the form of n/10
 next, find the highest common factor of n and 10
 (using the 'division method' like this:
 http://easycalculation.com/what-is-hcf.php )

 then just divide n and 10 by that factor.

 actually, that means it's accurate to 6 decimal places, i guess.
 well...whatever :D



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


Re: [PD] number to fractions external?

2011-12-16 Thread Alexandre Torres Porres
looks like a job for an external



2011/12/16 i go bananas hard@gmail.com

 actually, i'm not going to do anything more on this.

 i had a look at the articles claude posted, and they went a bit far over
 my head.

 my patch will still work for basic things like 1/4 and 7/8, but i wouldn't
 depend on it working for a serious application.  As you first suggested,
 it's not so simple, and if you read claude's articles, you will see that it
 isn't.

 it's not brain science though, so maybe someone with a bit more number
 understanding can tackle it.



 On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres 
 por...@gmail.com wrote:

  i had a go at it

 thanks, I kinda had to go too, but no time... :(

  yeah, my patch only works for rational numbers.

 you know what, I think I asked this before on this list,

 deja'vu

  will have a look at the article / method you posted, claude.

 are you going at it too? :)

 by the way, I meant something like 1.75 becomes 7/4 and not 3/4, but that
 is easy to adapt on your patch

 thanks

 cheers



 2011/12/16 i go bananas hard@gmail.com

 by the way, here is the method i used:

 first, convert the decimal part to a fraction in the form of n/10
 next, find the highest common factor of n and 10
 (using the 'division method' like this:
 http://easycalculation.com/what-is-hcf.php )

 then just divide n and 10 by that factor.

 actually, that means it's accurate to 6 decimal places, i guess.
 well...whatever :D




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


Re: [PD] number to fractions external?

2011-12-16 Thread i go bananas
it's possible in vanilla, but the mathematics goes over my head

On Sat, Dec 17, 2011 at 1:05 AM, Alexandre Torres Porres
por...@gmail.comwrote:

 looks like a job for an external



 2011/12/16 i go bananas hard@gmail.com

 actually, i'm not going to do anything more on this.

 i had a look at the articles claude posted, and they went a bit far over
 my head.

 my patch will still work for basic things like 1/4 and 7/8, but i
 wouldn't depend on it working for a serious application.  As you first
 suggested, it's not so simple, and if you read claude's articles, you will
 see that it isn't.

 it's not brain science though, so maybe someone with a bit more number
 understanding can tackle it.



 On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres 
 por...@gmail.com wrote:

  i had a go at it

 thanks, I kinda had to go too, but no time... :(

  yeah, my patch only works for rational numbers.

 you know what, I think I asked this before on this list,

 deja'vu

  will have a look at the article / method you posted, claude.

 are you going at it too? :)

 by the way, I meant something like 1.75 becomes 7/4 and not 3/4, but
 that is easy to adapt on your patch

 thanks

 cheers



 2011/12/16 i go bananas hard@gmail.com

 by the way, here is the method i used:

 first, convert the decimal part to a fraction in the form of n/10
 next, find the highest common factor of n and 10
 (using the 'division method' like this:
 http://easycalculation.com/what-is-hcf.php )

 then just divide n and 10 by that factor.

 actually, that means it's accurate to 6 decimal places, i guess.
 well...whatever :D





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


Re: [PD] GEM in 10.7

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 12:57 PM, Jaime Oliver wrote:
 maybe they are simply using the binaries provided?
 
 Of course...
 
 they are compiled on a 10.5 machine, but they should run on 10.7
 
 I also have a 10.6 version I could use, but have this laptop right now...
 
 do you have any special reason to compile it yourself?
 
 well, I haven't gotten around making a system to compile just one
 pix_external, so I just recompile gem over and over again, and because
 that is the only recent change in the code it compiles only that one
 object very fast.
 
 It'd be great to have an example in the extra folder just like there
 is in pd in doc/6.externs/... that is, a piece of example code and a
 multi-platform makefile.
 or is there...?

you could have a look at extra/pix_drum/ :-)

it's not a simple multi-platform makefile, since i don't believe in
such a thing, but instead you should be able to easily add your own
Gem/externals in the same fashion (e.g. using autotools).

after running configure, you don't need to recompile the entire Gem,
just run make in extra/pix_head/

gfamsdr
IOhannes



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


Re: [PD] number to fractions external?

2011-12-16 Thread Lorenzo Sutton

On 16/12/11 16:05, Alexandre Torres Porres wrote:

looks like a job for an external

Not really answering the OP question but something could be done in Python:

def find_frac(num):
f = float(num)
last_error = 1000
best = (0,0)
for i in xrange(1,1001):
for j in xrange(1,i+1):
divide = (float(i) / float (j))
if divide == f:
return ((i,j),0)
err = abs(divide - f)
if err  last_error:
best = (i,j)
last_error = err
return (best,last_error)

This would try to find the exact fraction or the one with the smallest 
error (trying up to 1000/1000). It would return (numerator, denominator, 
error). Guess it would work well at least up to 100 but only for 
positive numbers... and... not for numbers  1.. and surely it's not 
optimised etc. etc. :)


 find_frac(2)
((2, 1), 0)
 find_frac(1.5)
((3, 2), 0)
 find_frac(1.333)
((4, 3), 0)
 find_frac(2.4)
((12, 5), 0)
 find_frac(2.8)
((14, 5), 0)
 find_frac(2.987654321)
((242, 81), 1.234568003383174e-11)
 find_frac(50.32)
((956, 19), 0.004210526315787888)
 find_frac(50.322)
((956, 19), 0.006210526315790332)
 find_frac(50.4)
((252, 5), 0)
 find_frac(10.33)
((971, 94), 0.00021276595744623705)
 find_frac(10.33)
((31, 3), 0)

Lorenzo.




2011/12/16 i go bananas hard@gmail.com mailto:hard@gmail.com

actually, i'm not going to do anything more on this.

i had a look at the articles claude posted, and they went a bit
far over my head.

my patch will still work for basic things like 1/4 and 7/8, but i
wouldn't depend on it working for a serious application.  As you
first suggested, it's not so simple, and if you read claude's
articles, you will see that it isn't.

it's not brain science though, so maybe someone with a bit more
number understanding can tackle it.



On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres
por...@gmail.com mailto:por...@gmail.com wrote:

 i had a go at it

thanks, I kinda had to go too, but no time... :(

 yeah, my patch only works for rational numbers.

you know what, I think I asked this before on this list,

deja'vu

 will have a look at the article / method you posted, claude.

are you going at it too? :)

by the way, I meant something like 1.75 becomes 7/4 and not
3/4, but that is easy to adapt on your patch

thanks

cheers



2011/12/16 i go bananas hard@gmail.com
mailto:hard@gmail.com

by the way, here is the method i used:

first, convert the decimal part to a fraction in the form
of n/10
next, find the highest common factor of n and 10
(using the 'division method' like this:
http://easycalculation.com/what-is-hcf.php )

then just divide n and 10 by that factor.

actually, that means it's accurate to 6 decimal places, i
guess.  well...whatever :D





___
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-dev] ANN: pd-l2ork Holiday release now available

2011-12-16 Thread Jonathan Wilkes
- Original Message -

 From: Ivica Ico Bukvic i...@vt.edu
 To: pd-list@iem.at; pd-...@iem.at; l2ork-...@disis.music.vt.edu; 
 pik...@piksel.no; linux-audio-u...@lists.linuxaudio.org; 
 linux-audio-annou...@lists.linuxaudio.org; 
 linux-audio-...@lists.linuxaudio.org
 Cc: 
 Sent: Friday, December 16, 2011 1:00 AM
 Subject: [PD-dev] ANN: pd-l2ork Holiday release now available
 
G reetings fellow FOSS/Audio enthusiasts,
 
 It is my great pleasure to announce pd-l2ork 20111215 a.k.a. Holiday
 release. In the latest version of Linux Laptop Orchestra's in-house
 version of Pure-Data we've squashed a number of lingering bugs, as well
 as added some exciting new features, including:
 
 *infinite undo that covers all editing actions (while some externals
 with custom dialogs may require minor adjustment to their code to work
 with the newfound undo, most of them will work out-of-box).

Great!

 
 *more robust paste from external clipboard. copying pd scripts from an
 email and pasting them directly into a canvas has never been easier.

Does pd scripts mean a patch's source code?

 
 *multiple entry bug that has been plaguing pd for years has been finally
 squashed.
 
 *resizing GOP window via gui (just like the rest of iemgui objects).

That's very handy.

 
 *a number of usability improvements in terms of pasting logic and other
 editing features (e.g. gop resize via gui now prevents users to make it
 smaller than its text size unless hidetext is enabled, objects are
 automatically resized (except for gop objects with hidden text for
 obvious reasons) to accommodate adequate spacing for inlets and outlets,
 etc.)
 
 *all known graph-on-parent redraw issues have been addressed and gop
 redrawing is now as robust as it has ever been.
 
 *and many more... (see Changelog and git logs for more detailed info)
 
 If interested, head to http://l2ork.music.vt.edu/main/?page_id=56 to
 download 32-bit builds, source, and more. Alternately, visit our git
 page at https://github.com/pd-l2ork
 
 For more info on L2Ork and pd-l2ork look us up at
 http://l2ork.music.vt.edu or join us on facebook at
 http://www.facebook.com/groups/l2ork/
 
 Happy Holidays!
 
 Best wishes,
 
 Ico
 
 
 ___
 Pd-dev mailing list
 pd-...@iem.at
 http://lists.puredata.info/listinfo/pd-dev
 

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


Re: [PD] pd-0.43 on Pentium III

2011-12-16 Thread rolf meesters
thanks hans, however not a lot of infomation came out of it.

i mostly tried the help patches from the .reference
some do not give a problem: abs, acoustics, acoustics~,adc~, all_about,..
others: about.pd, abs~, all_about_arrays
make Pd close without any message.

on the other hand acoustics~-help generates the message:
 tclpd loader searching for pddp/dsp in path...
 nothing found. 
idem for adc~-help,
but no crash.

any more suggestions where/how to look?

ciao,rolf

On Thu, Dec 15, 2011 at 9:07 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 Nice! I like old machines, that is exactly the same CPU as the PdLab build
 servers :).  They have less RAM tho ;).  For debugging this, trying running
 pd in the cmd.exe shell.  I would download the .zip package and unzip it
 somewhere.  Then go to Start - Run - cmd.exe, and do:

 cd path/pd/Pd-extended 0.43.1-extended/pd/bin
 pd.com -stderr

 Then you should see all of the stuff that normally going to the Pd window
 going to the cmd.exe window.

 .hc

 On Dec 15, 2011, at 9:59 AM, rolf meesters wrote:

  hi,
 
  i have a bunch of PIII, 733Mhz, 512Mb.
  Pd-0.42.5 runs smoothly on XP-pro.
  today i tried the latest nightly-build of P-0.43:
  it's not possible to open any patch,
  not even regular help-patches.
  Pd closes immediately; no warnings.
 
  any suggestions on how to debug this?
 
  rolf
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 I have always wished for my computer to be as easy to use as my telephone;
 my wish has come true because I can no longer figure out how to use my
 telephone.  --Bjarne Stroustrup (creator of C++)


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


[PD] 0.43 preferences flatspace

2011-12-16 Thread rolf meesters
hello list,

in the latest 0.43 nightly-build for XP
i can add something to the preferences but it doesn;t keep.

and i'm missing flatspace (especially popen).
is that on purpose?

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


Re: [PD] pd-0.43 on Pentium III

2011-12-16 Thread IOhannes zmölnig
On 12/16/2011 05:44 PM, rolf meesters wrote:
 thanks hans, however not a lot of infomation came out of it.
 
 i mostly tried the help patches from the .reference
 some do not give a problem: abs, acoustics, acoustics~,adc~, all_about,..
 others: about.pd, abs~, all_about_arrays
 make Pd close without any message.
 
 on the other hand acoustics~-help generates the message:
  tclpd loader searching for pddp/dsp in path...
  nothing found. 
 idem for adc~-help,
 but no crash.
 
 any more suggestions where/how to look?
 

i think, all externals in PdX are compiled with -march=pentium4 -msse2
-mfpmath=sse (for whatever reasons, Pd itself seems to not be compiled
with p4/sse2 support), which will most likely produce code that is
non-executable on your machine.

that the machine used for building is a P3, doesn't matter much, as it
need not run the code...think of it as cross compiling for a newer
architecture.



fgasdr
IOhannes



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


Re: [PD] number to fractions external?

2011-12-16 Thread Ludwig Maes
If you guys 'd done your math, you'd know there is an ancient algorithm for
approximating numbers by fractions and its called continued fractions.

On 16 December 2011 18:38, Lorenzo Sutton lorenzofsut...@gmail.com wrote:

 On 16/12/11 16:05, Alexandre Torres Porres wrote:

 looks like a job for an external

 Not really answering the OP question but something could be done in Python:

 def find_frac(num):
f = float(num)
last_error = 1000
best = (0,0)
for i in xrange(1,1001):
for j in xrange(1,i+1):
divide = (float(i) / float (j))
if divide == f:
return ((i,j),0)
err = abs(divide - f)
if err  last_error:
best = (i,j)
last_error = err
return (best,last_error)

 This would try to find the exact fraction or the one with the smallest
 error (trying up to 1000/1000). It would return (numerator, denominator,
 error). Guess it would work well at least up to 100 but only for positive
 numbers... and... not for numbers  1.. and surely it's not optimised etc.
 etc. :)

  find_frac(2)
 ((2, 1), 0)
  find_frac(1.5)
 ((3, 2), 0)
  find_frac(1.**333)
 ((4, 3), 0)
  find_frac(2.4)
 ((12, 5), 0)
  find_frac(2.8)
 ((14, 5), 0)
  find_frac(2.987654321)
 ((242, 81), 1.234568003383174e-11)
  find_frac(50.32)
 ((956, 19), 0.004210526315787888)
  find_frac(50.322)
 ((956, 19), 0.006210526315790332)
  find_frac(50.4)
 ((252, 5), 0)
  find_frac(10.33)
 ((971, 94), 0.00021276595744623705)
  find_frac(10.**33)
 ((31, 3), 0)

 Lorenzo.




 2011/12/16 i go bananas hard@gmail.com mailto:hard@gmail.com


actually, i'm not going to do anything more on this.

i had a look at the articles claude posted, and they went a bit
far over my head.

my patch will still work for basic things like 1/4 and 7/8, but i
wouldn't depend on it working for a serious application.  As you
first suggested, it's not so simple, and if you read claude's
articles, you will see that it isn't.

it's not brain science though, so maybe someone with a bit more
number understanding can tackle it.



On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres
por...@gmail.com mailto:por...@gmail.com wrote:

 i had a go at it

thanks, I kinda had to go too, but no time... :(

 yeah, my patch only works for rational numbers.

you know what, I think I asked this before on this list,

deja'vu

 will have a look at the article / method you posted, claude.

are you going at it too? :)

by the way, I meant something like 1.75 becomes 7/4 and not
3/4, but that is easy to adapt on your patch

thanks

cheers



2011/12/16 i go bananas hard@gmail.com
mailto:hard@gmail.com


by the way, here is the method i used:

first, convert the decimal part to a fraction in the form
of n/10
next, find the highest common factor of n and 10
(using the 'division method' like this:

 http://easycalculation.com/**what-is-hcf.phphttp://easycalculation.com/what-is-hcf.php)

then just divide n and 10 by that factor.

actually, that means it's accurate to 6 decimal places, i
guess.  well...whatever :D





 __**_
 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 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] number to fractions external?

2011-12-16 Thread i go bananas
if you had read the thread, you would have seen that claude posted a link
to that technique.

now go and make a PD patch that does it, mr smart guy.



On Sat, Dec 17, 2011 at 3:00 AM, Ludwig Maes ludwig.m...@gmail.com wrote:

 If you guys 'd done your math, you'd know there is an ancient algorithm
 for approximating numbers by fractions and its called continued fractions.


 On 16 December 2011 18:38, Lorenzo Sutton lorenzofsut...@gmail.comwrote:

 On 16/12/11 16:05, Alexandre Torres Porres wrote:

 looks like a job for an external

 Not really answering the OP question but something could be done in
 Python:

 def find_frac(num):
f = float(num)
last_error = 1000
best = (0,0)
for i in xrange(1,1001):
for j in xrange(1,i+1):
divide = (float(i) / float (j))
if divide == f:
return ((i,j),0)
err = abs(divide - f)
if err  last_error:
best = (i,j)
last_error = err
return (best,last_error)

 This would try to find the exact fraction or the one with the smallest
 error (trying up to 1000/1000). It would return (numerator, denominator,
 error). Guess it would work well at least up to 100 but only for positive
 numbers... and... not for numbers  1.. and surely it's not optimised etc.
 etc. :)

  find_frac(2)
 ((2, 1), 0)
  find_frac(1.5)
 ((3, 2), 0)
  find_frac(1.**333)
 ((4, 3), 0)
  find_frac(2.4)
 ((12, 5), 0)
  find_frac(2.8)
 ((14, 5), 0)
  find_frac(2.987654321)
 ((242, 81), 1.234568003383174e-11)
  find_frac(50.32)
 ((956, 19), 0.004210526315787888)
  find_frac(50.322)
 ((956, 19), 0.006210526315790332)
  find_frac(50.4)
 ((252, 5), 0)
  find_frac(10.33)
 ((971, 94), 0.00021276595744623705)
  find_frac(10.**33)
 ((31, 3), 0)

 Lorenzo.




 2011/12/16 i go bananas hard@gmail.com mailto:hard@gmail.com


actually, i'm not going to do anything more on this.

i had a look at the articles claude posted, and they went a bit
far over my head.

my patch will still work for basic things like 1/4 and 7/8, but i
wouldn't depend on it working for a serious application.  As you
first suggested, it's not so simple, and if you read claude's
articles, you will see that it isn't.

it's not brain science though, so maybe someone with a bit more
number understanding can tackle it.



On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres
por...@gmail.com mailto:por...@gmail.com wrote:

 i had a go at it

thanks, I kinda had to go too, but no time... :(

 yeah, my patch only works for rational numbers.

you know what, I think I asked this before on this list,

deja'vu

 will have a look at the article / method you posted, claude.

are you going at it too? :)

by the way, I meant something like 1.75 becomes 7/4 and not
3/4, but that is easy to adapt on your patch

thanks

cheers



2011/12/16 i go bananas hard@gmail.com
mailto:hard@gmail.com


by the way, here is the method i used:

first, convert the decimal part to a fraction in the form
of n/10
next, find the highest common factor of n and 10
(using the 'division method' like this:

 http://easycalculation.com/**what-is-hcf.phphttp://easycalculation.com/what-is-hcf.php)

then just divide n and 10 by that factor.

actually, that means it's accurate to 6 decimal places, i
guess.  well...whatever :D





 __**_
 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 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] number to fractions external?

2011-12-16 Thread i go bananas
how do you get from a continued fraction in the form like this:

[0;1,5,2,2]

to a fraction in the form like this:

27/32

this patch gets as far as that [0; 1,5,2,2] form.  but i'm still not sure
how to get further


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


Re: [PD] number to fractions external?

2011-12-16 Thread Alexandre Torres Porres
online calculator
http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/cfCALC.html
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] 0.43 preferences flatspace

2011-12-16 Thread Hans-Christoph Steiner

I've dropped support for flatspace since it was a kludge that has been replaced 
by other things.  There is a better popen in the library 'moonlib'.   I've had 
good luck with [motex/system].

As for preferences, I recommend setting the Audio and MIDI settings in the 
patch using the 'mediasettings' library or [hcs/get-audio-dialog].  For Startup 
prefs, those have been removed from Pd-extended, load libraries using [import] 
in the patch.  And for the Path prefs, add paths using the new [path] object.

.hc

On Dec 16, 2011, at 8:50 AM, rolf meesters wrote:

 
 hello list,
 
 in the latest 0.43 nightly-build for XP
 i can add something to the preferences but it doesn;t keep.
 
 and i'm missing flatspace (especially popen).
 is that on purpose?
 
 gr,rolf
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list





If nature has made any one thing less susceptible than all others of exclusive 
property, it is the action of the thinking power called an idea, which an 
individual may exclusively possess as long as he keeps it to himself; but the 
moment it is divulged, it forces itself into the possession of everyone, and 
the receiver cannot dispossess himself of it.- Thomas Jefferson



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


Re: [PD] number to fractions external?

2011-12-16 Thread i go bananas
yes, but it's difficult to embed that in a pd patch, yeah?

On Sat, Dec 17, 2011 at 4:05 AM, Alexandre Torres Porres
por...@gmail.comwrote:

 online calculator
 http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/cfCALC.html

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


Re: [PD] pd-0.43 on Pentium III

2011-12-16 Thread Hans-Christoph Steiner

On Dec 16, 2011, at 9:33 AM, IOhannes zmölnig wrote:

 On 12/16/2011 05:44 PM, rolf meesters wrote:
 thanks hans, however not a lot of infomation came out of it.
 
 i mostly tried the help patches from the .reference
 some do not give a problem: abs, acoustics, acoustics~,adc~, all_about,..
 others: about.pd, abs~, all_about_arrays
 make Pd close without any message.
 
 on the other hand acoustics~-help generates the message:
  tclpd loader searching for pddp/dsp in path...
 nothing found. 
 idem for adc~-help,
 but no crash.
 
 any more suggestions where/how to look?
 
 
 i think, all externals in PdX are compiled with -march=pentium4 -msse2
 -mfpmath=sse (for whatever reasons, Pd itself seems to not be compiled
 with p4/sse2 support), which will most likely produce code that is
 non-executable on your machine.
 
 that the machine used for building is a P3, doesn't matter much, as it
 need not run the code...think of it as cross compiling for a newer
 architecture.

Ah yes, that is true.  I figured that people using hardware that old would be 
using GNU/Linux.  The Windows builds need Pentium4 minimum so they have SSE2.

.hc




[W]e have invented the technology to eliminate scarcity, but we are 
deliberately throwing it away to benefit those who profit from scarcity.   
 -John Gilmore



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


Re: [PD] 0.43 preferences flatspace

2011-12-16 Thread martin.peach

I have 29 paths in the dialog that comes up when I click Edit-Preferences, one 
of which is TrueType font and the rest are seemingly arbitrary libs from extra.
Where do they come from? (This is Pd 0.43.1-extended 20111213 on Debian)
What's the use of adding to it if they are not saved on exit?

Martin

 
 
 I've dropped support for flatspace since it was a kludge that has been 
 replaced by other things.  There is a better popen in the library 'moonlib'.  
  I've had good luck with [motex/system].
 
 As for preferences, I recommend setting the Audio and MIDI settings in the 
 patch using the 'mediasettings' library or [hcs/get-audio-dialog].  For 
 Startup prefs, those have been removed from Pd-extended, load libraries using 
 [import] in the patch.  And for the Path prefs, add paths using the new 
 [path] object.
 
 .hc
 
 On Dec 16, 2011, at 8:50 AM, rolf meesters wrote:
 
  
  hello list,
  
  in the latest 0.43 nightly-build for XP
  i can add something to the preferences but it doesn;t keep.
  
  and i'm missing flatspace (especially popen).
  is that on purpose?
  
  gr,rolf
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
  http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 
 If nature has made any one thing less susceptible than all others of 
 exclusive property, it is the action of the thinking power called an idea, 
 which an individual may exclusively possess as long as he keeps it to 
 himself; but the moment it is divulged, it forces itself into the possession 
 of everyone, and the receiver cannot dispossess himself of it.- 
 Thomas Jefferson
 
 
 
 ___
 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] Problem to compile zexy

2011-12-16 Thread Charles Goyard
Hi Jack,

 autoreconf: running: aclocal --force -I m4
 autom4te: cannot create autom4te.cache: Aucun fichier ou dossier de ce type
Wild guess: maybe manually mkdir m4. Some versions of autoconf don't create 
the directory.

-- 
Charlot

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


Re: [PD] number to fractions external?

2011-12-16 Thread Jonathan Wilkes

 From: i go bananas hard@gmail.com
To: Ludwig Maes ludwig.m...@gmail.com 
Cc: pd-list@iem.at 
Sent: Friday, December 16, 2011 1:16 PM
Subject: Re: [PD] number to fractions external?
 

if you had read the thread, you would have seen that claude posted a link to 
that technique.

now go and make a PD patch that does it, mr smart guy.


Wow, how much cpu does that take in Python?  I tried this approach in the form 

of an abstraction, with a nested until, and worst case it can take as much as a 
quarter of 

a second to compute with the constants provided below.

(Pentium Dual-core 2.6gHz in WinXP with 0.43 nightly build)

-Jonathan






On Sat, Dec 17, 2011 at 3:00 AM, Ludwig Maes ludwig.m...@gmail.com wrote:

If you guys 'd done your math, you'd know there is an ancient algorithm for 
approximating numbers by fractions and its called continued fractions.



On 16 December 2011 18:38, Lorenzo Sutton lorenzofsut...@gmail.com wrote:

On 16/12/11 16:05, Alexandre Torres Porres wrote:

looks like a job for an external

Not really answering the OP question but something could be done in Python:

def find_frac(num):
   f = float(num)
   last_error = 1000
   best = (0,0)
   for i in xrange(1,1001):
       for j in xrange(1,i+1):
           divide = (float(i) / float (j))
           if divide == f:
               return ((i,j),0)
           err = abs(divide - f)
           if err  last_error:
               best = (i,j)
               last_error = err
   return (best,last_error)

This would try to find the exact fraction or the one with the smallest error 
(trying up to 1000/1000). It would return (numerator, denominator, error). 
Guess it would work well at least up to 100 but only for positive numbers... 
and... not for numbers  1.. and surely it's not optimised etc. etc. :)

 find_frac(2)
((2, 1), 0)
 find_frac(1.5)
((3, 2), 0)
 find_frac(1.333)
((4, 3), 0)
 find_frac(2.4)
((12, 5), 0)
 find_frac(2.8)
((14, 5), 0)
 find_frac(2.987654321)
((242, 81), 1.234568003383174e-11)
 find_frac(50.32)
((956, 19), 0.004210526315787888)
 find_frac(50.322)
((956, 19), 0.006210526315790332)
 find_frac(50.4)
((252, 5), 0)
 find_frac(10.33)
((971, 94), 0.00021276595744623705)
 find_frac(10.33)
((31, 3), 0)

Lorenzo.




2011/12/16 i go bananas hard@gmail.com mailto:hard@gmail.com


   actually, i'm not going to do anything more on this.

   i had a look at the articles claude posted, and they went a bit
   far over my head.

   my patch will still work for basic things like 1/4 and 7/8, but i
   wouldn't depend on it working for a serious application.  As you
   first suggested, it's not so simple, and if you read claude's
   articles, you will see that it isn't.

   it's not brain science though, so maybe someone with a bit more
   number understanding can tackle it.



   On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres

   por...@gmail.com mailto:por...@gmail.com wrote:

        i had a go at it

       thanks, I kinda had to go too, but no time... :(

        yeah, my patch only works for rational numbers.

       you know what, I think I asked this before on this list,

       deja'vu

        will have a look at the article / method you posted, claude.

       are you going at it too? :)

       by the way, I meant something like 1.75 becomes 7/4 and not
       3/4, but that is easy to adapt on your patch

       thanks

       cheers



       2011/12/16 i go bananas hard@gmail.com

       mailto:hard@gmail.com


           by the way, here is the method i used:

           first, convert the decimal part to a fraction in the form
           of n/10
           next, find the highest common factor of n and 10
           (using the 'division method' like this:
           http://easycalculation.com/what-is-hcf.php )

           then just divide n and 10 by that factor.

           actually, that means it's accurate to 6 decimal places, i
           guess.  well...whatever :D






___
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




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


Re: [PD] 0.43 preferences flatspace

2011-12-16 Thread Hans-Christoph Steiner

Those libs are added to the global path when the libdirs are loaded globally.  
Its from an old hack.  Libraries should really be loaded local to each path, 
then that would make those all go away.  That's a bigger project that I plan on 
working on, but I haven't had the time yet.

.hc

On Dec 16, 2011, at 11:28 AM, martin.pe...@sympatico.ca 
martin.pe...@sympatico.ca wrote:

 I have 29 paths in the dialog that comes up when I click Edit-Preferences, 
 one of which is TrueType font and the rest are seemingly arbitrary libs from 
 extra.
 Where do they come from? (This is Pd 0.43.1-extended 20111213 on Debian)
 What's the use of adding to it if they are not saved on exit?
 
 Martin
 
  
  
  I've dropped support for flatspace since it was a kludge that has been 
  replaced by other things. There is a better popen in the library 'moonlib'. 
  I've had good luck with [motex/system].
  
  As for preferences, I recommend setting the Audio and MIDI settings in the 
  patch using the 'mediasettings' library or [hcs/get-audio-dialog]. For 
  Startup prefs, those have been removed from Pd-extended, load libraries 
  using [import] in the patch. And for the Path prefs, add paths using the 
  new [path] object.
  
  .hc
  
  On Dec 16, 2011, at 8:50 AM, rolf meesters wrote:
  
   
   hello list,
   
   in the latest 0.43 nightly-build for XP
   i can add something to the preferences but it doesn;t keep.
   
   and i'm missing flatspace (especially popen).
   is that on purpose?
   
   gr,rolf
   ___
   Pd-list@iem.at mailing list
   UNSUBSCRIBE and account-management - 
   http://lists.puredata.info/listinfo/pd-list
  
  
  
  
  
  If nature has made any one thing less susceptible than all others of 
  exclusive property, it is the action of the thinking power called an idea, 
  which an individual may exclusively possess as long as he keeps it to 
  himself; but the moment it is divulged, it forces itself into the 
  possession of everyone, and the receiver cannot dispossess himself of it. - 
  Thomas Jefferson
  
  
  
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
  http://lists.puredata.info/listinfo/pd-list





We have nothing to fear from love and commitment. - New York Senator Diane 
Savino, trying to convince the NY Senate to pass a gay marriage bill

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


[PD] poltocar centerpoint

2011-12-16 Thread Philipp Wartenberg
hello,

how can i give a polar-to-cartesian-funktion a centerpoint? as far as i
understod poltocar, the inlets are for amplitude and phase, but there is no
way to send a center-coordinate. i want to create a constant circular
movement around a centerpoint...

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


Re: [PD] poltocar centerpoint

2011-12-16 Thread Mathieu Bouchard

Le 2011-12-16 à 22:05:00, Philipp Wartenberg a écrit :

how can i give a polar-to-cartesian-funktion a centerpoint? as far as i 
understod poltocar, the inlets are for amplitude and phase, but there is 
no way to send a center-coordinate. i want to create a constant circular 
movement around a centerpoint...


use two [-] to subtract your centre's position, so that the centre becomes 
zero.


 __
| Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem to compile zexy

2011-12-16 Thread Jack

Le 16/12/2011 20:49, Charles Goyard a écrit :

Hi Jack,


autoreconf: running: aclocal --force -I m4
autom4te: cannot create autom4te.cache: Aucun fichier ou dossier de ce type

Wild guess: maybe manually mkdir m4. Some versions of autoconf don't create 
the directory.



Hello Charles,

Thanks for the suggestion, but there was a problem about the owner/group 
for the whole zexy directory.

Now all is working as expected.
++

Jack



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


Re: [PD] number to fractions external?

2011-12-16 Thread Mike Moser-Booth
I just gave this a go, and here's what I have so far based on the
Wikipedia link Claude gave. Send the decimal through the left inlet,
and it outputs the numerator and denominator as a list. The argument
is the maximum value the denominator is allowed to be, which keeps it
from going crazy trying to figure out irrational numbers and also
seems to make up for some floating-points errors. You can change the
max with the right inlet as well. Right now it defaults to 100, but
that may be too low. Higher values=more accurate, but potentially more
computation.

I haven't implemented the rules for decrementing the last value of the
continuous fractions, so it's not perfect. But it does give 355/113
for pi. :-)

.mmb

On Fri, Dec 16, 2011 at 2:46 PM, Jonathan Wilkes jancs...@yahoo.com wrote:

 From: i go bananas hard@gmail.com
To: Ludwig Maes ludwig.m...@gmail.com
Cc: pd-list@iem.at
Sent: Friday, December 16, 2011 1:16 PM
Subject: Re: [PD] number to fractions external?


if you had read the thread, you would have seen that claude posted a link to 
that technique.

now go and make a PD patch that does it, mr smart guy.


 Wow, how much cpu does that take in Python?  I tried this approach in the form

 of an abstraction, with a nested until, and worst case it can take as much as 
 a quarter of

 a second to compute with the constants provided below.

 (Pentium Dual-core 2.6gHz in WinXP with 0.43 nightly build)

 -Jonathan






On Sat, Dec 17, 2011 at 3:00 AM, Ludwig Maes ludwig.m...@gmail.com wrote:

If you guys 'd done your math, you'd know there is an ancient algorithm for 
approximating numbers by fractions and its called continued fractions.



On 16 December 2011 18:38, Lorenzo Sutton lorenzofsut...@gmail.com wrote:

On 16/12/11 16:05, Alexandre Torres Porres wrote:

looks like a job for an external

 Not really answering the OP question but something could be done in Python:

def find_frac(num):
   f = float(num)
   last_error = 1000
   best = (0,0)
   for i in xrange(1,1001):
       for j in xrange(1,i+1):
           divide = (float(i) / float (j))
           if divide == f:
               return ((i,j),0)
           err = abs(divide - f)
           if err  last_error:
               best = (i,j)
               last_error = err
   return (best,last_error)

This would try to find the exact fraction or the one with the smallest 
error (trying up to 1000/1000). It would return (numerator, denominator, 
error). Guess it would work well at least up to 100 but only for positive 
numbers... and... not for numbers  1.. and surely it's not optimised etc. 
etc. :)

 find_frac(2)
((2, 1), 0)
 find_frac(1.5)
((3, 2), 0)
 find_frac(1.333)
((4, 3), 0)
 find_frac(2.4)
((12, 5), 0)
 find_frac(2.8)
((14, 5), 0)
 find_frac(2.987654321)
((242, 81), 1.234568003383174e-11)
 find_frac(50.32)
((956, 19), 0.004210526315787888)
 find_frac(50.322)
((956, 19), 0.006210526315790332)
 find_frac(50.4)
((252, 5), 0)
 find_frac(10.33)
((971, 94), 0.00021276595744623705)
 find_frac(10.33)
((31, 3), 0)

Lorenzo.




2011/12/16 i go bananas hard@gmail.com mailto:hard@gmail.com


   actually, i'm not going to do anything more on this.

   i had a look at the articles claude posted, and they went a bit
   far over my head.

   my patch will still work for basic things like 1/4 and 7/8, but i
   wouldn't depend on it working for a serious application.  As you
   first suggested, it's not so simple, and if you read claude's
   articles, you will see that it isn't.

   it's not brain science though, so maybe someone with a bit more
   number understanding can tackle it.



   On Sat, Dec 17, 2011 at 12:51 AM, Alexandre Torres Porres

   por...@gmail.com mailto:por...@gmail.com wrote:

        i had a go at it

       thanks, I kinda had to go too, but no time... :(

        yeah, my patch only works for rational numbers.

       you know what, I think I asked this before on this list,

       deja'vu

        will have a look at the article / method you posted, claude.

       are you going at it too? :)

       by the way, I meant something like 1.75 becomes 7/4 and not
       3/4, but that is easy to adapt on your patch

       thanks

       cheers



       2011/12/16 i go bananas hard@gmail.com

        mailto:hard@gmail.com


           by the way, here is the method i used:

           first, convert the decimal part to a fraction in the form
           of n/10
           next, find the highest common factor of n and 10
           (using the 'division method' like this:
           http://easycalculation.com/what-is-hcf.php )

           then just divide n and 10 by that factor.

           actually, that means it's accurate to 6 decimal places, i
           guess.  well...whatever :D






___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -  

Re: [PD] [PD-dev] ANN: pd-l2ork Holiday release now available

2011-12-16 Thread Ivica Ico Bukvic


On Dec 16, 2011, at 11:41, Jonathan Wilkes jancs...@yahoo.com wrote:

 - Original Message -
 
 From: Ivica Ico Bukvic i...@vt.edu
 To: pd-list@iem.at; pd-...@iem.at; l2ork-...@disis.music.vt.edu; 
 pik...@piksel.no; linux-audio-u...@lists.linuxaudio.org; 
 linux-audio-annou...@lists.linuxaudio.org; 
 linux-audio-...@lists.linuxaudio.org
 Cc: 
 Sent: Friday, December 16, 2011 1:00 AM
 Subject: [PD-dev] ANN: pd-l2ork Holiday release now available
 
 G reetings fellow FOSS/Audio enthusiasts,
 
 It is my great pleasure to announce pd-l2ork 20111215 a.k.a. Holiday
 release. In the latest version of Linux Laptop Orchestra's in-house
 version of Pure-Data we've squashed a number of lingering bugs, as well
 as added some exciting new features, including:
 
 *infinite undo that covers all editing actions (while some externals
 with custom dialogs may require minor adjustment to their code to work
 with the newfound undo, most of them will work out-of-box).
 
 Great!
 
 
 *more robust paste from external clipboard. copying pd scripts from an
 email and pasting them directly into a canvas has never been easier.
 
 Does pd scripts mean a patch's source code?

Yes!
 
 
 *multiple entry bug that has been plaguing pd for years has been finally
 squashed.
 
 *resizing GOP window via gui (just like the rest of iemgui objects).
 
 That's very handy.
 
 
 *a number of usability improvements in terms of pasting logic and other
 editing features (e.g. gop resize via gui now prevents users to make it
 smaller than its text size unless hidetext is enabled, objects are
 automatically resized (except for gop objects with hidden text for
 obvious reasons) to accommodate adequate spacing for inlets and outlets,
 etc.)
 
 *all known graph-on-parent redraw issues have been addressed and gop
 redrawing is now as robust as it has ever been.
 
 *and many more... (see Changelog and git logs for more detailed info)
 
 If interested, head to http://l2ork.music.vt.edu/main/?page_id=56 to
 download 32-bit builds, source, and more. Alternately, visit our git
 page at https://github.com/pd-l2ork
 
 For more info on L2Ork and pd-l2ork look us up at
 http://l2ork.music.vt.edu or join us on facebook at
 http://www.facebook.com/groups/l2ork/
 
 Happy Holidays!
 
 Best wishes,
 
 Ico
 
 
 ___
 Pd-dev mailing list
 pd-...@iem.at
 http://lists.puredata.info/listinfo/pd-dev
 

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


Re: [PD] poltocar centerpoint

2011-12-16 Thread Mathieu Bouchard

Le 2011-12-16 à 16:33:00, Mathieu Bouchard a écrit :

Le 2011-12-16 à 22:05:00, Philipp Wartenberg a écrit :

how can i give a polar-to-cartesian-funktion a centerpoint? as far as i 
understod poltocar, the inlets are for amplitude and phase, but there is no 
way to send a center-coordinate. i want to create a constant circular 
movement around a centerpoint...


use two [-] to subtract your centre's position, so that the centre becomes 
zero.


Got it the other way around... cartesian-to-polar needs a [-] before 
itself. polar-to-cartesian needs a [+] after itself.


 __
| Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list