Re: [PD] [OT] SSE/MMX tips?

2011-09-08 Thread Mathieu Bouchard

On Wed, 7 Sep 2011, Charles Henry wrote:

On Wed, Sep 7, 2011 at 7:59 PM, Mathieu Bouchard ma...@artengine.ca wrote:

On Wed, 7 Sep 2011, Mathieu Bouchard wrote:

On Wed, 7 Sep 2011, Bill Gribble wrote:

So far iteration on plain floats seems to be the best I can come up with,
but HADDPS is tantalizingly close to what I want to do.  Any hints?

Sorry, what's HADDPS?


http://www.rz.uni-karlsruhe.de/rz/docs/VTune/reference/HADDPS--Packed_Single-FP_Horizontal_Add.htm


This is really interesting.  Your compiler probably knows how to
optimize this kind of information.


How can you tell that ? I bet it doesn't...

What could it be doing about a scan like this, anyway ?

btw, has anyone looked at the «restrict» keyword yet ?

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


Re: [PD] OSC Confusion

2011-09-08 Thread Roman Haefeli
On Wed, 2011-09-07 at 21:00 -0700, Jim Aikin wrote:

 
 This leads me to a concatenation of questions.
 
 (1) Does the fact that OSCroute, sendOSC, and dumpOSC are deprecated 
 mean that they actually don't work, or do they still work?

They probably still work, but are not maintained actively anymore and
are known to be buggy. The mrpeach OSC object classes are more low
level, but also more flexible, less buggy and actively maintained

 (2) Where can I get a version of Pd-extended that includes the new, 
 preferred OSC objects?

They most likely are included in your version already. Pd-extended does
_not_ load _all_ libraries by default, which is IMHO a good thing. You
can easily load a library from your patch by putting a [import mrpeach]
in it.

 (3) If there is no such version, how exactly would I go about 
 incorporating them in 0.42.5?

Not necessary.

 (4) What sort of patching will I need to do in order to connect the 
 mrpeach objects with the [udp] objects after I've installed them, and 
 where is this patching documented?

Check the helpfiles for [packOSC] and [unpackOSC], they show how to hook
up the OSC object classes with the net (udp|tcp) object classes.


 Sorry to be a pest about this. Right at the moment I'm trying to 
 document the usage of OSC to let Pd communicate with Csound. Andres 
 Cabrera's very nice tutorial video (on YouTube) uses the old Pd objects. 
 I'd like to use the new objects in the tutorial I'm writing, but I can 
 hardly do so when I don't understand where the objects are or how to 
 install them.

Cool. I strongly recommend to use the mrpeach OSC classes.

BTW: you find a lot of info in the mailing list archives about this
topic.

Roman


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


[PD] [PD-announce] Origination and Metacreation: a conversation with Ben Bogart

2011-09-08 Thread Marco Donnarumma
Dear all,

it's with great pleasure that I share with you this piece.
I had an inspiring, in-depth conversation with artist and fellow Pd'er Ben
Bogart over the last months, and this is the result:

http://vagueterrain.net/content/2011/09/origination-and-metacreation-conversation-ben-bogart

Tags: MAM, creativity, machine imagination, innovation+open source,
techno-cultural methodology, awareness+ubiquitous computing, tech
distribution,

Thanks Ben, Greg @VT,
best wishes,

-- 
Marco Donnarumma
Independent New Media and Sonic Arts Practitioner, Performer, Teacher
ACE, Sound Design MSc by Research (ongoing)
The University of Edinburgh, UK
~
Portfolio: http://marcodonnarumma.com
Research: http://res.marcodonnarumma.com | http://www.thesaddj.com |
http://www.flxer.net
Director: http://www.liveperformersmeeting.net
___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] ternary counting

2011-09-08 Thread tim vets
Hello,
Does anyone have an example of how to do ternary counting in pd?
00
01
02
10
11
12
20
21
22
...etc

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


Re: [PD] [OT] SSE/MMX tips?

2011-09-08 Thread Charles Henry
On Thu, Sep 8, 2011 at 1:02 AM, Mathieu Bouchard ma...@artengine.ca wrote:
 On Wed, 7 Sep 2011, Charles Henry wrote:

 On Wed, Sep 7, 2011 at 7:59 PM, Mathieu Bouchard ma...@artengine.ca
 wrote:

 On Wed, 7 Sep 2011, Mathieu Bouchard wrote:

 On Wed, 7 Sep 2011, Bill Gribble wrote:

 So far iteration on plain floats seems to be the best I can come up
 with,
 but HADDPS is tantalizingly close to what I want to do.  Any hints?

 Sorry, what's HADDPS?

 http://www.rz.uni-karlsruhe.de/rz/docs/VTune/reference/HADDPS--Packed_Single-FP_Horizontal_Add.htm

 This is really interesting.  Your compiler probably knows how to
 optimize this kind of information.

 How can you tell that ? I bet it doesn't...

