Re: [PD] vst~ for OSX, any update?

2014-02-12 Thread Matthias Kronlachner

On 13/02/14 07:08, Miller Puckette wrote:

By the way, at the time there seemed to be NO open-source program for Macintosh
that could host plug-ins.  I ended up using Max:)
There is the Plugin Host from the Juce Framework which supports VST2 and 
VST3 (and other plugin formats).

It's GPL. www.juce.com

Matthias

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


Re: [PD] Proposition: Fork of [mtof] for Different tunings

2014-01-26 Thread Matthias Kronlachner

hi!

have a look at this: 
http://lists.puredata.info/pipermail/pd-list/2006-04/037184.html


its an abstraction and python script to use scala tuning files.
for scala you find an enormous amount of different scales/tunings [1].

matthias

[1] http://www.huygens-fokker.org/scala/downloads.html

On 26/01/14 18:03, Thomas Mayer wrote:

Hi,

having just read http://www.gramophone.co.uk/features/focus/tuning, I am
thinking about creating an external similar to [mtof] (maybe something
like [mtof_tuning] which should be able to change to different tuning
systems like the ones outlined in the article, and the tuning should be
settable by init parameters and [set( messages.

Does an object like this already exist?

Note, that I won't start programming in the next few months until I have
more time.

But I think, that such an object would appeal to several Pd users, and
it should not be too hard to build it.

Comments, ideas etc. welcome.

Thanks,
Thomas


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


Re: [PD] OSC-motion for Pure Data

2013-11-17 Thread Matthias Kronlachner

Hi!

I don't see the necessity for this tool.
There is this pd external which gives you all tracking data of the Leap 
Motion.

http://puredatajapan.info/?page_id=1514

It works fine for me.

Matthias

On 11/17/13 6:36 PM, Pagano, Patrick wrote:

Have you all seen this?
https://airspace.leapmotion.com/apps/osc-motion/osx
I grabbed it because i just got a Leap Motion but the help patch on 
the Vimeo help page does not seem to work like the video example. The 
LM.pd fille is the one from the website, the help1 file is my quick 
patch to at least get values.
Anyone else try this? I do not seem to recognize the developers name 
but that does not mean much


cheers~

pp

/Patrick Pagano B.S, M.F.A/
Audio and Projection Design Faculty
Digital Worlds Institute
University of Florida, USA
(352)294-2020


___
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] prevent opening of patches

2013-09-19 Thread Matthias Kronlachner

One more thing can be annoying on OSX:
If you open a second instance of Pd, the same patch as in the first will 
be opened.


One good thing to do is to create an AppleScript for opening Pd from the 
Terminal:


* Open AppleScript Editor and past the line: (of course adapt Pd-.app)

tell application Terminal to do script 
/Applications/Pd-0.45-2.app/Contents/Resources/bin/pd


* Export as Application and put wherever you want.. Now you can open 
multiple instances of Pd with that .app, and patches won't be loaded 
automatically.


Actually funny how complicated things get because of user experience 
optimizations.


Matthias

On 9/18/13 6:22 PM, Peter Venus wrote:

Hello

i assume, you are working on OSX:
got to system preferences,
click on the General Settings tab
un-tick the box restore windows when quitting and re-opening apps
cheers,
Peter

Am 18.09.13 17:05, schrieb IOhannes m zmölnig:

On 09/18/13 16:01, Olivier Baudry wrote:

Dear all

Is there any function to prevent the opening of last patch when you
start pd or pd-extended?


how do you trigger that behaviour?
it doesn't do that here.

fgmasdr
IOhannes



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




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



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


Re: [PD] TouchOSC makes Pd crash, on UbuntuStudio, not in Ubuntu

2013-09-17 Thread Matthias Kronlachner

Now it works fine for me, thanks.

Matthias

On 9/18/13 1:34 AM, Martin Peach wrote:
I think it's all fixed now, in svn. Anything not an OSC message is now 
routed to the rightmost outlet, without prefixing a slash.

Let me know if it works or not for you. Thanks for finding the bug!

Martin

On 2013-09-16 17:22, Matthias Kronlachner wrote:

ok its even more simple than that..
a |bang( crashes routeOSC :-)

and a bang is sent to the outlet of routeOSC if a message has no
argument...

On 9/16/13 11:51 PM, Martin Peach wrote:

OK, thanks for this.
Any idea what the message is that is causing the crash?
Is it valid OSC?

Martin



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







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


Re: [PD] TouchOSC makes Pd crash, on UbuntuStudio, not in Ubuntu

2013-09-16 Thread Matthias Kronlachner

Hi!

I experience this bug today as well.
Attached is a Pd-patch that simulates this crash caused by the message 
TouchOSC is sending if page is turned (although this can be changed in 
the TouchOSC editor!).


This is the gdb output:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x
0x045f1c59 in routeOSC_list (x=0x5e5990, s=0x0, argc=0, argv=0x0) at 
routeOSC.c:410
410if (argv[0].a_type == A_SYMBOL) routeOSC_doanything(x, 
argv[0].a_w.w_symbol, argc-1, argv[1]);


I attached an easy fix for routeOSC.c


So either rebuild routeOSC with the fix or change the message TouchOSC 
is sending on page turn.

(This is done by deactivating the auto checkbox below Page, Name and OSC)


Matthias

On 9/16/13 7:46 PM, Martin Peach wrote:
It sounds like you have two issues: one is that the new external 
crashes Pd as soon as it is instantiated, the other is that some OSC 
messages do the same thing when [routeOSC] is involved.

For the second thing, just use
[udpreceive]
|
[unpackOSC]
|
[print]
and switch pages to see what raw message is being sent.
For the first thing, make a new patch and put a [routeOSC] in it and 
see what the console prints.
But then again you don't seem to be able to start Pd at all from the 
console. Is that correct?


Martin


On 2013-09-16 12:08, Mario Mey wrote:

Thanks, Martin. I compiled it and test it. Again, in UbuntuStudio
12.04.3, it makes PureData crash. There's no message, it just crashs.

Is anything I could do to help to avoid that? How could I debug it?

In the other hand, I'm having troubles to launch Pd from console (to see
if any message is there)... it can't open my patch. So, I'm writting
another mail to list.


2013/9/15 Martin Peach martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca

On 2013-09-15 16:12, Mario Mey wrote:

I just downloaded complete PureData from svn... but I want to
compile
only your externals. Is that possible? I think so... how?


 From trunk/externals type
make mrpeach
or
make mrpeach_install
(which doesn't actually install the files, it puts them in
externals/build/lib/pd-extended/extra)

Martin


Thank you.


2013/9/15 Martin Peach martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca


 On 2013-09-14 19:28, Mario Mey wrote:

 Martin Peach, I read somewhere that changing pages in
TouchOSC
 makes Pd
 (or Pd-Ext) to crash. My Pd-Extended doesn't crash, but
this
 error is
 shown: * routeOSC: ignoring empty list….



 That doesn't happen here. There is no such message in the
source code.
 Maybe you have an older version of routeOSC? The OSC
specification
 allows empty messages, and [routeOSC] should output a bang
if it
 routes such a message.
 Older versions of [routeOSC](before March 2012) didn't work
 properly, so you probably just need to find a more recent
one or
 build it from svn.

(http://sourceforge.net/p/__pure-data/svn/HEAD/tree/trunk/__externals/mrpeach/osc/

http://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/mrpeach/osc/)



 Martin



 Today, I've installed Ubuntu Studio 12.04.3 (with
lowlatency
 kernel). It
 seemed that it was a good distro for my use... but
switching
 pages DOES
 make Pd-Extended to crash. I reported-suggested this in
this thread:
http://hexler.net/forum/__viewthread/992/
http://hexler.net/forum/viewthread/992/, where I
wrote some

 other info,
 maybe usefull.

 The config where it doesn't crash:

 /Ubuntu 12.04, Kernel 3.2.0-49-generic, Pd-Extended
0.43.4 (download
 from PPA as the Pure Data page says), jackdmp 
1.9.8...//

 /
 The other config:

 /Ubuntu Studio 12.04.3, Kernel 3.2.0-51-lowlatency,
same Pd-Extended
 version, Jack that came with UbuntuStudio (don't know
wich version)/


 Any other information that could be useful to fix this?
Like I
 wrote in
 the thread, I suggested TouchOSC that it should send
non-empty
 lists.
 But, TouchOSC is closed-code... so, there's no easy
feedback.




_
Pd-list@iem.at mailto:Pd-list@iem.at mailto:Pd-list@iem.at
mailto:Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -

Re: [PD] TouchOSC makes Pd crash, on UbuntuStudio, not in Ubuntu

2013-09-16 Thread Matthias Kronlachner

It's a message without argument: /1
I think this should be valid OSC? (Wasn't this the same problem reported 
with Totalmix?)


However, the messages /1 crashes routeOSC if chained like this:

[/1 (
|
[routeOSC /1]
|
[routeOSC /foo]

And even if not specified in OSC, it should at least not crash Pd :-)

Matthias

On 9/16/13 11:51 PM, Martin Peach wrote:

OK, thanks for this.
Any idea what the message is that is causing the crash?
Is it valid OSC?

Martin

On 2013-09-16 16:12, Matthias Kronlachner wrote:

Hi!

I experience this bug today as well.
Attached is a Pd-patch that simulates this crash caused by the message
TouchOSC is sending if page is turned (although this can be changed in
the TouchOSC editor!).

This is the gdb output:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x
0x045f1c59 in routeOSC_list (x=0x5e5990, s=0x0, argc=0, argv=0x0) at
routeOSC.c:410
410if (argv[0].a_type == A_SYMBOL) routeOSC_doanything(x,
argv[0].a_w.w_symbol, argc-1, argv[1]);

I attached an easy fix for routeOSC.c


So either rebuild routeOSC with the fix or change the message TouchOSC
is sending on page turn.
(This is done by deactivating the auto checkbox below Page, Name and 
OSC)



Matthias

On 9/16/13 7:46 PM, Martin Peach wrote:

It sounds like you have two issues: one is that the new external
crashes Pd as soon as it is instantiated, the other is that some OSC
messages do the same thing when [routeOSC] is involved.
For the second thing, just use
[udpreceive]
|
[unpackOSC]
|
[print]
and switch pages to see what raw message is being sent.
For the first thing, make a new patch and put a [routeOSC] in it and
see what the console prints.
But then again you don't seem to be able to start Pd at all from the
console. Is that correct?

Martin


On 2013-09-16 12:08, Mario Mey wrote:

Thanks, Martin. I compiled it and test it. Again, in UbuntuStudio
12.04.3, it makes PureData crash. There's no message, it just crashs.

Is anything I could do to help to avoid that? How could I debug it?

In the other hand, I'm having troubles to launch Pd from console 
(to see

if any message is there)... it can't open my patch. So, I'm writting
another mail to list.


2013/9/15 Martin Peach martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca

On 2013-09-15 16:12, Mario Mey wrote:

I just downloaded complete PureData from svn... but I want to
compile
only your externals. Is that possible? I think so... how?


 From trunk/externals type
make mrpeach
or
make mrpeach_install
(which doesn't actually install the files, it puts them in
externals/build/lib/pd-extended/extra)

Martin


Thank you.


2013/9/15 Martin Peach martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca
mailto:martin.pe...@sympatico.ca


 On 2013-09-14 19:28, Mario Mey wrote:

 Martin Peach, I read somewhere that changing pages in
TouchOSC
 makes Pd
 (or Pd-Ext) to crash. My Pd-Extended doesn't 
crash, but

this
 error is
 shown: * routeOSC: ignoring empty list….



 That doesn't happen here. There is no such message in the
source code.
 Maybe you have an older version of routeOSC? The OSC
specification
 allows empty messages, and [routeOSC] should output a 
bang

if it
 routes such a message.
 Older versions of [routeOSC](before March 2012) didn't 
work

 properly, so you probably just need to find a more recent
one or
 build it from svn.

(http://sourceforge.net/p/__pure-data/svn/HEAD/tree/trunk/__externals/mrpeach/osc/ 




http://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/mrpeach/osc/) 






 Martin



 Today, I've installed Ubuntu Studio 12.04.3 (with
lowlatency
 kernel). It
 seemed that it was a good distro for my use... but
switching
 pages DOES
 make Pd-Extended to crash. I reported-suggested 
this in

this thread:
http://hexler.net/forum/__viewthread/992/
http://hexler.net/forum/viewthread/992/, where I
wrote some

 other info,
 maybe usefull.

 The config where it doesn't crash:

 /Ubuntu 12.04, Kernel 3.2.0-49-generic, Pd-Extended
0.43.4 (download
 from PPA as the Pure Data page says), jackdmp
1.9.8...//
 /
 The other config:

 /Ubuntu Studio 12.04.3, Kernel 3.2.0-51-lowlatency,
same Pd-Extended
 version, Jack that came with UbuntuStudio (don't know
wich version)/


 Any other information that could

Re: [PD] TouchOSC makes Pd crash, on UbuntuStudio, not in Ubuntu

2013-09-16 Thread Matthias Kronlachner

ok its even more simple than that..
a |bang( crashes routeOSC :-)

and a bang is sent to the outlet of routeOSC if a message has no argument...

On 9/16/13 11:51 PM, Martin Peach wrote:

OK, thanks for this.
Any idea what the message is that is causing the crash?
Is it valid OSC?

Martin 



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


Re: [PD] gendy~

2013-09-08 Thread Matthias Kronlachner

Hi!

I guess you are referring to this repo of gendy~: 
https://github.com/ssfrr/gendyflext


I built it for OSX, you can find it here: 
http://www.matthiaskronlachner.com/download/gendy~_osx_build.zip


But, as it is done with flext, it would be a good exercise for the 
students to compile it on their own anyway.


Matthias


On 9/8/13 5:53 AM, Pagano, Patrick wrote:

Hello

Does anyone have a gendy~ object for Pure Data OSX or WIndows?

I found Spencers code that i built for linux, but i am hoping someone 
made it for the other platforms

Been doing some Iannis stuff and was hoping to show it to some students

Patrick


___
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] object test - matrixctrl, GUI for mtx_mul~

2013-07-10 Thread Matthias Kronlachner

hi!

good work!

i also have one suggestion:
2 additional OR modes would be nice
- first: only one selection per row
- second: only one selection per column

then you could easily switch between different inputs for more then one 
output or vice versa.


matthias

On 7/10/13 10:10 AM, Roman Haefeli wrote:

Hi João

Nice and handy abstraction!

Since it outputs 'matrix' messages, it would be nice if it would accept
'matrix' messages as input to set the initial state. This would make
state saving/restoring even simpler.

@colors:
Mike probably means it'd be nice to be able to set the color of toggled
and non-toggled cells.

Roman


On Wed, 2013-07-10 at 02:34 +0200, João Pais wrote:

what do you mean exactly?


This is very useful, thanks! The only suggestion I have would be able to
change the colors somehow.


___
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] iemmatrix - rotate matrix

