Mathieu Bouchard | 1 Jul 02:14 2006
Picon

Re: command line arguments for Pd 0.39 on OSX

On Fri, 30 Jun 2006, IOhannes m zmoelnig wrote:

> when i start pd from the shell, i usually use "pd -lib bla patch.pd"
> when i start pd from a script, i usually use "pd -lib bla -open patch.pd"

Bash parses and runs a script exactly the same as something on the 
commandline (with the possible exceptions of "!" and "#" but that's not 
relevant here)

You must mean .pdrc, which is *not* run as a shell script. However, I have 
just tried without -open and it still works the same. The main difference 
between .pdrc and bash (both script and commandline) is that .pdrc lacks 
quoting, which makes it not possible to specify spaces in paths because 
what pd parses "foo bar" as, bash would get it from "\"foo" "bar\"".

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Mathieu Bouchard | 1 Jul 02:21 2006
Picon

Re: [GEM] libGL problem on ubuntu

On Fri, 30 Jun 2006, patco wrote:

> libGL warning: 3D driver claims to not support visual 0x2b
> libGL warning: 3D driver claims to not support visual 0x2c
> libGL warning: 3D driver claims to not support visual 0x2d
> __driCreateNewScreen_20050727 - succeeded
> libGL warning: 3D driver claims to not support visual 0x22
> libGL warning: 3D driver claims to not support visual 0x23
> libGL warning: 3D driver claims to not support visual 0x24

Is there a way to access the actual names of the visuals?

I've found a command called "xvinfo" that you can run to get a list of 
visuals and other capabilities. I get all from 0x23 to 0x2a.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Mathieu Bouchard | 1 Jul 02:40 2006
Picon

Re: converting decimal to binary

On Thu, 29 Jun 2006, Federico wrote:

> and also: if you divide any fib number by its preceeding number, you get
> the "magic" number (the one of Pitagora's sectio aurea)
> (this works better with numbers > 100)

This is because if a is the golden section and b=-1/a, then:

   Fib(n) = (a^n - b^n)/(a-b)

so:

   Fib(n+1)/Fib(n) = (a^(n+1) - b^(n+1))/(a^n - b^n)

and because |b|<1, b^n converges towards zero, so:

   lim n->infinity Fib(n+1)/Fib(n)
      = lim n->infinity a^(n+1)/a^n
      = a

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Mathieu Bouchard | 1 Jul 02:53 2006
Picon

Re: converting decimal to binary

On Fri, 30 Jun 2006, Chuckk Hubbard wrote:

> It is an approximation, and gets closer and closer, and it works if you 
> start with ANY 2 positive numbers and make a Fibonacci-esque series from 
> them.  You could start with 2 and 417, then 419, 836, 1255, etc, and 
> gradually the ratios of consecutive members of the series start to 
> approach the golden ratio.

This is because defining Newfib(1)-Newfib(0)!=1 just multiplies Fibonacci 
by a constant, which cancels out when taking ratios; and redefining 
Newfib(0) != 0 only shifts it like Newfib(n) = Fib(n+c), though c might be 
fractional (you normally have to use the formula i gave in the previous 
mail to get Fibonacci values on the positive real domain)

> The golden ratio is defined by x=1/x + 1

More usually like x^2 - x - 1 = 0, which is really the same thing.
Note how it looks like Fib(n+2) - Fib(n+1) - Fib(n) = 0 !
You may consider Fib(n+c) = x^c for extra fun.

> when you take, for instance, 13/8, that is 1 + 5/8... or 21/13 is 1 + 
> 8/13... 34/21 is 1 + 13/21, because of the way you obtain each number. 
> Always 1 + the reciprocal of the previous ratio.  So you will never 
> quite reach the golden ratio, but you alternately go slightly higher and 
> slightly lower, getting gradually closer.

BTW, Euclid's way of simplifying fractions (greatest common divisor) is 
slowest with consecutive Fibonacci numbers. Its average and worst running 
times are multiples of log((a+1/a)*n)/log(a), where a is the golden ratio.

(Continue reading)

Mathieu Bouchard | 1 Jul 03:27 2006
Picon

Re: converting decimal to binary

On Tue, 27 Jun 2006, Chuckk Hubbard wrote:

> Maybe Federico's idea could be modified:
> [expr $f1>>$f2&1]
> and increment $f2 indefinitely?

Note that $f2 may or may not be mod 32 or mod 64 depending on which 
processor it's run on. Also, the >> operator is run in the int32 domain, 
so $f1 = 4e+09 will result in some negative value no matter what $f2 is.

If >> was really executed in float32, instead all outputs would be zero 
starting at some value of $f2 before $f2=127.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
dafydd hughes | 1 Jul 03:21 2006
Picon

Re: pds sync

Hi Nikola

I would use netsend/netreceive or OSC with localhost.

cheers
dafydd

On 6/30/06, Nikola Jeremic <nikola.jeremic <at> googlemail.com> wrote:
> Hi list
> short question...
> how to sync two pd instances on the same computer (ubuntu or dyne pc)
> I need to send metro or bangs from one to another
>
> Thx
> Nikola
> --
> njeremic.musicpage.de
> buka.played.by
>
> _______________________________________________
> PD-list <at> iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>

--

-- 
www.sideshowmedia.ca
www.myspace.com/dafyddhughes
www.myspace.com/thedeborahs

_______________________________________________
(Continue reading)

Mathieu Bouchard | 1 Jul 05:33 2006
Picon

Re: Feature Request: trigger editing

On Mon, 26 Jun 2006, IOhannes m zmoelnig wrote:

> i guess the reason is: simplicity on the implementation side. pd has no 
> idea about which part of the object has been deleted, it just destroys 
> the old object (e.g. [t b b b]) and instantiates a new object (e.g. [t b 
> b]); btw. sometimes it is pretty hard (even for humans and cats) to know 
> which part has been deleted by just looking at the "before and after"

even for dolphins and mice and betelgeuseans and paranoid androids.

> i guess we all agree that it would be a fine feature.
> i guess nobody wants to implement it, though...

[t] needs to be a GUI object with right-click "Insert Outlet..." and 
"Delete Outlet..." or something.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
patco | 1 Jul 11:27 2006
Picon

Sending OSC packets with a php script

Hello, I've found this php script for sending OSC packets:

http://www.a2hd.com/software/OSC.phps

i've modified the test (at the end of the script) for avoiding errors:
_____________________________________________________

/** Run some tests to make sure the library behaves in a sane way.
  */
function test_osc_lib() {

    $c = new OSCClient();
    $c->set_destination("localhost", 3333);
    /**
    $m1 = new OSCMessage("/test", array(new Timetag(3294967295, 5), new Infinitum(), new Blob("aoeuaoeu!")));
    $m1->add_arg(28658.93, "d");
    */
    $m2 = new OSCMessage("/bar", array(test, one, two));

    $b = new OSCBundle();
    $b->add_dat agram($m1);
    $b->add_datagram($m2);

    $b2 = new OSCBundle(array($m1, $b));

    //echo $b2->get_human_readable();

    //echo $m1->get_human_readable();

    $c->send($m2);

}

// Uncomment to run the test
 test_osc_lib();

?>
___________________________________________________


For testing it, just load attached patch and

run the PHP script with a server that allows socket_create()

Patco.



Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
#N canvas 0 0 454 304 12;
#X obj 125 92 dumpOSC 3333;
#X obj 121 151 OSCroute /bar;
#X obj 118 214 print bar;
#X obj 248 152 print dumped;
#X text 69 26 receive messages sent by OSC.php;
#X connect 0 0 3 0;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Frank Barknecht | 1 Jul 11:52 2006

Re: Feature Request: trigger editing

Hallo,
Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:

> [t] needs to be a GUI object with right-click "Insert Outlet..." and 
> "Delete Outlet..." or something.

Uuhaa, that sounds terrible. I'd rather create a [t a b a b a b a b]
big enough in advance... ;)

Ciao
--

-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__

_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

Nikola Jeremic | 1 Jul 12:36 2006

Re: pds sync

thx, works ;)

On Saturday 01 July 2006 03:21, dafydd hughes wrote:
> Hi Nikola
>
> I would use netsend/netreceive or OSC with localhost.
>
> cheers
> dafydd
>
> On 6/30/06, Nikola Jeremic <nikola.jeremic <at> googlemail.com> wrote:
> > Hi list
> > short question...
> > how to sync two pd instances on the same computer (ubuntu or dyne pc)
> > I need to send metro or bangs from one to another
> >
> > Thx
> > Nikola
> > --
> > njeremic.musicpage.de
> > buka.played.by
> >
> > _______________________________________________
> > PD-list <at> iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> > http://lists.puredata.info/listinfo/pd-list

--

-- 
njeremic.musicpage.de
buka.played.by

_______________________________________________
PD-list <at> iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list


Gmane