Yeah, I thought it over.  I was wrong.
I was also wrong about SSE4.2--AVX is the new instruction set with
256-bit wide operations.

 What could it be doing about a scan like this, anyway ?
fft-multiply by 2*pi*i*f-ifft and fall over...

I dunno, but I'm working on it a bit.

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


Re: [PD] ternary counting

2011-09-08 Thread Andy Farnell

Try a [div] [mod] chain

Four digits base 3 would be

base 10
|
[t f f]_[mod 3]_ D0
|
[div 3]
|
[t f f]_[mod 3]_ D1
|
[div 3]
|
[t f f]_[mod 3]_ D2
|
div 3]
|
[t f f]_[mod 3]_ D3
|
etc. for more digits

On Thu, 8 Sep 2011 15:19:03 +0200
tim vets timv...@gmail.com wrote:

 Hello,
 Does anyone have an example of how to do ternary counting in pd?
 00
 01
 02
 10
 11
 12
 20
 21
 22
 ...etc
 
 thanks,
 Tim


-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


Re: [PD] [OT] SSE/MMX tips?

2011-09-08 Thread Mathieu Bouchard

On Wed, 7 Sep 2011, Bill Gribble wrote:


It's really just for fun anyway.


Well, if you wanted to really use SSE in that case, it would be 
appropriate to process 4 interleaved signals at once, or at least two.


Btw, if you want something fun, consider :

  a+b = (a^b) + ((ab)1)

that is, addition of ints can be split into a variable number of steps :

  int add (int a, int b) {return b ? add(a^b,(ab)1) : a;}

where the number of steps is the number of consecutive carries (of ones) 
it has to do. (how many average steps does that make, for random ints ?)


I've always found this formula fascinating, but I'm still waiting for the 
occasion to make use of it, 15 years later :)


 ___
| Mathieu Bouchard  tél: +1.514.383.3801  Villeray, Montréal, QC
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] ternary counting

2011-09-08 Thread tim vets
perfect, thanks :)
Tim

2011/9/8 Andy Farnell padawa...@obiwannabe.co.uk


 Try a [div] [mod] chain

 Four digits base 3 would be

 base 10
 |
 [t f f]_[mod 3]_ D0
 |
 [div 3]
 |
 [t f f]_[mod 3]_ D1
 |
 [div 3]
 |
 [t f f]_[mod 3]_ D2
 |
 div 3]
 |
 [t f f]_[mod 3]_ D3
 |
 etc. for more digits

 On Thu, 8 Sep 2011 15:19:03 +0200
 tim vets timv...@gmail.com wrote:

  Hello,
  Does anyone have an example of how to do ternary counting in pd?
  00
  01
  02
  10
  11
  12
  20
  21
  22
  ...etc
 
  thanks,
  Tim


 --
 Andy Farnell padawa...@obiwannabe.co.uk

 ___
 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] ternary counting

2011-09-08 Thread Mathieu Bouchard

On Thu, 8 Sep 2011, Andy Farnell wrote:


Try a [div] [mod] chain

Four digits base 3 would be


Also, to have the counting itself in base 3, chain counters that count 
0,1,2,0,1,2,0,1,2,... in which each counter adds a 1 to the counter on the 
left whenever it goes from 2 to 0.


This makes a sequence like 00 01 02 10 11 12 20 21 22 as Tim wants.

This can be converted back to another number format using the opposite of 
what Andy showed :


take D3
multiply by 3
add D2
multiply by 3
add D1
multiply by 3
add D0

But the output of this, and the input of Andy's, is not necessarily in 
base 10. It is actually in the base that [mod], [div], [*] and [+] are in, 
and in the case of Pd, that's in binary.


libc's printf() function does something very much like what Andy said, to 
convert its binary ints to decimal ascii. The differences are that it says 
10 instead of 3, and it adds 48 to each digit because codes 48 through 57 
represent the 10 digits.


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


Re: [PD] ternary counting

2011-09-08 Thread Lorenzo Sutton


On 08/09/2011 15:39, Andy Farnell wrote:


Try a [div] [mod] chain

Four digits base 3 would be

base 10
|
[t f f]_[mod 3]_ D0
|
[div 3]
|
[t f f]_[mod 3]_ D1
|
[div 3]
|
[t f f]_[mod 3]_ D2
|
div 3]
|
[t f f]_[mod 3]_ D3
|
etc. for more digits