2013-07-09 Thread Matthias Kronlachner

Hi!

On 7/9/13 4:14 AM, João Pais wrote:

Hello,

I'm programming a gui for [mtx_mul~], and it's almost finished. One 
thing is missing, and I wanted to know if someone already has a 
solution for it, before I break my head trying to find one.


I need to find a way to rotate matrixes, in order to coordenate the 
controler display, and matrix's format. Following the logic of max's 
matrixctrl object, and an usual DAW's display of audio matrixes, the 
lines are the inputs, and the columns are the outputs. But, Pd's 
[matrix] practise is the opposite.
So I'm trying to implement the standard industry display, and output 
Pd's [matrix] format.


For example, a 4x2 matrix to control [mtx_mul~] has 8 fields, and will 
be like


1 2
3 4
5 6
7 8

or

[matrix 4 2 1 2 3 4 5 6 7 8(

that is, columns are inputs, lines are outputs.

But, the current GUI would have the matrix rotated, in the order

1 2 3 4
5 6 7 8

[matrix 4 2 1 5 2 6 3 7 4 8(

shouldn't this be:

1 3 5 7
2 4 6 8

?
you do that with mtx_transpose.

best, matthias


where columns are outputs, and lines are inputs.

So repeating to try to make it clear: the gui sends the data in the 
lower format, and it has to be rotated to match the format above. Is 
there an object or technique that does this?


Thanks again,

João

___
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] iemmatrix - rotate matrix

2013-07-09 Thread Matthias Kronlachner

On 7/9/13 10:50 AM, IOhannes m zmoelnig wrote:

the one and only proper way to do signal matrix multiplication with
iemmatrix is to use [mtx_*~] (rather than [mtx_mul~],
[mtx_mul_line~] or [matrix~]).

mtx_mul~ and mtx_*~ are equivalent, aren't they?

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


Re: [PD] iemmatrix - rotate matrix

2013-07-09 Thread Matthias Kronlachner

On 7/9/13 1:07 PM, IOhannes m zmoelnig wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2013-07-09 11:42, João Pais wrote:

I thought they were. In Pc there is no [mtx_*~] file, so I use

the good old problem with objects containing  *,+,... in their name..
i know this one has been posted several times, but once more:

do the following if you want to use iemmatrix in pd-extended:

create the object [hexloader]
and [import iemmatrix]

afterwards [mtx_*] [mtx_*~]  should work.
- see attachment

matthias

#N canvas 0 22 450 300 10;
#X declare -lib iemmatrix;
#X obj 34 15 hexloader;
#X obj 34 41 import iemmatrix;
#X obj 34 126 mtx_*;
#X obj 75 127 mtx_+;
#X obj 148 131 mtx_*~;
#X obj 38 155 mtx_./;
#X text 103 15 first create those two objects to use iemmatrix!;
#X text 130 108 then all iemmatrix objects should work;
#X obj 59 228 mtx_spherical_harmonics 3;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM: texture on transparent sphere visible from opposite side

2013-06-09 Thread Matthias Kronlachner

On 6/8/13 5:20 PM, Claude Heiland-Allen wrote:

Hi,

On 08/06/13 14:48, Matthias Kronlachner wrote:

i have a texture on a sphere and slightly add transparency to the sphere.
i can now see objects behind the sphere, but is it possible to make the
texture of the opposite side of the sphere visible? (through the
(semitransparent) front side of the sphere)

Short answer: no.

Long answer: no, because transparency and OpenGL don't quite get along
as nicely as you might expect.  Rendering order (of every triangle that
makes up every object) matters a great deal.  Transparency involves
blending the current triangle with whatever is behind it. OpenGL uses
its depth buffer to keep track of what's been drawn and how far away it
is at each pixel - keeping only the nearest value - whether it was
rasterized before or after the previous triangle.  You need to draw
non-transparent stuff first, then sort every transparent triangle into
depth order, possiby splitting up any transparent triangles that
intersect each other into smaller triangles, then render them in order
urthest from camera first, nearest to camera last.  I'm pretty sure that
Gem doesn't support depth sorting.

You might be able to hack it and get something that looks mostly ok some
of the time by rotating the sphere to change the depth order vs render
order of the triangles making up the sphere, but it will be very fragile...


Claude

thanks, i was expecting something like this.
i guess i will think about an alternative approach to that instead of 
hacking around with depth sorting and rendering order within a single 
geometric object.


matthias


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


Re: [PD] GEM: texture on transparent sphere visible from opposite side

2013-06-09 Thread Matthias Kronlachner

On 6/8/13 5:16 PM, Patrice Colet wrote:

De: Matthias Kronlachner m.kronlach...@gmail.com
hi!

maybe someone has a suggestion for following problem in GEM:

i have a texture on a sphere and slightly add transparency to the
sphere.
i can now see objects behind the sphere, but is it possible to make
the
texture of the opposite side of the sphere visible? (through the
(semitransparent) front side of the sphere)


examples/07.texture/04.moveImages.pd

Patco
thanks, but this is not what i want. as i have one sphere and the 
texture of the back side should be visible through the front side.


matthias

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


[PD] GEM: texture on transparent sphere visible from opposite side

2013-06-08 Thread Matthias Kronlachner

hi!

maybe someone has a suggestion for following problem in GEM:

i have a texture on a sphere and slightly add transparency to the sphere.
i can now see objects behind the sphere, but is it possible to make the 
texture of the opposite side of the sphere visible? (through the 
(semitransparent) front side of the sphere)


thanks
matthias

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


Re: [PD] using kinect in ubuntu 12.04 and pd-extended 0.43.4

2013-03-20 Thread Matthias Kronlachner

I guess you didn't connect the Kinect power supply?
USB power is not enough for that device.

On 3/19/13 10:05 PM, tristan cordier wrote:
Sorry, I forgot to add that the kinect is actually working properly, 
tested on another computer, with ubuntu 12.04 (not ubuntu studio 12.04).


2013/3/19 tristan cordier tristan.cord...@gmail.com 
mailto:tristan.cord...@gmail.com


Hello everyone, I am trying to use a kinect sensor in pure data
using pix_freenect.

I followed several tuto found online but none worked for me,
The kinect sensor is apparently not seen by my system :

lsusb replies :

...
Microsoft Corp. Xbox NUI Motor

and not the rest (Audio and Video)



Does anyone knows about a tuto that worked for a config like this?

ubuntu studio 12.04 32 bits
pd-extended 0.43.4

best regards

tristan




___
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] More Sensor Questions inc libfreenect on the Rpi

2013-03-15 Thread Matthias Kronlachner

hi!

i think openni should be available for the rpi.
and with the asus xtion i read somewhere its's working.
i don't know about the kinect openni driver for rpi.

without gem there is no ready to use solution for pd yet.
but you could build your own openni external, activate the depth- and 
usergenerator and get the center of mass of detected users.
this would not be too complicated, and everything you need can be found 
in pix_openni.


i'm not sure about cpu load, this could be quite intensive for a rpi.

but maybe there is already a standalone application doing exactly this 
thing and sending osc?


matthias

On 3/14/13 6:18 PM, Julian Brooks wrote:

Hi again,

So after some more research I've come to the conclusion that the 
ultrasonics aren't going to do what I would like - not a wide enough 
beam and unnecessary accuracy.


Perhaps if I say what I would like 'something' to do, someone may say 
oh, you want one, two, n of /these/.


I have a digital wind chime thingy that now works ok on the RPi. What 
I would like is to be able to put it outdoors with /something/ that 
will /see/ when large objects, like people, are coming towards and 
moving away from it and then I can make use of that data to send force 
in pmpd to the chimes and then the chimes can klang into each other.


Been looking at the kinects but it seems I'll need GEM to be able to 
explore Matthias's very excellent looking freenect lib which is a 
no-no on the RPi currently.


My friend and I have rounded up a nice solar panel, we've got some old 
broken soundstick speakers that we've hacked into and a weather-proof 
box plus a pole to hang it all on.  Should be a nice little project 
when it's done but a we're bit stuck on this problem at the moment...


Any suggestions people?

Cheers,

Julian


___
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] documentation of kinect pd/gem externals

2013-01-08 Thread Matthias Kronlachner

hi list!

maybe this is interesting for people working or planing to work with the 
kinect and pd/gem.


i finished a documentation about the kinect pd/gem externals 
(pix_freenect, pix_openni, pix_threshold_depth, pix_depth2rgba, 
freenect, freenect_audio)
it deals with general properties of the sensor and describes the 
externals and their usage in various applications.


you can get the pdf document here:
http://iem.kug.ac.at/fileadmin/media/iem/projects/2012/kronlachner_01.pdf

software and examples can be found at my github repo:
https://github.com/kronihias/

have fun
matthias

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


[PD] Weekly Pure Data Workshop in Vilnius, Lithuania - Wednesday 18:00

2012-09-24 Thread Matthias Kronlachner

Hi!

Starting from Wednesday, September 26th 2012 - 18:00 (lasting till 
19:30) I will start a weekly Pure Data Workshop held at the Lithuanian 
Academy of Music and Theatre (LMTA).


The course will start from zero, therefore no prerequisites are needed. 
After introducing the basics of Pure Data, the covered topics will 
mostly depend on the participants.


I will (hopefully) regularly post informations about dates and topics on 
the webpage: http://www.matthiaskronlachner.com/?p=1328


Location: LMTA main building, Gedimino pr. 42, LT-01110 Vilnius, room 306

The workshop will be held in English language.

Please register per email or just stop by with your notebook:  mail (at) 
matthiaskronlachner.com


If you are from Lithuania and already experienced in Pure Data, don't 
hesitate to get in contact with me as well.



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


Re: [PD] binaural encoder

2012-09-11 Thread Matthias Kronlachner

hi!

there is an ambisonics binaural decoder implementation in iem_bin_ambi.
you can get a working demo here that also includes a room model: [1]

this is the corresponding report, but just in german. [2]

you get better results if you include head tracking while listening to 
the virtual soundfield.
you can do that for example with head-pose-estimation demoprogramm and 
kinect sensor [3]


matthias


[1] http://iem.at/~musil/Binaural_Ambisonics/
[2] 
http://old.iem.at/projekte/publications/iem_report/report38_07/report38_07

[3] http://www.matthiaskronlachner.com/?p=624


Am 11.09.12 10:15, schrieb labyrinthuscochlearis:

try David Doukhan's cw_binaural~

regards
c

Am Dienstag, den 11.09.2012, 02:13 -0400 schrieb J Oliver:

Hello list,

I have been trying out [earplug~] and the resulting sounds are not great.
There is a great loss in amplitude and a spectral transformation caused by the 
filter that boosts bass and hinders mid and high frequencies.

Any of you know of other options for binaural encoding?

best,

J




___
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] text to sound