On Thu, 8 Sep 2011 15:19:03 +0200
tim vetstimv...@gmail.com  wrote:


Hello,
Does anyone have an example of how to do ternary counting in pd?
00
01
02
10
11
12
20
21
22
...etc

thanks,
Tim


Maybe also something like this (still using [mod 3] and [div 3] as Andy 
suggested)?


Lorenzo
#N canvas 573 124 444 395 10;
#X obj 84 169 mod 3;
#X obj 32 69 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X floatatom 84 196 5 0 0 0 - - -;
#X obj 32 95 f 0;
#X msg 78 67 0;
#X text 111 65 reset;
#X symbolatom 32 311 10 0 0 0 - - -;
#X floatatom 32 196 5 0 0 0 - - -;
#X obj 32 169 div 3;
#X obj 67 95 + 1;
#X floatatom 32 141 5 0 0 0 - - -;
#X obj 32 222 * 10;
#X obj 32 259 +;
#X obj 84 222 t b f;
#X obj 32 286 makefilename %08d;
#X obj 126 311 cnv 15 140 25 empty led 0301 20 12 0 14 -1 -4034
0;
#X msg 34 331 label \$1;
#X obj 34 354 s led;
#X obj 32 30 metro 1000;
#X obj 32 3 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 13 0;
#X connect 3 0 9 0;
#X connect 3 0 10 0;
#X connect 4 0 3 1;
#X connect 6 0 16 0;
#X connect 7 0 11 0;
#X connect 8 0 7 0;
#X connect 9 0 3 1;
#X connect 10 0 8 0;
#X connect 10 0 0 0;
#X connect 11 0 12 0;
#X connect 12 0 14 0;
#X connect 13 0 12 0;
#X connect 13 1 12 1;
#X connect 14 0 6 0;
#X connect 16 0 17 0;
#X connect 18 0 1 0;
#X connect 19 0 18 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] list interlace ?

2011-09-08 Thread tim vets
what's the best way to 'interlace' two lists, i.e. turn:
1 2 3 4 and 5 6 7 8
into
1 5 2 6 3 7 4 8
?
thanks,
Tim
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Python Externals for OSX

2011-09-08 Thread Pagano, Patrick
Hello

Is there a compiled version of pyEXT for macintosh out there?
I have a new graduate student here versed in python that wants to tweak pd with 
twitter and python and I wanted to have him look at those patches
I may have fooled with  them only on windows though

Thanks is advance

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


Re: [PD] list interlace ?

2011-09-08 Thread João Pais

[sfruit/list-zip]. or you do some fancy list-drip+mix abstraction.


what's the best way to 'interlace' two lists, i.e. turn:
1 2 3 4 and 5 6 7 8
into
1 5 2 6 3 7 4 8
?
thanks,
Tim



--
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] list interlace ?

2011-09-08 Thread hardoff goes bananas
if you're only using floats, and not symbols, what about just creating two
tables, and then just alternating [tabread] between each table, sending the
outputs into an accumulating list

[list]x[t a]

?




On Fri, Sep 9, 2011 at 1:13 AM, João Pais jmmmp...@googlemail.com wrote:

 [sfruit/list-zip]. or you do some fancy list-drip+mix abstraction.


  what's the best way to 'interlace' two lists, i.e. turn:
 1 2 3 4 and 5 6 7 8
 into
 1 5 2 6 3 7 4 8
 ?
 thanks,
 Tim



 --
 Friedenstr. 58
 10249 Berlin (Deutschland)
 Tel +49 30 42020091 | Mob +49 162 6843570
 Studio +49 30 69509190
 jmmmp...@googlemail.com | skype: jmmmpjmmmp

 __**_
 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] Python Externals for OSX

2011-09-08 Thread patrick

http://g.org/ext/beta/macos/pd/

from:
http://puredata.info/Members/thomas/py/?searchterm=pyext

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


Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-08 Thread Hans-Christoph Steiner


On Sep 7, 2011, at 5:46 PM, Jonathan Wilkes wrote:


- Original Message -


From: Hans-Christoph Steiner h...@at.or.at
To: Jonathan Wilkes jancs...@yahoo.com
Cc: fbar f...@footils.org; pd-list@iem.at pd-list@iem.at
Sent: Tuesday, September 6, 2011 4:04 PM
Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers  
in a text file



On Sep 6, 2011, at 12:30 PM, Jonathan Wilkes wrote:


- Original Message -