2012-06-11 Thread Matthias Kronlachner
there is also one for espeak library which is quite nice because you can 
easily change pronunciation (voice) and pitch.


http://github.com/kronihias/espeak
http://espeak.sourceforge.net

matthias

Am 11.06.12 15:59, schrieb Bryan Jurish:

there are at least 2 pd interfaces to the flite tts library out there, 1 in svn 
under ecternals/moocow. there's also ratts, available from 
ling.uni-potsdam.de/~moocow/projects/pd

marmosets, -bryan


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


Re: [PD] closest frequency in scale

2012-05-23 Thread Matthias Kronlachner
if you mean as specific scale the equal tempered you can use [ftom] to 
convert from frequency to midi note numbers.
then you round this number to integer and with [mtof] back to have a 
frequency value.


matthias

Am 23.05.12 10:29, schrieb flad chester:
Hi list, im new with pd, i was thinking about which should be the best 
way to implement this idea or maybe somebody has done something like 
this before:
Im controlling the frequencies of my grains with a random number 
generator, but instead of controlling the frequencies directly i would 
like to select the closest frequency in a specific scale for each 
random value.


how can i do this in pd?


thanks in advance

Flad







___
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] New motion sensor

2012-05-23 Thread Matthias Kronlachner
but it seems as it is developed more for sitting in front of the screen, 
waving your hands.
i guess you cannot cover the same area than with kinect and do things 
like tracking standing persons or dancers.


but we'll see - still looks interesting.

Am 23.05.12 12:34, schrieb Theron Trowbridge:
I saw a demo of the unit at Maker Faire this past weekend, and it 
looked impressive.  Not only cheaper than the Kinect, but they say 
it's significantly higher resolution.  I'm looking forward to playing 
with one.  And talking to reps for the company, they seem supportive 
of developers and want to see what they do with it.  There is a link 
on the web site to apply for a free dev kit.



-Theron
^

On Tue, May 22, 2012 at 11:51 PM, Pierre Massat pimas...@gmail.com 
mailto:pimas...@gmail.com wrote:


Dear List,

I thought some of you might be interested in this :

http://www.leapmotion.com/

Apparently a lot smaller and cheaper than kinect.

Cheers!

Pierre.

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




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


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


Re: [PD] UDMX external?

2012-05-20 Thread Matthias Kronlachner

hi!

i didn't use the udmx but the enttec open dmx. not directly from pd but 
i controlled the software QLC [1] via midi.

that worked quite well and it also supports the udmx.

but your problem with the external should be solved easily. did you 
install libusb? http://www.ellert.se/PKGS/libusb-2009-09-10/10.6/


matthias

[1] http://qlc.sourceforge.net/


Am 21.05.12 03:01, schrieb bernardo amorim:

does anyone has a funcional UDMX external working for pd in OSX

I keep getting this error message:

/Library/Pd/uDMX.pd_darwin: dlopen(/Library/Pd/uDMX.pd_darwin, 10): 
Library not loaded: /usr/local/lib/libusb-0.1.4.dylib

  Referenced from: /Library/Pd/uDMX.pd_darwin
  Reason: image not found
 uDMX
... couldn't create

thanks





--
*Bernardo Amorim*
*www.bernardoamorim.com http://www.bernardoamorim.com*
*
*
*__*

http://www.bernardoamorim.com/?feed=rss2 
http://www.linkedin.com/in/bernardoamorim 
http://vimeo.com/bernardoamorim


*2012 *



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


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


Re: [PD] pix_freenect | pix_openni build issues on linux

2012-05-03 Thread Matthias Kronlachner

hi!

sorry i was away for some time..
you have to rename Makefile_linux to Makefile, yes.
the other one is for osx as you already found out.
sorry for not making a universal one so far.
maybe you have to change some paths in the Makefile_linux

have fun.

Quoting yvan volochine yvan...@gmail.com:


On 05/02/2012 10:07 AM, yvan volochine wrote:

I looks like the Makefile is osx oriented..


erm... could it be simply that I need to use `Makefile_linux`  
instead of Makefile ? (after renaming them)


y

--
yvan.voloch...@gmail.com
http://yvanvolochine.com

___
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] GEM: storing pix_background settings?

2012-04-05 Thread Matthias Kronlachner

Hi!

I don't know about saving background for background subtraction but 
maybe another solution to the problem would be to use a Kinect with 
pix_freenect (1) and create an alphamask out of the depthmap using 
pix_threshold_depth (2). you can mutliply this with the (aligned) rgb 
image from pix_freenect and you have a quite good extraction of the 
objects in the defined range.
you can do these operations also on gpu with shaders which is more cpu 
efficient.


matthias

(1) https://github.com/kronihias/pix_freenect
(2) https://github.com/kronihias/pix_threshold_depth

Am 05.04.12 12:21, schrieb Iain Mott:

Hello,

I'm working on an installation that will have stable lighting - and I'll
be using pix_background in combination with pix_video to capture and
isolate the image of individual participants and mix the participant's
image (now with a black background) with other video sources.

My question is, can the calibration of pix_background (achieved by
sending it a reset message while capturing the plain background
without participant) be saved to file and later reloaded - or will I
need to perform the reset calibration each time Pd is started?

Can this be done simply or will I need to delve into the C code? Has
anyone tried this?

Cheers,

Iain


___
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] Kinect mappings

2012-03-19 Thread Matthias Kronlachner

hi!

if you have installed latest unstables of openni and nite it should  
start tracking of a new user almost immediately without the need of a  
calibration pose.
what takes long time (at least on my machine) is the initialization  
process. (when you start gemwin)

for me pix_openni works much better and stable on linux.

if you have gem framerate at 30fps you get 15x30 joints with x,y,z  
coordinates per second.

it's really not an easy task to extract useful information out of it.
i lately added the skeleton smoothing feature, that can be very  
helpful to smoothen the output. (skeleton_smoothing 0.0-1.0)


what you need is a set of abstractions to make geometric calculations  
from the datastream, the ability to monitor/draw graphs and the  
interpretation of this data/gesture detection. iemmatrix can be  
practical for the vector calculations and to make the patches more  
readable.

i'm working in the moment on such abstractions but still a work in progress.



anyway i'm curious how the kinect for windows sdk is working.
with the built in speech recognition and source localization over the  
microphone array it has some advantages over openni/nite.
but for me the platform dependency is a no-go. so i won't work on an  
external with this framework in the future.

maybe someone else? :-)


matthias


Zitat von Pagano, Patrick p...@digitalworlds.ufl.edu:

I find that openni on the Mac takes to long to register the skeleton  
so we are using processing to track and osc the joints and  
relationships. I was originally just soliciting fun ideas for the  
huge data stream the kinect provides



Patrick Pagano B.S.,M.F.A
Digital Media Engineer
UF Digital Worlds Institute
(352)294-2020


On Mar 18, 2012, at 5:49 AM, philippe boisnard  
philem...@mac.commailto:philem...@mac.com wrote:


Yes

I use pix_openni, it's for me in fact, the better solution.

p


Le 18 mars 2012 à 07:02, dreamer a écrit :

Why not use pix_openni to do the skeleton-tracking needed?
Then you can omit OSCeleton, which is quite limited anyway.



On Sun, Mar 18, 2012 at 3:52 AM, Pagano, Patrick  
p...@digitalworlds.ufl.edumailto:p...@digitalworlds.ufl.edu wrote:

Hans
I think i looked at this before. Do you have DIlib? It seems like  
it's not available yet?

I thought i grabbed this before but that was on linux

pp

From: Hans-Christoph Steiner [h...@at.or.atmailto:h...@at.or.at]
Sent: Saturday, March 17, 2012 10:12 PM
To: Pagano, Patrick
Cc: pd-list@iem.atmailto:pd-list@iem.at
Subject: Re: [PD] Kinect mappings


Check out William Brent's dilib:
http://williambrent.conflations.com/pages/research.html

.hc

On Mar 13, 2012, at 1:23 PM, Pagano, Patrick wrote:

Hello

I am collaborating with a programmer who has developed a kinect  
streamer with windows SDK that sends data over udp.

I am soliciting some ideas on WHAT to do with the data stream.
We are thinking movies/models and midi, but I would love to hear  
some ideas regarding what to do with the data


Cheers~

pp

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






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



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



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





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


Re: [PD] pix_openni crash Pd

2012-02-28 Thread Matthias Kronlachner