From: fbar f...@footils.org
To: pd-list@iem.at pd-list@iem.at
Cc:
Sent: Tuesday, September 6, 2011 3:53 AM
Subject: Re: [PD] (breaking symbols) was Re: find a list of  
numbers in

a text file


On Tue, Sep 06, 2011 at 09:44:33AM +0200, Frank Barknecht wrote:

I'm not sure what appears in the patch should mean.

It

definitly means

that numercial-symbol selectors don't get shown and cannot be

written

into a patch, so you cannot use them in the editor where

real

selectors should be written, like in [route].


Forgot to add: Of course it is possible and legal to use

numerical

or
non-printable symbols as selectors, but they have to be constructed
dynamically and cannot be typed, in accordance with the  
restrictions

mentioned in the manual. Instead something like this can be used:

   [makefilename %d]
   |
   |  [makefilename %d]
   |  |
   [select symbol-dummy]

I used [makefilename %d] a lot in the rj library's [m_chorddict]
dictionary for chords, where some chord names are proper symbols,  
like

m7, while others are floats like 7. The float-names get

converted to

symbols internally to look up chord notes in a data structure array
keyed by symbols only (using [m_symbolarray]).


At what point are you using numerical-symbol selectors?  Everything

you've

described has the selector 'symbol'.

If you mean you let the user send symbols or floats as the key and  
convert

internally, that's _exactly_ what I'm proposing.


I guess I'm not clear on your proposal.  Is it that a symbol
selector automatically converts things to a symbol?  That makes a  
lot of sense,
and would help with other issues.  Then you could also make symbols  
with spaces,

like:

[symbol 43(
[symbol /home/hans/My Documents(


Well, that's something I've wanted for a long time.  But what I am  
proposing has to do with

selectors, not symbol messages.

Problem: convert from symbol-atom to float-atom
Proposal: if a selector happens to be in a form that can be  
interpreted by the
naked eye as a valid Pd float, and the object receiving the message  
has a float method

(and no anything method), then send a float to the object.

[r infinite-expressivity]
|
[1( - float
|
[makefilename %d] -- converted to symbol message (and the message  
arg is convert to a symbol-atom)

|
[list trim] -- now we have a message with the selector 1 and no  
arguments

|
[route float] -- seriously, it's a symbol-atom, not a float
 |
+
|
[float] -- my proposal: give [float] a float-atom instead of a  
symbol-atom in this case

|
[route float]
|
[set $1, bang(
|
[s infinite-expressivity]

But if there were a really nice quoting mechanism, that would  
probably be much clearer.


Yes, I agree that [float] and [symbol] should also do conversions.  A  
good example would be Python's str() and float().




etc.

A quoting mechanism would also help.  We could probably get away  
with only

\.  For example, \ for spaces, like:

[symbol /home/hans/My\ Documents(
[symbol I\ like\ lots\ of\ \ \ \ \ spaces(
[symbol commas\,\ in\ symbols(
[symbol semi-colon\;\ in\ symbols(


That looks really ugly to me.  What's wrong with quotes?


The nice part would be that it would only add one special character,  
\, which is currently not allowed anyway.  Adding  or '' or ``  
quotes means some kind of backwards incompatibility, since '` are  
currently all valid characters to have in a symbol.  Another easy  
option would be to use


I think this would be made much easier if the symbol selector forced  
the message to be a symbol, then you could do:


[symbol /home/hans/My Documents(
[symbol I like lots of\ \ \ \ \ spaces(
[symbol commas\, in symbols(
[symbol semi-colon\; in symbols(
[symbol \43(
[symbol \-21343(
[symbol \-0.2e59(

Then you'd only need the \ when its in other places, like:

[route \43]


And last but least, and its already in there:

[symbol \43(
[symbol \-21343(
[symbol \-0.2e59(

Anything that just \ couldn't cover?


[openpanel] - outputs /home/hans/My documents
|
[set symbol $1(
|
[ ( -- What's printed here? ...My documents or ...My\ documents?



Depends on what the symbol selector does.  If the symbol selector  
forces the rest of the message to be a symbol, then there wouldn't  
need to be any backslashes there.  But it would probably be a good  
idea to have them there anyway.


.hc




kill your television



___

Re: [PD] list interlace ?

2011-09-08 Thread Mathieu Bouchard

On Thu, 8 Sep 2011, tim vets wrote:


what's the best way to 'interlace' two lists, i.e. turn:
1 2 3 4 and 5 6 7 8
into
1 5 2 6 3 7 4 8
?


It's usually called interleaving.

If they are all floats, the fastest is something like this :

[list prepend 1 4 f #]
 |
[#join 0]---[list prepend 1 4 f #]
 |
[#transpose]
 |
[#to_l]

where the 1 4 f # prefix means you want to make a grid of 1 row and 
4 columns of floats. Then in contact with grid-inlets, those prefixed 
lists become grids of 1 by 4.


[#join] joins them by the dimension 0, which makes a single grid of 
(1+1=2) rows by 4 columns.


[transpose] swaps the first two dimensions, which makes a grid of 4 
rows by 2 columns.


[#to_l] makes a list of 8 elements, row after row.

Of course you can instead use a [list append] and messagebox containing :

  $1 $5 $2 $6 $3 $7 $4 $8

and in that particular case, it's more efficient, but the GridFlow 
solution works for any list length, and is probably more efficient for big 
lists...


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


Re: [PD] list interlace ?

2011-09-08 Thread tim vets
thanks guys, I went with the sfruit/list-zip solution...

2011/9/8 hardoff goes bananas hard@gmail.com

 if you're only using floats, and not symbols, what about just creating two
 tables, and then just alternating [tabread] between each table, sending the
 outputs into an accumulating list

 [list]x[t a]

 ?




 On Fri, Sep 9, 2011 at 1:13 AM, João Pais jmmmp...@googlemail.com wrote:

 [sfruit/list-zip]. or you do some fancy list-drip+mix abstraction.


  what's the best way to 'interlace' two lists, i.e. turn:
 1 2 3 4 and 5 6 7 8
 into
 1 5 2 6 3 7 4 8
 ?
 thanks,
 Tim



 --
 Friedenstr. 58
 10249 Berlin (Deutschland)
 Tel +49 30 42020091 | Mob +49 162 6843570
 Studio +49 30 69509190
 jmmmp...@googlemail.com | skype: jmmmpjmmmp

 __**_
 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] list interlace ?

2011-09-08 Thread tim vets
2011/9/8 Mathieu Bouchard ma...@artengine.ca

 On Thu, 8 Sep 2011, tim vets wrote:

  what's the best way to 'interlace' two lists, i.e. turn:
 1 2 3 4 and 5 6 7 8
 into
 1 5 2 6 3 7 4 8
 ?


 It's usually called interleaving.

 If they are all floats, the fastest is something like this :

 [list prepend 1 4 f #]
  |
 [#join 0]---[list prepend 1 4 f #]
  |
 [#transpose]
  |
 [#to_l]

 where the 1 4 f # prefix means you want to make a grid of 1 row and 4
 columns of floats. Then in contact with grid-inlets, those prefixed lists
 become grids of 1 by 4.

 [#join] joins them by the dimension 0, which makes a single grid of (1+1=2)
 rows by 4 columns.

 [transpose] swaps the first two dimensions, which makes a grid of 4 rows by
 2 columns.

 [#to_l] makes a list of 8 elements, row after row.

 Of course you can instead use a [list append] and messagebox containing :

  $1 $5 $2 $6 $3 $7 $4 $8

 ha good one, I didn't think of that.
In my case the lists are not big but there are many.
I may try that solution too, see if it improves speed...
thanks,
Tim



 and in that particular case, it's more efficient, but the GridFlow solution
 works for any list length, and is probably more efficient for big lists...

  __**__**
 ___
 | Mathieu Bouchard  tél: +1.514.383.3801  Villeray, Montréal, QC
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] list interlace ?

2011-09-08 Thread Mathieu Bouchard

On Fri, 9 Sep 2011, hardoff goes bananas wrote:


if you're only using floats, and not symbols, what about just creating two 
tables, and then just alternating [tabread] between each table, sending the 
outputs into an
accumulating list
[list]x[t a]


[list]x[t a] is quite slow. But then, so is [sfruit/list-zip] and several 
others.


they tend to be N² algorithms... that is, for doing work on a list of size 
10, they have to do something in 1+2+3+4+5+6+7+8+9+10=55 steps, or 
anything else in which the time taken increases in such a steep fashion.


It's not about the time it takes for a list of size 10, it's about how 
quickly it gets worse when you increase the size of the lists you feed 
them.


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


Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-08 Thread Hans-Christoph Steiner

On Sep 8, 2011, at 12:59 PM, Hans-Christoph Steiner wrote:

 
 On Sep 7, 2011, at 5:46 PM, Jonathan Wilkes wrote:
 
  - Original Message -
  
   From: Hans-Christoph Steiner h...@at.or.at
   To: Jonathan Wilkes jancs...@yahoo.com
   Cc: fbar f...@footils.org; pd-list@iem.at pd-list@iem.at
   Sent: Tuesday, September 6, 2011 4:04 PM
   Subject: Re: [PD] (breaking symbols) was Re: find a list of
   numbers in a text file
   
   
   On Sep 6, 2011, at 12:30 PM, Jonathan Wilkes wrote:
   
- Original Message -

 From: fbar f...@footils.org
 To: pd-list@iem.at pd-list@iem.at
 Cc:
 Sent: Tuesday, September 6, 2011 3:53 AM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of
 numbers in
   a text file
 
 On Tue, Sep 06, 2011 at 09:44:33AM +0200, Frank Barknecht
 wrote:
  I'm not sure what appears in the patch should mean.
   It
 definitly means
  that numercial-symbol selectors don't get shown and cannot
  be
   written
  into a patch, so you cannot use them in the editor where
   real
  selectors should be written, like in [route].
 
 Forgot to add: Of course it is possible and legal to use
   numerical
 or
 non-printable symbols as selectors, but they have to be
 constructed
 dynamically and cannot be typed, in accordance with the
 restrictions
 mentioned in the manual. Instead something like this can be
 used:
 
   [makefilename %d]
   |
   |  [makefilename %d]
   |  |
   [select symbol-dummy]
 
 I used [makefilename %d] a lot in the rj library's
 [m_chorddict]
 dictionary for chords, where some chord names are proper
 symbols, like
 m7, while others are floats like 7. The float-names get
   converted to
 symbols internally to look up chord notes in a data structure
 array
 keyed by symbols only (using [m_symbolarray]).

At what point are you using numerical-symbol selectors?
 Everything
   you've
described has the selector 'symbol'.

If you mean you let the user send symbols or floats as the key
and convert
internally, that's _exactly_ what I'm proposing.
   
   I guess I'm not clear on your proposal.  Is it that a symbol
   selector automatically converts things to a symbol?  That makes a
   lot of sense,
   and would help with other issues.  Then you could also make
   symbols with spaces,
   like:
   
   [symbol 43(
   [symbol /home/hans/My Documents(
  
  Well, that's something I've wanted for a long time.  But what I am
  proposing has to do with
  selectors, not symbol messages.
  
  Problem: convert from symbol-atom to float-atom
  Proposal: if a selector happens to be in a form that can be
  interpreted by the
  naked eye as a valid Pd float, and the object receiving the message
  has a float method
  (and no anything method), then send a float to the object.
  
  [r infinite-expressivity]
  |
  [1( - float
  |
  [makefilename %d] -- converted to symbol message (and the message
  arg is convert to a symbol-atom)
  |
  [list trim] -- now we have a message with the selector 1 and no
  arguments
  |
  [route float] -- seriously, it's a symbol-atom, not a float
  |
  +
  |
  [float] -- my proposal: give [float] a float-atom instead of a
  symbol-atom in this case
  |
  [route float]
  |
  [set $1, bang(
  |
  [s infinite-expressivity]
  
  But if there were a really nice quoting mechanism, that would
  probably be much clearer.
 
 Yes, I agree that [float] and [symbol] should also do conversions.  A
 good example would be Python's str() and float().
 
 
   etc.
   
   A quoting mechanism would also help.  We could probably get away
   with only
   \.  For example, \ for spaces, like:
   
   [symbol /home/hans/My\ Documents(
   [symbol I\ like\ lots\ of\ \ \ \ \ spaces(
   [symbol commas\,\ in\ symbols(
   [symbol semi-colon\;\ in\ symbols(
  
  That looks really ugly to me.  What's wrong with quotes?
 
 The nice part would be that it would only add one special character,
 \, which is currently not allowed anyway.  Adding  or '' or ``
 quotes means some kind of backwards incompatibility, since '` are
 currently all valid characters to have in a symbol.  Another easy
 option would be to use
 
 I think this would be made much easier if the symbol selector forced
 the message to be a symbol, then you could do:
 
 [symbol /home/hans/My Documents(
 [symbol I like lots of\ \ \ \ \ spaces(
 [symbol commas\, in symbols(
 [symbol semi-colon\; in symbols(
 [symbol \43(
 [symbol \-21343(
 [symbol \-0.2e59(
 
 Then you'd only need the \ when its in other places, like:
 
 [route \43]
 
   And last but least, and its already in there:
   
   [symbol \43(
   [symbol \-21343(
   [symbol \-0.2e59(
   
   Anything that just \ couldn't cover?
  
  [openpanel] - outputs /home/hans/My documents
  |
  [set symbol $1(
  |
  [ ( -- What's printed here? ...My 

[PD] [OT] cool book (maybe relevant to list discussion)

2011-09-08 Thread Andy Farnell

Anyone seen this? 

http://pragprog.com/book/btlang/seven-languages-in-seven-weeks

I was flicking through it in Foyles bookshop yesterday and thought of 
many of the discussions we've had here of late. The style and content 
seem somewhat tuned to a web POV, but I think Pders would find something
interesting. Just wondered if anyone else had read more because I'm
tempted to buy it.

a.

-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


Re: [PD] kinect external

2011-09-08 Thread Richie Cyngler
I have libfreenect installed with Homebrew on OSX 10.6.8. Any ideas how to
get this external working with Homebrew please?

thanks

On Fri, Jun 24, 2011 at 2:35 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 Also, I just packaged libfreenect for fink, its not in Fink yet, so you
 need to manually install it.  Put the attached libfreenect.info file into
 /sw/fink/dists/local/main/**finkinfo/libfreenect.info  then run:

 fink scanpackages
 fink index
 fink install libfreenect




 .hc

 On Jun 22, 2011, at 1:50 AM, Budi Prakosa wrote:

  could you send me the script? thanks

 On Tue, Jun 21, 2011 at 11:53 PM, Hans-Christoph Steiner h...@at.or.at
 wrote:


 I just fixed the linking.  Budi, its pretty easy to do, if you use Fink
 for
 libfreenect and libusb, then I can give you a script with makes the
 /Library/pd/fux_kinect package.  Its the same as the one for readanysf~

 .hc

 On Jun 21, 2011, at 5:34 AM, Budi Prakosa wrote:

  i think ftgl and libfreetype should be removed from the binary

 On 6/21/11, IOhannes m zmoelnig zmoel...@iem.at wrote:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2011-06-20 23:53, Hans-Christoph Steiner wrote:


 Ah, yes, I have fink installed and use it for Pd builds.  I included
 FTGL here:


 i cannot test this object, but i guess that it won't do any font
 rendering.
 so why is FTGL linked to/included at all?

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

 iEYEARECAAYFAk4ASmgACgkQkX2Xpv**6ydvQnmACff+**1zV8kfsYdF28QkrUFxApPe
 kOwAn2BBe7R6U/**OpoB7dRyZiffpmdO59
 =vggs
 -END PGP SIGNATURE-




 --
 Budi Prakosa
 house of natural fiber (HONF)
 yogyakarta new media art laboratory
 wora wari A80/6 baciro yogyakarta indonesia
 http://www.natural-fiber.com

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




 --**--**
 

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








 --
 Budi Prakosa
 house of natural fiber (HONF)
 yogyakarta new media art laboratory
 wora wari A80/6 baciro yogyakarta indonesia
 http://www.natural-fiber.com




 --**--**
 

 The arc of history bends towards justice. - Dr. Martin Luther King, Jr.



 ___
 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] Announcing CouchPdb development

2011-09-08 Thread Thomas Mayer

Hello all,

On 03.09.2011 18:36, Mathieu Bouchard wrote:

On Wed, 31 Aug 2011, Thomas Mayer wrote:


I came up with lists: The example above outputs now on the left outlet
list id 1
list name my\ name
list year 2011


Yes, that sounds like the appropriate thing to do with Pd.


After a JSON object is decoded, I output a bang on a second outlet, and
therefore can distinguish between two objects in short succession.


Yes, either that or an 'end' message on the first inlet, but what you
did is more usual.


Here is what I came up for arrays and nested objects:
If they come up inside an object, they are output as the symbol that 
they are. The JSON string can then be parsed by another instance of 
[json-decode] (or send it recursively to the same object).


Arrays as symbols themselves are parsed like several seperate objects. 
Here is an example:


Consider the JSON string
{id: 1, name: Residuum,member: {first-name: Thomas, 
last-name: Mayer}, albums: [{year: 2011, name: Der 
Diskokeller des Grauens}, {year: 2009, name: Schrei-Funk-Flaeche}]}


When parsed with an instance of [json-decode] this will output
list id 1
list name Residuum
list member {first-name: Thomas, last-name: Mayer}
list albums [{year: 2011, name: Der Diskokeller des Grauens}, 
{year: 2009, name: Schrei-Funk-Flaeche}]


followed by a bang on the second outlet.

When parsing the array for albums, i.e.
[{year: 2011, name: Der Diskokeller des Grauens}, {year: 2009, 
name: Schrei-Funk-Flaeche}]


This will output:
list year 2011
list name Der\ Diskokeller\ des\ Grauens
bang on second outlet
list year 2009
list name Schrei-Funk-Flaeche
bang on second outlet

The current version is available at https://github.com/residuum/CouchPdb

Thanks for reading,
Thomas
--
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/

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


Re: [PD] Python Externals for OSX

2011-09-08 Thread Pagano, Patrick
This is great it has a compiled version of py, thanks
I assume pyext is different, do you have a compiled version of it?
I am hoping Thomas will see this and shed a light on it too

Thanks everyone

pp

On 9/8/11 12:48 PM, patrick pured...@11h11.com wrote:

http://g.org/ext/beta/macos/pd/

from:
http://puredata.info/Members/thomas/py/?searchterm=pyext

___
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] Python Externals for OSX

2011-09-08 Thread Pagano, Patrick
Sorry, after downloading the .py scripts everything seems to be loading
and working 

pp

On 9/8/11 5:33 PM, Pagano, Patrick p...@digitalworlds.ufl.edu wrote:

This is great it has a compiled version of py, thanks
I assume pyext is different, do you have a compiled version of it?
I am hoping Thomas will see this and shed a light on it too

Thanks everyone

pp

On 9/8/11 12:48 PM, patrick pured...@11h11.com wrote:

http://g.org/ext/beta/macos/pd/

from:
http://puredata.info/Members/thomas/py/?searchterm=pyext

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


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


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


Re: [PD] [OT] cool book (maybe relevant to list discussion)

2011-09-08 Thread Mathieu Bouchard

On Thu, 8 Sep 2011, Andy Farnell wrote:


I was flicking through it in Foyles bookshop yesterday and thought of
many of the discussions we've had here of late. The style and content
seem somewhat tuned to a web POV, but I think Pders would find something
interesting. Just wondered if anyone else had read more because I'm
tempted to buy it.


Where did you find the web-related content ?

I couldn't see any in two two downloadable chapters.

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


Re: [PD] pduino rewrite

2011-09-08 Thread Ingo
I could not open any patch at all! Neither Natty nor Windows XP worked.
I am still on Pd-extended 0.42.5.
There is a huge list of stuff (not pd library related) missing.

So far this doesn't look like it's improving any dependency problem.

Ingo


 buenas tutti
 
 roman  me did some rewrite on the pduino - citing the README:
 
 Pduino - improved
 -
 
 All Pd patches are based on the official Pduino (version 0.5beta8)
 maintained by Hans-Christoph Steiner.
 
 
 The goals of the improvements are:
 
* Get rid of avoidable dependencies on other external/abstraction
  libraries
 
* Update help- and test-patches in accordance to current Firmata
 
* Create 'intuitive' and easy-to-understand GOP abstraction
 
 
 Dependencies:
 
* comport
 
* pdstring library from moocow
 
 you'll find the patches here:
 https://github.com/reduzent/pduino
 
 the GOP-abstraction is still in tango alpha state aka not useable at all.
 so basically arduino.pd  arduino-help.pd should be of interest. as they
 went thru some changes - most important the
 dependencies are reduce to the minimum.
 check it out  report


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


Re: [PD] pduino rewrite

2011-09-08 Thread Ingo
OK, I got it!

Downloading the files didn't work (at least not on my Windows computer) but
copying the content into a bunch of text files and renaming them did.

I'll take a look at it later to see if the problems with the 1st and 2nd
digital input as well as my problems with inputs 10 - 13 are gone.

Ingo


 Betreff: Re: [PD] pduino rewrite
 
 I could not open any patch at all! Neither Natty nor Windows XP worked.
 I am still on Pd-extended 0.42.5.
 There is a huge list of stuff (not pd library related) missing.
 
 So far this doesn't look like it's improving any dependency problem.
 
 Ingo
 
 
  buenas tutti
 
  roman  me did some rewrite on the pduino - citing the README:
 
  Pduino - improved
  -
 
  All Pd patches are based on the official Pduino (version 0.5beta8)
  maintained by Hans-Christoph Steiner.
 
 
  The goals of the improvements are:
 
 * Get rid of avoidable dependencies on other external/abstraction
   libraries
 
 * Update help- and test-patches in accordance to current Firmata
 
 * Create 'intuitive' and easy-to-understand GOP abstraction
 
 
  Dependencies:
 
 * comport
 
 * pdstring library from moocow
 
  you'll find the patches here:
  https://github.com/reduzent/pduino
 
  the GOP-abstraction is still in tango alpha state aka not useable at
 all.
  so basically arduino.pd  arduino-help.pd should be of interest. as they
  went thru some changes - most important the
  dependencies are reduce to the minimum.
  check it out  report
 
 
 ___
 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