Am 28.02.12 15:47, schrieb Jack:

Le 28/02/2012 06:25, Matthias Kronlachner a écrit :

Am 28.02.12 00:00, schrieb Jack:

Le 27/02/2012 15:51, IOhannes m zmoelnig a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-02-27 15:20, Jack wrote:


I use Ubuntu 11.04, Pd 0.42.6 and Gem 0.93.git fad1264.

upgrade Gem to at least 0.93.git 1482ffb1538

and do a complete rebuild of Gem.

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

iEYEARECAAYFAk9LmGcACgkQkX2Xpv6ydvTHpgCghXseYp2gv0VYyFvtaCKBFH9u
ATUAoN73DbawoPq8HzU0MZsWULJf2UcV
=/cUU
-END PGP SIGNATURE-



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


OK, i upgraded Gem to ver: 0.93.git f1a1841 and now i can render the 
scene without crash.
But, i can't see anything working there : I get a blue sphere where 
it is write 'gem' and a white rectangle in the top-left corner (even 
if i select 'rgb 1' in [pd properties]).
If i click on the message 'video_mode' in this subpatch, Pd crash. 
And if i click on 'bang', nothing happens in the console (there is 
no available modes).

I miss something ?
One comment : it is very strange to see two [gemhead] connected 
directly in [pix_openni]. Is there a meaning ?

Thanx for help.
++

Jack

hi!

did you check if the examples included in OpenNI and Nite work? (eg. 
Sample-NiSimpleViewer, Sample-SceneAnalysis)

they should be somewhere in the Samples/Bin folder.
if they don't work, pix_openni won't work.

ok the crash with video_mode and depth_mode msg is fixed now. but it 
happend only if image or depth was not started. i was a little bit 
lazy testing everything without working kinect plugged in.
if you send a [bang( it now writes an error message to the console if 
no device is available.



so i think you have a problem with your openni/sensor kinect 
installation.
did you install sensor kinect? this is the driver which allows openni 
to access the kinect sensor. (https://github.com/avin2/SensorKinect)
you also need the unstable release of OpenNI (- see install 
instructions from SensorKinect)



the two gemheads have a meaning - of course.
pix_openni outputs two separated pixes - one rgb image from the 
camera (left gemhead and outlet) and one depth image in various 
formats from the depthsensor (right gemhead and outlet).
actually it's more implementation side - it could be realized with 
one gemhead as well. but i did it this way and for me it's logical.
you can also make it with one gemhead and a [t a a] if it looks 
better for you:


[gemhead]
[t a a]
| |
[pix_openni]


matthias






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



Hello,

OK, it is working now.

In the pix_openni/README, i would prefer to follow these instructions 
in 5 steps (in the middle of the page) :

http://groups.google.com/group/openni-dev/browse_thread/thread/49a4dd13c045c1a2
instead of :
*get and install OpenNI, NITE and the hacked Primesense Kinect driver
-- instruction: https://github.com/avin2/SensorKinect
http://www.openni.org/Downloads/OpenNIModules.aspx

And all should be OK.

Matthias, the hand tracking should work fine ?
Thanx for this external.
++

Jack



ok, i will check that. thanks.
i think things change every month about installing openni/nite/sensorkinect.
but as you found out there are enough resources that help you with the 
installation out there.
thats why i prefer pix_freenect for projects that don't need skeleton 
tracking. it's a lot more easy to install and i think also cheaper in 
computation power.
the output format of these two objects is basically compatible. so you 
can always exchange them if you don't need external tracking stuff.
just a few initialization messages depending on which output mode you 
want to have can be different.


for hand tracking you have to make a waving gesture.
wave your hand several times after you activated it. after some time 
nite should recognize your hand and start tracking.
if you want more easy hand tracking there is the possibility to use 
pix_multiblob in combination with filtering the depth image.


if you want to track severall hands you can check the Nite.ini files 
located in these folders: /usr/etc/primesense/Hands_1_*

and uncomment the lines there (remove the ;   )


thanks for your reporting. that helps to make it more stable.

matthias

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


Re: [PD] pix_openni crash Pd

2012-02-27 Thread Matthias Kronlachner

Am 28.02.12 00:00, schrieb Jack:

Le 27/02/2012 15:51, IOhannes m zmoelnig a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-02-27 15:20, Jack wrote:


I use Ubuntu 11.04, Pd 0.42.6 and Gem 0.93.git fad1264.

upgrade Gem to at least 0.93.git 1482ffb1538

and do a complete rebuild of Gem.

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

iEYEARECAAYFAk9LmGcACgkQkX2Xpv6ydvTHpgCghXseYp2gv0VYyFvtaCKBFH9u
ATUAoN73DbawoPq8HzU0MZsWULJf2UcV
=/cUU
-END PGP SIGNATURE-



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


OK, i upgraded Gem to ver: 0.93.git f1a1841 and now i can render the 
scene without crash.
But, i can't see anything working there : I get a blue sphere where it 
is write 'gem' and a white rectangle in the top-left corner (even if i 
select 'rgb 1' in [pd properties]).
If i click on the message 'video_mode' in this subpatch, Pd crash. And 
if i click on 'bang', nothing happens in the console (there is no 
available modes).

I miss something ?
One comment : it is very strange to see two [gemhead] connected 
directly in [pix_openni]. Is there a meaning ?

Thanx for help.
++

Jack

hi!

did you check if the examples included in OpenNI and Nite work? (eg. 
Sample-NiSimpleViewer, Sample-SceneAnalysis)

they should be somewhere in the Samples/Bin folder.
if they don't work, pix_openni won't work.

ok the crash with video_mode and depth_mode msg is fixed now. but it 
happend only if image or depth was not started. i was a little bit lazy 
testing everything without working kinect plugged in.
if you send a [bang( it now writes an error message to the console if no 
device is available.



so i think you have a problem with your openni/sensor kinect installation.
did you install sensor kinect? this is the driver which allows openni to 
access the kinect sensor. (https://github.com/avin2/SensorKinect)
you also need the unstable release of OpenNI (- see install 
instructions from SensorKinect)



the two gemheads have a meaning - of course.
pix_openni outputs two separated pixes - one rgb image from the camera 
(left gemhead and outlet) and one depth image in various formats from 
the depthsensor (right gemhead and outlet).
actually it's more implementation side - it could be realized with one 
gemhead as well. but i did it this way and for me it's logical.
you can also make it with one gemhead and a [t a a] if it looks better 
for you:


[gemhead]
[t a a]
| |
[pix_openni]


matthias






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


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


Re: [PD] pix_openni crash Pd

2012-02-25 Thread Matthias Kronlachner

Am 24.02.12 20:15, schrieb Jack:

Le 24/02/2012 18:41, Mathieu Bouchard a écrit :

Le 2012-02-24 à 18:10:00, Jack a écrit :


Here the output with valgrind when i create the gemwin :


Are there any « Invalid write » messages before getting there ?

Also note that GEM 93 and GEM 92 are quite binary-incompatible, 
therefore an external has to be compiled with the right set of .h files.


There were also at least two more intermediate steps for those who 
used SVN versions of GEM 93. For example, GridFlow supports GEM 92 
and two early kinds of GEM 93 but doesn't work with the final GEM 93.


I'm talking about this because :


Address 0x735ef68 is 0 bytes after a block of size 32 alloc'd
at 0x4025315: calloc (vg_replace_malloc.c:467)
by 0x80B8710: getbytes (in /usr/bin/pd)


Looks like an object has an unexpected size, which hints at possible 
mismatching struct{} definitions.


 __
| Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC



Here the output of valgrind before i create the gemwin, it seems there 
is no trace of 'invalid write' :


==2417== HEAP SUMMARY:
==2417== in use at exit: 10,269,451 bytes in 14,507 blocks
==2417==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2417==
==2417== LEAK SUMMARY:
==2417==definitely lost: 14,663 bytes in 50 blocks
==2417==indirectly lost: 8,291 bytes in 488 blocks
==2417==  possibly lost: 1,525 bytes in 56 blocks
==2417==still reachable: 10,244,972 bytes in 13,913 blocks
==2417== suppressed: 0 bytes in 0 blocks
==2417== Rerun with --leak-check=full to see details of leaked memory
==2417==
==2417== For counts of detected and suppressed errors, rerun with: -v
==2417== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 from 
11)

==2418==
==2418== HEAP SUMMARY:
==2418== in use at exit: 10,269,451 bytes in 14,507 blocks
==2418==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2418==
==2418== LEAK SUMMARY:
==2418==definitely lost: 14,663 bytes in 50 blocks
==2418==indirectly lost: 8,291 bytes in 488 blocks
==2418==  possibly lost: 1,525 bytes in 56 blocks
==2418==still reachable: 10,244,972 bytes in 13,913 blocks
==2418== suppressed: 0 bytes in 0 blocks
==2418== Rerun with --leak-check=full to see details of leaked memory
==2418==
==2418== For counts of detected and suppressed errors, rerun with: -v
==2418== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 from 
11)

==2419==
==2419== HEAP SUMMARY:
==2419== in use at exit: 10,269,451 bytes in 14,507 blocks
==2419==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2419==
==2419== LEAK SUMMARY:
==2419==definitely lost: 14,663 bytes in 50 blocks
==2419==indirectly lost: 8,291 bytes in 488 blocks
==2419==  possibly lost: 1,525 bytes in 56 blocks
==2419==still reachable: 10,244,972 bytes in 13,913 blocks
==2419== suppressed: 0 bytes in 0 blocks
==2419== Rerun with --leak-check=full to see details of leaked memory
==2419==
==2419== For counts of detected and suppressed errors, rerun with: -v
==2419== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 from 
11)

==2420==
==2420== HEAP SUMMARY:
==2420== in use at exit: 10,269,451 bytes in 14,507 blocks
==2420==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2420==
==2420== LEAK SUMMARY:
==2420==definitely lost: 14,663 bytes in 50 blocks
==2420==indirectly lost: 8,291 bytes in 488 blocks
==2420==  possibly lost: 1,525 bytes in 56 blocks
==2420==still reachable: 10,244,972 bytes in 13,913 blocks
==2420== suppressed: 0 bytes in 0 blocks
==2420== Rerun with --leak-check=full to see details of leaked memory
==2420==
==2420== For counts of detected and suppressed errors, rerun with: -v
==2420== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 from 
11)


Thanx for your help.
++

Jack

hi!

did you try the examples included in openni and nite? are they working? 
(eg. Sample-NiSimpleViewer, Sample-SceneAnalysis)
if you just create the gemwin without starting rendering is it still 
crashing?


matthias




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



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


Re: [PD] pix_openni crash Pd

2012-02-25 Thread Matthias Kronlachner

Am 25.02.12 16:08, schrieb Jack:

Le 25/02/2012 14:39, Matthias Kronlachner a écrit :

Am 24.02.12 20:15, schrieb Jack:

Le 24/02/2012 18:41, Mathieu Bouchard a écrit :

Le 2012-02-24 à 18:10:00, Jack a écrit :


Here the output with valgrind when i create the gemwin :


Are there any « Invalid write » messages before getting there ?

Also note that GEM 93 and GEM 92 are quite binary-incompatible, 
therefore an external has to be compiled with the right set of .h 
files.


There were also at least two more intermediate steps for those who 
used SVN versions of GEM 93. For example, GridFlow supports GEM 92 
and two early kinds of GEM 93 but doesn't work with the final GEM 93.


I'm talking about this because :


Address 0x735ef68 is 0 bytes after a block of size 32 alloc'd
at 0x4025315: calloc (vg_replace_malloc.c:467)
by 0x80B8710: getbytes (in /usr/bin/pd)


Looks like an object has an unexpected size, which hints at 
possible mismatching struct{} definitions.


 __ 

| Mathieu BOUCHARD - téléphone : +1.514.383.3801 - 
Montréal, QC



Here the output of valgrind before i create the gemwin, it seems 
there is no trace of 'invalid write' :


==2417== HEAP SUMMARY:
==2417== in use at exit: 10,269,451 bytes in 14,507 blocks
==2417==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2417==
==2417== LEAK SUMMARY:
==2417==definitely lost: 14,663 bytes in 50 blocks
==2417==indirectly lost: 8,291 bytes in 488 blocks
==2417==  possibly lost: 1,525 bytes in 56 blocks
==2417==still reachable: 10,244,972 bytes in 13,913 blocks
==2417== suppressed: 0 bytes in 0 blocks
==2417== Rerun with --leak-check=full to see details of leaked memory
==2417==
==2417== For counts of detected and suppressed errors, rerun with: -v
==2417== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 
from 11)

==2418==
==2418== HEAP SUMMARY:
==2418== in use at exit: 10,269,451 bytes in 14,507 blocks
==2418==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2418==
==2418== LEAK SUMMARY:
==2418==definitely lost: 14,663 bytes in 50 blocks
==2418==indirectly lost: 8,291 bytes in 488 blocks
==2418==  possibly lost: 1,525 bytes in 56 blocks
==2418==still reachable: 10,244,972 bytes in 13,913 blocks
==2418== suppressed: 0 bytes in 0 blocks
==2418== Rerun with --leak-check=full to see details of leaked memory
==2418==
==2418== For counts of detected and suppressed errors, rerun with: -v
==2418== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 
from 11)

==2419==
==2419== HEAP SUMMARY:
==2419== in use at exit: 10,269,451 bytes in 14,507 blocks
==2419==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2419==
==2419== LEAK SUMMARY:
==2419==definitely lost: 14,663 bytes in 50 blocks
==2419==indirectly lost: 8,291 bytes in 488 blocks
==2419==  possibly lost: 1,525 bytes in 56 blocks
==2419==still reachable: 10,244,972 bytes in 13,913 blocks
==2419== suppressed: 0 bytes in 0 blocks
==2419== Rerun with --leak-check=full to see details of leaked memory
==2419==
==2419== For counts of detected and suppressed errors, rerun with: -v
==2419== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 
from 11)

==2420==
==2420== HEAP SUMMARY:
==2420== in use at exit: 10,269,451 bytes in 14,507 blocks
==2420==   total heap usage: 44,542 allocs, 30,035 frees, 46,723,012 
bytes allocated

==2420==
==2420== LEAK SUMMARY:
==2420==definitely lost: 14,663 bytes in 50 blocks
==2420==indirectly lost: 8,291 bytes in 488 blocks
==2420==  possibly lost: 1,525 bytes in 56 blocks
==2420==still reachable: 10,244,972 bytes in 13,913 blocks
==2420== suppressed: 0 bytes in 0 blocks
==2420== Rerun with --leak-check=full to see details of leaked memory
==2420==
==2420== For counts of detected and suppressed errors, rerun with: -v
==2420== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 482 
from 11)


Thanx for your help.
++

Jack

hi!

did you try the examples included in openni and nite? are they 
working? (eg. Sample-NiSimpleViewer, Sample-SceneAnalysis)
if you just create the gemwin without starting rendering is it still 
crashing?


matthias




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




Hello Matthias,

I don't have a kinect today. I will try later.
Creating the gemwin without the rendering doesn't crash Pd. (It was a 
mistake to said that in my first email).

Thanx for your help.

ah ok, you tried it without kinect?

i just found a bug if there is no kinect available and you want to use 
handtracking it crashed.
but i fixed that. so at least in osx there is no problem now to use 
pix_openni without a kinect connected.

but anyway it doesn't make a lot of sense

Re: [PD] pix_freenect update

2012-01-23 Thread Matthias Kronlachner
thanks hans, rgb, depth and hand tracking are now working with the fink 
version of OpenNI.

but does skeleton work for you?
NiSimpleSkeleton
says Find user generator failed: Error!

the same for pix_openni external.
when i link pix_openni against the openni version i installed manually 
skeleton is working.


with niReg -l you can check witch OpenNI modules are registered. 
skeleton is showing up but still it's somehow not working.

do you have an idea?

matthias

Am 23.01.12 04:04, schrieb Hans-Christoph Steiner:


Ok, I got the NiViewer working on my machine!  I checked in an updated 
libusb1 (1.0.9-rc3) into Fink/unstable, and that was the last step to 
getting it working.


.hc

On Jan 22, 2012, at 4:08 PM, Matthias Kronlachner wrote:


Ah thanks, you have to install sed before trying to install openni.

fink install sed
and then
fink install primesense-nite openni-sensor-avin2-sensorkinect

pix_openni compiled successfully against fink version of openni and 
initialisation is also working for pix_openni.

but anyway i don't get an image or depth stream.
i will try again tomorrow.

it's definitely much more comfortable to install openni, nite and 
sensorkinect via fink, thanks hans!


matthias


Am 22.01.12 22:08, schrieb Hans-Christoph Steiner:


Ah, ok, try this:

fink install sed primesense-nite openni-sensor-avin2-sensorkinect

.hc

On Jan 22, 2012, at 2:04 PM, Matthias Kronlachner wrote:


hi hans!

thanks, but installing openni via fink still doesn't work for me.
i attached the logfile.

i did selfupdate and cleanup before.

does it work for someone else??

matthias

Am 21.01.12 05:03, schrieb Hans-Christoph Steiner:


Another Fink update, I just added the avin2 driver, so now the 
recommended setup for the Kinect is:


fink install primesense-nite openni-sensor-avin2-sensorkinect

.hc

On Jan 20, 2012, at 7:06 AM, Matthias Kronlachner wrote:


hi!

i tried to install openni from fink but got an error.
- see attachment.

i did fink selfupdate and fink update-all before.

don't know how to fix that. maybe you can help.
if i can manage to install openni + sensorkinect via fink i will 
build it against the package and include it to the install 
instructions.


matthias


Am 19.01.12 19:23, schrieb Hans-Christoph Steiner:


This is great, I'm going to try to use this in my Dataflow class 
at ITP/NYU.  I'm currently updating the openni/primesense 
packaging for Debian and Ubuntu and am packaging for Mac OS 
X/Fink.  It would be awesome if you could try to build against 
the packaging.


(these should be showing up soon)
http://pdb.finkproject.org/pdb/package.php/openni
http://pdb.finkproject.org/pdb/package.php/openni-sensor-primesense

I'm pushing my Debian packaging to the git repos on Debian 
pkg-multimedia.  As I get things working, I'll post binary 
packages to this PPA:


https://launchpad.net/~eighthave/+archive/openni 
https://launchpad.net/%7Eeighthave/+archive/openni


.hc

On Jan 11, 2012, at 8:48 AM, Matthias Kronlachner wrote:


you're welcome.

if you get this issue with permissions to usb device place the 
udev rule into /etc/udev/rules.d
see: 
https://github.com/OpenKinect/libfreenect/tree/master/platform/linux/udev


but it still has this error when using freenect with audio support.
so a temporal fix can be
sudo chmod 777 /dev/bus/usb/001/026
- that id changes every time...

maybe someone found a way to permanently add the rule... i 
tried but couldn't manage to get it working without setting the 
chmod manually.


matthias

Am 10.01.12 16:21, schrieb olsen:

ej matthias

vielen dank für diese Externals!
wie hast n du das mit den permissions auf das device geregelt?
ich bekomm als user folgenden errör:

libusb couldn't open USB device /dev/bus/usb/001/026: 
Permission denied.

libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/024: 
Permission denied.

libusb requires write access to USB device nodes.

danks für info  gruss
olsen











On 01/09/2012 09:26 AM, Matthias Kronlachner wrote:
i added a small external that allows to control motor/led of 
Kinect and can output the accelerometer data via libfreenect.


you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing 
somebody willing to help?


matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at wrote:

hello again!

if you want to use skeleton data and hand tracking (similar 
to OSCeleton)
combined with rgb and depth streams from Kinect Sensor you 
can do this with

the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect - 
see README


initialization of openni and nodes needs some time and pd 
freezes - keep

that in mind!
i hope it's stable, i haven't tested

Re: [PD] pix_freenect update

2012-01-22 Thread Matthias Kronlachner

hi hans!

the problem is that libfreenect from fink is not up to date.
the freenect_device_attributes struct isn't defined in the version from 
fink - you need that to create a freenect object with specific serial 
number.


it works if you use latest libfreenect from git repo.

i think there should be a new libfreenect release coming soon. at least 
there are discussions going on in the openkinect newsgroup about that.


maybe you can update the libfreenect fink package?
it is also needed for pix_freenect.

matthias


Am 21.01.12 07:13, schrieb Hans-Christoph Steiner:

I tried the [freenect] object but the C code doesn't build.  I got these errors:

gcc -I/Users/hans/auto-build/pd-extended/externals/Gem/src 
-I/Applications/Pd-extended.app/Contents/Resources/include 
-I/sw/include/libfreenect -I/sw/include -g -fast -msse3 -o freenect.o -c 
freenect.c
freenect.c: In function ‘freenect_bang’:
freenect.c:55: error: dereferencing pointer to incomplete type
freenect.c:56: error: dereferencing pointer to incomplete type
freenect.c: In function ‘freenect_new’:
freenect.c:172: error: dereferencing pointer to incomplete type
freenect.c:173: error: dereferencing pointer to incomplete type

Also, I made a Makefile that works for me:



.hc

On Jan 9, 2012, at 3:26 AM, Matthias Kronlachner wrote:


i added a small external that allows to control motor/led of Kinect and can 
output the accelerometer data via libfreenect.

you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing somebody willing 
to help?

matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at   wrote:

hello again!

if you want to use skeleton data and hand tracking (similar to OSCeleton)
combined with rgb and depth streams from Kinect Sensor you can do this with
the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect -   see README

initialization of openni and nodes needs some time and pd freezes - keep
that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access to two
cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved it into a
git repo.
get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are in the
build folder.

major improvements:
*open specific Kinect sensor by serial number, not only by id (that may
change every time pd is restarted) – useful for multiple Kinect
installations
*output registered depthmap -   rgb and depth images are aligned (less
offset between those two pictures - depending on distance)
*output depthmap directly as millimeter values (16 bit in red   green
channels)
*resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i hope there
will come more soon

have fun.

matthias


___
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





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




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


Re: [PD] pix_freenect update

2012-01-22 Thread Matthias Kronlachner

hi hans!

thanks, but installing openni via fink still doesn't work for me.
i attached the logfile.

i did selfupdate and cleanup before.

does it work for someone else??

matthias

Am 21.01.12 05:03, schrieb Hans-Christoph Steiner:


Another Fink update, I just added the avin2 driver, so now the 
recommended setup for the Kinect is:


fink install primesense-nite openni-sensor-avin2-sensorkinect

.hc

On Jan 20, 2012, at 7:06 AM, Matthias Kronlachner wrote:


hi!

i tried to install openni from fink but got an error.
- see attachment.

i did fink selfupdate and fink update-all before.

don't know how to fix that. maybe you can help.
if i can manage to install openni + sensorkinect via fink i will 
build it against the package and include it to the install instructions.


matthias


Am 19.01.12 19:23, schrieb Hans-Christoph Steiner:


This is great, I'm going to try to use this in my Dataflow class at 
ITP/NYU.  I'm currently updating the openni/primesense packaging for 
Debian and Ubuntu and am packaging for Mac OS X/Fink.  It would be 
awesome if you could try to build against the packaging.


(these should be showing up soon)
http://pdb.finkproject.org/pdb/package.php/openni
http://pdb.finkproject.org/pdb/package.php/openni-sensor-primesense

I'm pushing my Debian packaging to the git repos on Debian 
pkg-multimedia.  As I get things working, I'll post binary packages 
to this PPA:


https://launchpad.net/~eighthave/+archive/openni 
https://launchpad.net/%7Eeighthave/+archive/openni


.hc

On Jan 11, 2012, at 8:48 AM, Matthias Kronlachner wrote:


you're welcome.

if you get this issue with permissions to usb device place the udev 
rule into /etc/udev/rules.d
see: 
https://github.com/OpenKinect/libfreenect/tree/master/platform/linux/udev


but it still has this error when using freenect with audio support.
so a temporal fix can be
sudo chmod 777 /dev/bus/usb/001/026
- that id changes every time...

maybe someone found a way to permanently add the rule... i tried 
but couldn't manage to get it working without setting the chmod 
manually.


matthias

Am 10.01.12 16:21, schrieb olsen:

ej matthias

vielen dank für diese Externals!
wie hast n du das mit den permissions auf das device geregelt?
ich bekomm als user folgenden errör:

libusb couldn't open USB device /dev/bus/usb/001/026: Permission 
denied.

libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/024: Permission 
denied.

libusb requires write access to USB device nodes.

danks für info  gruss
olsen











On 01/09/2012 09:26 AM, Matthias Kronlachner wrote:
i added a small external that allows to control motor/led of 
Kinect and can output the accelerometer data via libfreenect.


you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing 
somebody willing to help?


matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at wrote:

hello again!

if you want to use skeleton data and hand tracking (similar to 
OSCeleton)
combined with rgb and depth streams from Kinect Sensor you can 
do this with

the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect - see 
README


initialization of openni and nodes needs some time and pd 
freezes - keep

that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access 
to two

cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved 
it into a

git repo.
get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) 
are in the

build folder.

major improvements:
* open specific Kinect sensor by serial number, not only by id 
(that may

change every time pd is restarted) – useful for multiple Kinect
installations
* output registered depthmap - rgb and depth images are 
aligned (less

offset between those two pictures - depending on distance)
* output depthmap directly as millimeter values (16 bit in red 
green

channels)
* resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i 
hope there

will come more soon

have fun.

matthias


___
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

Re: [PD] pix_freenect update

2012-01-22 Thread Matthias Kronlachner
ah i just realized that version 0.1.2 has been tagged 2 days ago.. i 
think it's a good idea to update the fink package.


i just tried to build freenect and pix_freenect against libfreenect 
0.1.2 from fink without any problems. the externals work.



i didn't have any problems so far with the latest libfreenect version 
and it should be backward compatible since the first official release.
just audio isn't working by now under osx but the fink package isn't 
built with audio support anyway (what is fine for the moment).


by now i have libfreenect and libusb included in the build folder.
would it be better to remove those and force users to install those 
via fink?


matthias


Am 22.01.12 22:05, schrieb Hans-Christoph Steiner:


Ah ok, good to know.  I just created a libfreenect 0.1.2 package in 
Fink/unstable.  I'll try it there.  Once we figure out that 
libfreenect 0.1.2 is stable, I'll move it over.  Or if you think 0.1.2 
is just all around better and doesn't break other code, I'll do it 
whenever you say its ready.


.hc

On Jan 22, 2012, at 1:45 PM, Matthias Kronlachner wrote:


hi hans!

the problem is that libfreenect from fink is not up to date.
the freenect_device_attributes struct isn't defined in the version 
from fink - you need that to create a freenect object with specific 
serial number.


it works if you use latest libfreenect from git repo.

i think there should be a new libfreenect release coming soon. at 
least there are discussions going on in the openkinect newsgroup 
about that.


maybe you can update the libfreenect fink package?
it is also needed for pix_freenect.

matthias


Am 21.01.12 07:13, schrieb Hans-Christoph Steiner:

I tried the [freenect] object but the C code doesn't build.  I got these errors:

gcc -I/Users/hans/auto-build/pd-extended/externals/Gem/src 
-I/Applications/Pd-extended.app/Contents/Resources/include 
-I/sw/include/libfreenect -I/sw/include -g -fast -msse3 -o freenect.o -c 
freenect.c
freenect.c: In function ‘freenect_bang’:
freenect.c:55: error: dereferencing pointer to incomplete type
freenect.c:56: error: dereferencing pointer to incomplete type
freenect.c: In function ‘freenect_new’:
freenect.c:172: error: dereferencing pointer to incomplete type
freenect.c:173: error: dereferencing pointer to incomplete type

Also, I made a Makefile that works for me:


.hc

On Jan 9, 2012, at 3:26 AM, Matthias Kronlachner wrote:


i added a small external that allows to control motor/led of Kinect and can 
output the accelerometer data via libfreenect.

you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing somebody willing 
to help?

matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at   wrote:

hello again!

if you want to use skeleton data and hand tracking (similar to OSCeleton)
combined with rgb and depth streams from Kinect Sensor you can do this with
the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect -   see README

initialization of openni and nodes needs some time and pd freezes - keep
that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access to two
cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved it into a
git repo.
get it here:http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are in the
build folder.

major improvements:
*open specific Kinect sensor by serial number, not only by id (that may
change every time pd is restarted) – useful for multiple Kinect
installations
*output registered depthmap -   rgb and depth images are aligned (less
offset between those two pictures - depending on distance)
*output depthmap directly as millimeter values (16 bit in red   green
channels)
*resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i hope there
will come more soon

have fun.

matthias


___
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



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

Re: [PD] pix_freenect update

2012-01-22 Thread Matthias Kronlachner

Ah thanks, you have to install sed before trying to install openni.

fink install sed
and then
fink install primesense-nite openni-sensor-avin2-sensorkinect

pix_openni compiled successfully against fink version of openni and 
initialisation is also working for pix_openni.

but anyway i don't get an image or depth stream.
i will try again tomorrow.

it's definitely much more comfortable to install openni, nite and 
sensorkinect via fink, thanks hans!


matthias


Am 22.01.12 22:08, schrieb Hans-Christoph Steiner:


Ah, ok, try this:

fink install sed primesense-nite openni-sensor-avin2-sensorkinect

.hc

On Jan 22, 2012, at 2:04 PM, Matthias Kronlachner wrote:


hi hans!

thanks, but installing openni via fink still doesn't work for me.
i attached the logfile.

i did selfupdate and cleanup before.

does it work for someone else??

matthias

Am 21.01.12 05:03, schrieb Hans-Christoph Steiner:


Another Fink update, I just added the avin2 driver, so now the 
recommended setup for the Kinect is:


fink install primesense-nite openni-sensor-avin2-sensorkinect

.hc

On Jan 20, 2012, at 7:06 AM, Matthias Kronlachner wrote:


hi!

i tried to install openni from fink but got an error.
- see attachment.

i did fink selfupdate and fink update-all before.

don't know how to fix that. maybe you can help.
if i can manage to install openni + sensorkinect via fink i will 
build it against the package and include it to the install 
instructions.


matthias


Am 19.01.12 19:23, schrieb Hans-Christoph Steiner:


This is great, I'm going to try to use this in my Dataflow class 
at ITP/NYU.  I'm currently updating the openni/primesense 
packaging for Debian and Ubuntu and am packaging for Mac OS 
X/Fink.  It would be awesome if you could try to build against the 
packaging.


(these should be showing up soon)
http://pdb.finkproject.org/pdb/package.php/openni
http://pdb.finkproject.org/pdb/package.php/openni-sensor-primesense

I'm pushing my Debian packaging to the git repos on Debian 
pkg-multimedia.  As I get things working, I'll post binary 
packages to this PPA:


https://launchpad.net/~eighthave/+archive/openni 
https://launchpad.net/%7Eeighthave/+archive/openni


.hc

On Jan 11, 2012, at 8:48 AM, Matthias Kronlachner wrote:


you're welcome.

if you get this issue with permissions to usb device place the 
udev rule into /etc/udev/rules.d
see: 
https://github.com/OpenKinect/libfreenect/tree/master/platform/linux/udev


but it still has this error when using freenect with audio support.
so a temporal fix can be
sudo chmod 777 /dev/bus/usb/001/026
- that id changes every time...

maybe someone found a way to permanently add the rule... i tried 
but couldn't manage to get it working without setting the chmod 
manually.


matthias

Am 10.01.12 16:21, schrieb olsen:

ej matthias

vielen dank für diese Externals!
wie hast n du das mit den permissions auf das device geregelt?
ich bekomm als user folgenden errör:

libusb couldn't open USB device /dev/bus/usb/001/026: Permission 
denied.

libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/024: Permission 
denied.

libusb requires write access to USB device nodes.

danks für info  gruss
olsen











On 01/09/2012 09:26 AM, Matthias Kronlachner wrote:
i added a small external that allows to control motor/led of 
Kinect and can output the accelerometer data via libfreenect.


you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing 
somebody willing to help?


matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at wrote:

hello again!

if you want to use skeleton data and hand tracking (similar 
to OSCeleton)
combined with rgb and depth streams from Kinect Sensor you 
can do this with

the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect - see 
README


initialization of openni and nodes needs some time and pd 
freezes - keep

that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have 
access to two

cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and 
moved it into a

git repo.
get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) 
are in the

build folder.

major improvements:
* open specific Kinect sensor by serial number, not only by 
id (that may

change every time pd is restarted) – useful for multiple Kinect
installations
* output registered depthmap - rgb and depth images are 
aligned (less

offset between those two pictures - depending

Re: [PD] Simultaneous use of TuioKinect and [pix_video] with one kinect

2012-01-22 Thread Matthias Kronlachner

Hi!

on which platform are you working?
TuioClient is using libfreenect to access kinect. so it won't work 
simultaneously with pix_freenect or fux_kinect.
i don't know if the linux kernel drivers work in parallel to libfreenect 
but i don't think so.


with pix_freenect (1) you can grab rgb and depth streams from kinect sensor.
you can do the (hand)tracking in pd by using pix_opencv tools and/or 
pix_multiblob.
also pix_curve can be useful to get images of certain distance out of 
the depth stream from the kinect. (in combination with switching into 
yuv colorspace)


if you decide for pix_openni (2) you can use the hand tracking or 
skeleton tracking from nite/openni together with the image and depth stream.


matthias

(1) http://github.com/kronihias/pix_freenect
(2) http://github.com/kronihias/pix_openni

Am 22.01.12 23:22, schrieb Philipp Wartenberg:

Hello,

is it possible to use the video stream of the kinect simutaneously 
with [pix_video] and [TuioClient]?


I want to be able to define separated areas as a layer over the video 
stream to get seprated tracking areas.


For example: If movement is detected in a specified area the x will 
happen...


The difinition of areas needs to be changed several times and thats 
why I want to be able to sketch over the video picture. If you know 
the EyeCon System, you may know what I mean.


Kind regards, Philipp


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


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


Re: [PD] pix_freenect update

2012-01-20 Thread Matthias Kronlachner

hi!

i tried to install openni from fink but got an error.
- see attachment.

i did fink selfupdate and fink update-all before.

don't know how to fix that. maybe you can help.
if i can manage to install openni + sensorkinect via fink i will build 
it against the package and include it to the install instructions.


matthias


Am 19.01.12 19:23, schrieb Hans-Christoph Steiner:


This is great, I'm going to try to use this in my Dataflow class at 
ITP/NYU.  I'm currently updating the openni/primesense packaging for 
Debian and Ubuntu and am packaging for Mac OS X/Fink.  It would be 
awesome if you could try to build against the packaging.


(these should be showing up soon)
http://pdb.finkproject.org/pdb/package.php/openni
http://pdb.finkproject.org/pdb/package.php/openni-sensor-primesense

I'm pushing my Debian packaging to the git repos on Debian 
pkg-multimedia.  As I get things working, I'll post binary packages to 
this PPA:


https://launchpad.net/~eighthave/+archive/openni 
https://launchpad.net/%7Eeighthave/+archive/openni


.hc

On Jan 11, 2012, at 8:48 AM, Matthias Kronlachner wrote:


you're welcome.

if you get this issue with permissions to usb device place the udev 
rule into /etc/udev/rules.d
see: 
https://github.com/OpenKinect/libfreenect/tree/master/platform/linux/udev


but it still has this error when using freenect with audio support.
so a temporal fix can be
sudo chmod 777 /dev/bus/usb/001/026
- that id changes every time...

maybe someone found a way to permanently add the rule... i tried but 
couldn't manage to get it working without setting the chmod manually.


matthias

Am 10.01.12 16:21, schrieb olsen:

ej matthias

vielen dank für diese Externals!
wie hast n du das mit den permissions auf das device geregelt?
ich bekomm als user folgenden errör:

libusb couldn't open USB device /dev/bus/usb/001/026: Permission 
denied.

libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/024: Permission 
denied.

libusb requires write access to USB device nodes.

danks für info  gruss
olsen











On 01/09/2012 09:26 AM, Matthias Kronlachner wrote:
i added a small external that allows to control motor/led of Kinect 
and can output the accelerometer data via libfreenect.


you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing 
somebody willing to help?


matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at wrote:

hello again!

if you want to use skeleton data and hand tracking (similar to 
OSCeleton)
combined with rgb and depth streams from Kinect Sensor you can do 
this with

the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect - see README

initialization of openni and nodes needs some time and pd freezes 
- keep

that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access 
to two

cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved 
it into a

git repo.
get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are 
in the

build folder.

major improvements:
* open specific Kinect sensor by serial number, not only by id 
(that may

change every time pd is restarted) – useful for multiple Kinect
installations
* output registered depthmap - rgb and depth images are aligned 
(less

offset between those two pictures - depending on distance)
* output depthmap directly as millimeter values (16 bit in red 
green

channels)
* resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i 
hope there

will come more soon

have fun.

matthias


___
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 mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list






Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra

Re: [PD] pix_freenect update

2012-01-09 Thread Matthias Kronlachner
i added a small external that allows to control motor/led of Kinect and 
can output the accelerometer data via libfreenect.


you can use this in combination to pix_openni.
get it here:

https://github.com/kronihias/freenect

just the audio external with resampling included missing somebody 
willing to help?


matthias

Am 09.01.12 07:21, schrieb Budi Prakosa:

awesome!!

On Mon, Jan 9, 2012 at 8:18 AM, Matthias Kronlachner
m.kronlach...@student.tugraz.at  wrote:

hello again!

if you want to use skeleton data and hand tracking (similar to OSCeleton)
combined with rgb and depth streams from Kinect Sensor you can do this with
the new pix_openni external. get it here:

https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect -  see README

initialization of openni and nodes needs some time and pd freezes - keep
that in mind!
i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access to two
cameras in the near future so help would be appreciated.


matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved it into a
git repo.
get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are in the
build folder.

major improvements:
*open specific Kinect sensor by serial number, not only by id (that may
change every time pd is restarted) – useful for multiple Kinect
installations
*output registered depthmap -  rgb and depth images are aligned (less
offset between those two pictures - depending on distance)
*output depthmap directly as millimeter values (16 bit in red  green
channels)
*resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i hope there
will come more soon

have fun.

matthias


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



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







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


Re: [PD] pix_freenect update

2012-01-08 Thread Matthias Kronlachner

hello again!

if you want to use skeleton data and hand tracking (similar to 
OSCeleton) combined with rgb and depth streams from Kinect Sensor you 
can do this with the new pix_openni external. get it here:


https://github.com/kronihias/pix_openni

binaries for osx in build folder.
you will need to install OpenNI, NITE and SensorKinect - see README

initialization of openni and nodes needs some time and pd freezes - keep 
that in mind!

i hope it's stable, i haven't tested it excessively now.

currently it supports just 1 kinect sensor. i don't have access to two 
cameras in the near future so help would be appreciated.



matthias


Am 05.01.12 09:17, schrieb Matthias Kronlachner:

hi everybody!

i did a update to my pix_freenect external for kinect and moved it 
into a git repo.

get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are in 
the build folder.


major improvements:
*open specific Kinect sensor by serial number, not only by id 
(that may change every time pd is restarted) -- useful for multiple 
Kinect installations
* output registered depthmap - rgb and depth images are aligned (less 
offset between those two pictures - depending on distance)
* output depthmap directly as millimeter values (16 bit in red  green 
channels)

*resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i hope 
there will come more soon


have fun.

matthias


___
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] pix_freenect update

2012-01-04 Thread Matthias Kronlachner

hi everybody!

i did a update to my pix_freenect external for kinect and moved it into 
a git repo.

get it here: http://github.com/kronihias/pix_freenect

ready to use binaries for osx (including libusblibfreenect) are in the 
build folder.


major improvements:
*open specific Kinect sensor by serial number, not only by id (that 
may change every time pd is restarted) -- useful for multiple Kinect 
installations
* output registered depthmap - rgb and depth images are aligned (less 
offset between those two pictures - depending on distance)
* output depthmap directly as millimeter values (16 bit in red  green 
channels)

*resolution of rgb image can be set to 1280×1024

i also added a folder with examples - currently just one but i hope 
there will come more soon


have fun.

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


Re: [PD] send pd-console output to terminal in osx

2011-11-17 Thread Matthias Kronlachner

/Applications/Pd-extended.app/Contents/Resources/bin/pd -stderr
or
/Applications/Pd-extended.app/Contents/MacOS/Pd-extended -stderr

Am 17.11.11 16:56, schrieb olsen:

Heho

anyone know how to get the pd-console output into a terminal on OSX?
Pd-extended is openend from /Applications/Pd-extended.app/Contents/MacOS/

thanks in advance
ø







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


Re: [PD] fux_kinect

2011-11-15 Thread Matthias Kronlachner

Am 15.11.11 16:11, schrieb tim vets:



2011/11/15 tim vets timv...@gmail.com mailto:timv...@gmail.com



2011/11/15 Matthias Kronlachner m.kronlach...@student.tugraz.at
mailto:m.kronlach...@student.tugraz.at

hi!

Am 14.11.11 19 tel:14.11.11%2019:19, schrieb tim vets:



2011/11/14 Budi Prakosa i...@deadmediafm.org
mailto:i...@deadmediafm.org

hi tim, have you try the latest version of pix_freenect
by matthias?


Hi Budi and list,
I tried pix_freenect.pd_linux, but unfortunately:
pix_freenect: can't load library
No idea why...
I'm running GEM: ver: 0.92.3. Is v0.93 a requirement maybe?

gem v0.93 is needed!
but there is a binary available now anyway so you don't have
to get yourself in trouble compiling it for osx on your own.

there was a problem with the path settings in the dylibs. try
it again, i hope it's working now.


Has the Linux version been updated as well?
trying the binary from

http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip
with the following setup now:
GEM ver: 0.93.3
compiled: Nov 11 2011
0.43.1-extended-2014
Ubuntu 11.04 (so not 11.10, problem?)

/usr/lib/pd-extended/extra/pix_freenect.pd_linux: can't load library

gr,
Tim

tried to roll my own, I now have:
./pix_freenect.pd_linux: ./pix_freenect.pd_linux: undefined symbol: 
freenect_stop_audio

pix_freenect: can't load library
/usr/lib/pd-extended/extra/pix_freenect.pd_linux: can't load library
seems as you didn't compile libfreenect with audio, thats why 
frennect_stop_audio couldn't be found.
have a look at README.txt, there is a detailed instruction how to 
compile libfreenect with audio.


if you don't like to have audio in linux you can also set line 47 in 
pix_freenect.cc to #define with_audio = 0;


sorry for this uncomfortable way but i have to make makefiles with 
options...


matthias



I also tried compiling pix_freenect myself, but got stuck at:
In file included from pix_freenect.cc:23:0:
pix_freenect.h:38:31: fatal error: libfreenect-audio.h: No
such file or directory
compilation terminated.
pix_freenect readme says: get and install latest libfreenect
from https://github.com/OpenKinect/libfreenect (compile with
Audio support!)
libfreenect readme says: Audio is currently being worked on.

yes, audio is being worked on by the libfreenect team, but in
the latest version from git it is included and ready for use.
i didn't have enough time to test audio under osx so it won't
be included when building pix_freenect for osx. (it was quite
unstable when i tried it)
now it won't search for libfreenect-audio.h while compiling
for osx.

for audio i think i will divide the external into two anyway.
one for video, one for audio. i will have to check it out if
it's working simultaneously for one kinect then.

matthias


gr,
Tim

On Mon, Nov 14, 2011 at 10:53 PM, Mathieu Bouchard
ma...@artengine.ca mailto:ma...@artengine.ca wrote:
 Le 2011-11-14 à 14:44:00, tim vets a écrit :

 Attached is the output of valgrind --leak-check=full
pdextended and
 opening fux_kinect-help.pd.

 I think that you better not add --leak-check when just
looking for a crash.
 But the only problem it does, is make the log file bigger.

 Here's what I found (summarising the important error
messages) :

 Invalid write of size 1 at convert_bayer_to_rgb (in
libfreenect) by [...] by
 libusb_handle_events_timeout (in libusb). Address
0xa066360 is [between 0
 and 5] bytes after a block of size 307,200 alloc'd

 This means that when libusb gives libfreenect the RGGB
buffer and
 libfreenect is converting it to plain RGB, it makes a
mistake and writes 6
 bytes more than just 640*480 pixels, as if there were 2
extra pixels at the
 end. But I think that this is a bit misleading. It
looks as if Valgrind was
 skipping a lot of other errors (probably by not able to
detect them). Read
 on.

 Then there is invalid write of size 1 from the same
place but « Address is
 749 bytes inside a block of size 12,800 free'd ». This
doesn't look like any
 malloc that we know about. The number of bytes does not
ring a bell either.
 But then it says that the memory was freed by request of
 /usr/lib/nvidia-current

Re: [PD] pix_freenect 0.03 update

2011-11-14 Thread Matthias Kronlachner

i think i fixed the path settings with install_name_tool.
i don't have a second macbook to check if it is running on another 
machine as well.


you can find it on the same place
http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

i'll set up a repo soon so it will be better to get updates.

thanks,
matthias

Am 14.11.11 06:00, schrieb Hans-Christoph Steiner:

It'll only work if people have libusb in /usr/local/lib/libusb-1.0.0.dylib 
since that is where your libfreenect is looking for it.

.hc

On Nov 13, 2011, at 11:24 PM, Matthias Kronlachner wrote:


ah you are right thanks.
i will have a look at this later on. hope it works on other computers than mine 
:-)

i compiled libfreenect for myself with audio support... but it seems to be not 
very stable under osx.

yes, would be good to work together to get a real stable libfreenect object.

matthias

ps.: sorry for confusion with your name, it's late...or early... i'll correct 
that :-)

Am 14.11.11 04:57, schrieb Hans-Christoph Steiner:

Hey,

Good news!  Perhaps Budi and you can join forces, unless there is a reason to 
have different libfreenect objects.  About the Mac OS X binary, it looks like 
you're not using Fink for libfreenect, so the embed-MacOSX-dependencies.sh 
script didn't work.  That script looks for the /sw path of Fink.  If you run 
these commands and compare them to the fux_kinect, you'll see the differences 
in the libfreenect and libusb references:

otool -L pix_freenect.pd_darwin
otool -L libfreenect.0.0.1.dylib
otool -L libusb-1.0.0.dylib

.hc

On Nov 13, 2011, at 10:48 PM, Matthias Kronlachner wrote:


hi!

finally i found some time to update my pix_freenect external for interfacing 
with the kinect sensor.

you can find source code and binaries (osx, ubuntu 11.10) here:
http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

major changes:

* output rgb and depth stream simultaneously, plus 4 channel audio samples as 
list on linux (audio from libfreenect is still experimental)
* uses libfreenect v0.1 -   not backward compatible!!
* binary for osx -   thanks to hans-christian steiner for makefiles i found 
from fux_kinect...
* accelerator and tilt angle output
* different depth output modes (raw for distance measurement)

you have to toggle a led, tilt or accelerator output after starting rendering 
to start the streams - don't really know why but i will try to fix that.

i tested it with two kinects under ubuntu and osx and it worked fine.


for using audio you have to build libfreenect with audio (default it is off!) 
and put the audio.bin into pix_freenect folder.


have fun and please report bugs.


matthias

ps.: sorry for not continuing the plugin for pix_video framework but in case of 
the kinect it is quite difficult with the 2 streams you get plus the audio 
stream.

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



A cellphone to me is just an opportunity to be irritated wherever you are. - 
Linus Torvalds










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







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


Re: [PD] fux_kinect

2011-11-14 Thread Matthias Kronlachner

hi!

Am 14.11.11 19:19, schrieb tim vets:



2011/11/14 Budi Prakosa i...@deadmediafm.org 
mailto:i...@deadmediafm.org


hi tim, have you try the latest version of pix_freenect by matthias?


Hi Budi and list,
I tried pix_freenect.pd_linux, but unfortunately: pix_freenect: can't 
load library

No idea why...
I'm running GEM: ver: 0.92.3. Is v0.93 a requirement maybe?

gem v0.93 is needed!
but there is a binary available now anyway so you don't have to get 
yourself in trouble compiling it for osx on your own.


there was a problem with the path settings in the dylibs. try it again, 
i hope it's working now.

I also tried compiling pix_freenect myself, but got stuck at:
In file included from pix_freenect.cc:23:0:
pix_freenect.h:38:31: fatal error: libfreenect-audio.h: No such file 
or directory

compilation terminated.
pix_freenect readme says: get and install latest libfreenect from 
https://github.com/OpenKinect/libfreenect (compile with Audio support!)

libfreenect readme says: Audio is currently being worked on.
yes, audio is being worked on by the libfreenect team, but in the latest 
version from git it is included and ready for use.
i didn't have enough time to test audio under osx so it won't be 
included when building pix_freenect for osx. (it was quite unstable when 
i tried it)

now it won't search for libfreenect-audio.h while compiling for osx.

for audio i think i will divide the external into two anyway.
one for video, one for audio. i will have to check it out if it's 
working simultaneously for one kinect then.


matthias

gr,
Tim

On Mon, Nov 14, 2011 at 10:53 PM, Mathieu Bouchard
ma...@artengine.ca mailto:ma...@artengine.ca wrote:
 Le 2011-11-14 à 14:44:00, tim vets a écrit :

 Attached is the output of valgrind --leak-check=full
pdextended and
 opening fux_kinect-help.pd.

 I think that you better not add --leak-check when just looking
for a crash.
 But the only problem it does, is make the log file bigger.

 Here's what I found (summarising the important error messages) :

 Invalid write of size 1 at convert_bayer_to_rgb (in libfreenect)
by [...] by
 libusb_handle_events_timeout (in libusb). Address 0xa066360 is
[between 0
 and 5] bytes after a block of size 307,200 alloc'd

 This means that when libusb gives libfreenect the RGGB buffer and
 libfreenect is converting it to plain RGB, it makes a mistake
and writes 6
 bytes more than just 640*480 pixels, as if there were 2 extra
pixels at the
 end. But I think that this is a bit misleading. It looks as if
Valgrind was
 skipping a lot of other errors (probably by not able to detect
them). Read
 on.

 Then there is invalid write of size 1 from the same place but
« Address is
 749 bytes inside a block of size 12,800 free'd ». This doesn't
look like any
 malloc that we know about. The number of bytes does not ring a
bell either.
 But then it says that the memory was freed by request of
 /usr/lib/nvidia-current/libGL.so.270.41.06, which is a part of
your video
 driver. (???)

 But I just looked at how convert_bayer_to_rgb is written, and it
doesn't
 look like it writes to more than one buffer. This function only
writes 480
 rows of 640 columns. But note that it writes RGB values, three
bytes per
 pixel. That means you need a malloc(640*480*3) for each of the
three RGB
 buffers in fux_kinect.


 __
 | Mathieu BOUCHARD - téléphone : +1.514.383.3801
tel:%2B1.514.383.3801 - Montréal, QC
 ___
 Pd-list@iem.at mailto:Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





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


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


[PD] pix_freenect 0.03 update

2011-11-13 Thread Matthias Kronlachner

hi!

finally i found some time to update my pix_freenect external for 
interfacing with the kinect sensor.


you can find source code and binaries (osx, ubuntu 11.10) here:
http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

major changes:

* output rgb and depth stream simultaneously, plus 4 channel audio 
samples as list on linux (audio from libfreenect is still experimental)

* uses libfreenect v0.1 - not backward compatible!!
* binary for osx - thanks to hans-christian steiner for makefiles i 
found from fux_kinect...

* accelerator and tilt angle output
* different depth output modes (raw for distance measurement)

you have to toggle a led, tilt or accelerator output after starting 
rendering to start the streams - don't really know why but i will try to 
fix that.


i tested it with two kinects under ubuntu and osx and it worked fine.


for using audio you have to build libfreenect with audio (default it is 
off!) and put the audio.bin into pix_freenect folder.



have fun and please report bugs.


matthias

ps.: sorry for not continuing the plugin for pix_video framework but in 
case of the kinect it is quite difficult with the 2 streams you get plus 
the audio stream.


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


Re: [PD] pix_freenect 0.03 update

2011-11-13 Thread Matthias Kronlachner

ah you are right thanks.
i will have a look at this later on. hope it works on other computers 
than mine :-)


i didn't use fink right, i compiled libfreenect for myself with audio 
support... but it seems to be not very stable under osx (the audio stuff).


yes, would be good to work together to get a real stable libfreenect object.

matthias

ps.: sorry for confusion with your name, it's late...or early... i'll 
correct that :-)


Am 14.11.11 04:57, schrieb Hans-Christoph Steiner:

Hey,

Good news!  Perhaps Budi and you can join forces, unless there is a reason to 
have different libfreenect objects.  About the Mac OS X binary, it looks like 
you're not using Fink for libfreenect, so the embed-MacOSX-dependencies.sh 
script didn't work.  That script looks for the /sw path of Fink.  If you run 
these commands and compare them to the fux_kinect, you'll see the differences 
in the libfreenect and libusb references:

otool -L pix_freenect.pd_darwin
otool -L libfreenect.0.0.1.dylib
otool -L libusb-1.0.0.dylib

.hc

On Nov 13, 2011, at 10:48 PM, Matthias Kronlachner wrote:


hi!

finally i found some time to update my pix_freenect external for interfacing 
with the kinect sensor.

you can find source code and binaries (osx, ubuntu 11.10) here:
http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

major changes:

* output rgb and depth stream simultaneously, plus 4 channel audio samples as 
list on linux (audio from libfreenect is still experimental)
* uses libfreenect v0.1 -  not backward compatible!!
* binary for osx -  thanks to hans-christian steiner for makefiles i found 
from fux_kinect...
* accelerator and tilt angle output
* different depth output modes (raw for distance measurement)

you have to toggle a led, tilt or accelerator output after starting rendering 
to start the streams - don't really know why but i will try to fix that.

i tested it with two kinects under ubuntu and osx and it worked fine.


for using audio you have to build libfreenect with audio (default it is off!) 
and put the audio.bin into pix_freenect folder.


have fun and please report bugs.


matthias

ps.: sorry for not continuing the plugin for pix_video framework but in case of 
the kinect it is quite difficult with the 2 streams you get plus the audio 
stream.

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




A cellphone to me is just an opportunity to be irritated wherever you are. - 
Linus Torvalds




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


Re: [PD] pix_freenect 0.03 update

2011-11-13 Thread Matthias Kronlachner

hi, you can compile it yourself under ubuntu 10.04.
it shouldn't be a problem, just the binary included is compiled under 11.10.

make sure you have the latest libfreenect compiled with audio support.

matthias


Am 14.11.11 05:40, schrieb José Luis Santorcuato Tapia:
Hi all,excellent!,Is only available forubuntu11.10?would be great 
to10.04 LTS,after all, ithas the mostsupport.

Regards

José

2011/11/14 Matthias Kronlachner m.kronlach...@student.tugraz.at 
mailto:m.kronlach...@student.tugraz.at


hi!

finally i found some time to update my pix_freenect external for
interfacing with the kinect sensor.

you can find source code and binaries (osx, ubuntu 11.10) here:

http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

major changes:

* output rgb and depth stream simultaneously, plus 4 channel audio
samples as list on linux (audio from libfreenect is still
experimental)
* uses libfreenect v0.1 - not backward compatible!!
* binary for osx - thanks to hans-christian steiner for makefiles
i found from fux_kinect...
* accelerator and tilt angle output
* different depth output modes (raw for distance measurement)

you have to toggle a led, tilt or accelerator output after
starting rendering to start the streams - don't really know why
but i will try to fix that.

i tested it with two kinects under ubuntu and osx and it worked fine.


for using audio you have to build libfreenect with audio (default
it is off!) and put the audio.bin into pix_freenect folder.


have fun and please report bugs.


matthias

ps.: sorry for not continuing the plugin for pix_video framework
but in case of the kinect it is quite difficult with the 2 streams
you get plus the audio stream.

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




--
http://arselectronicachile.blogspot.com
http://comunicacionnativa.blogspot.com/
http://www.myspace.com/santorcuato





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