Re: [PD] external glitch with jack not with alsa why?

2009-07-16 Thread patrick

hi,

update on this problem:

instead of trying to rewrite the external, i was trying to use netsend 
(udp) / netreceive to send 17 messages (int) each 10 ms using 2 
instances of pd (-nrt -nogui / pd -rt -jack). i have a strange behaviour 
with pd -rt -jack, i cannot click anywhere, it's frozen until i disable 
compute audio and then all my previous action (opening sub-patch) are 
working, but if i check compute audio again same problem? same goes for 
mrpeach external (osc).


so it seems that flooding netsend / netreceive is not a good idea to 
avoid glitch. i have to find a way to make my external work with pd -rt 
-jack. this is the line that causing the glitch:


nBytes = usb_control_msg(x-dev_handle, USB_TYPE_VENDOR | 
USB_RECIP_DEVICE | USB_ENDPOINT_IN, EDUBEAT_CMD_POLL, 0, 0, (char 
*)buffer, sizeof(buffer), 10);


is using pthread with a buffer would fix this problem?
patrick

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


Re: [PD] external glitch with jack not with alsa why?

2009-07-16 Thread Rich E
What version of pd are you using?

On Thu, Jul 16, 2009 at 8:14 AM, patrick pured...@11h11.com wrote:

 hi,

 update on this problem:

 instead of trying to rewrite the external, i was trying to use netsend
 (udp) / netreceive to send 17 messages (int) each 10 ms using 2 instances of
 pd (-nrt -nogui / pd -rt -jack). i have a strange behaviour with pd -rt
 -jack, i cannot click anywhere, it's frozen until i disable compute audio
 and then all my previous action (opening sub-patch) are working, but if i
 check compute audio again same problem? same goes for mrpeach external
 (osc).

 so it seems that flooding netsend / netreceive is not a good idea to avoid
 glitch. i have to find a way to make my external work with pd -rt -jack.
 this is the line that causing the glitch:

 nBytes = usb_control_msg(x-dev_handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE
 | USB_ENDPOINT_IN, EDUBEAT_CMD_POLL, 0, 0, (char *)buffer, sizeof(buffer),
 10);

 is using pthread with a buffer would fix this problem?
 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


[PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
This simple patch crashes every time on ubuntu Jaunty/Pd-extended 0.41.4.
The same patch works fine on my ubuntu Hardy machine, also with Pd-extended
0.41.4 It doesn't matter if I try a different video compressor. It still
crashes.

Just click on the filename, then click on [start(.

On the Jaunty machine, the help patch for [pdp_rec~] doesn't work either. A
quick workaround fix would be greatly appreciated, if one is possible. Or am
I missing something really obvious?

-- 
John
http://alumni.media.mit.edu/~harrison/
#N canvas 0 0 992 300 10;
#X obj 256 124 pdp_noise;
#X obj 257 95 metro 70;
#X obj 257 61 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 191 69 loadbang;
#X obj 256 171 pdp_glx;
#X obj 365 144 pdp_rec~;
#X floatatom 374 186 5 0 0 0 - - -;
#X msg 394 112 start;
#X msg 394 85 open /tmp/output.mov;
#X connect 0 0 4 0;
#X connect 0 0 5 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 6 0;
#X connect 7 0 5 0;
#X connect 8 0 5 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid (8.10) not
Hardy as stated below.

-John

On Thu, Jul 16, 2009 at 2:29 AM, John Harrison johnharrison...@gmail.comwrote:

 This simple patch crashes every time on ubuntu Jaunty/Pd-extended 0.41.4.
 The same patch works fine on my ubuntu Hardy machine, also with Pd-extended
 0.41.4 It doesn't matter if I try a different video compressor. It still
 crashes.

 Just click on the filename, then click on [start(.

 On the Jaunty machine, the help patch for [pdp_rec~] doesn't work either. A
 quick workaround fix would be greatly appreciated, if one is possible. Or am
 I missing something really obvious?

 --
 John
 http://alumni.media.mit.edu/~harrison/http://alumni.media.mit.edu/%7Eharrison/




-- 
John
http://alumni.media.mit.edu/~harrison/
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Recieving OSC / Wiimote

2009-07-16 Thread Marco Donnarumma
Martin, so i guess also the method i explained before is deprecated?
I always done this way, so it's important to know if it is wrong approach :)

[dumpOSC]
|
[unpackOSC /testone /testtwo]

?

thanks




 That's because [unpackOSC] expects a stream of bytes from something like
 [udpreceive].

 I think you should use
 [udpreceive]
 |
 [unpackOSC]
 |
 [routeOSC /something /else]

 See doc/5.reference/mrpeach/routeOSC-help.pd

 Or (deprecated):

 [dumpOSC]
 |
 [route /something /else]


 Martin



-- 
Marco Donnarumma aka The !S.A.D!



Multimedia Artist, Live Performer - Roma, IT

LAB: http://www.thesaddj.com | http://www.flxer.net

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


Re: [PD] Recieving OSC / Wiimote

2009-07-16 Thread Martin Peach

Marco Donnarumma wrote:

Martin, so i guess also the method i explained before is deprecated?
I always done this way, so it's important to know if it is wrong approach :)

[dumpOSC]
|
[unpackOSC /testone /testtwo]

?


Well if it works for you, use it, but it gives me errors.
It should be:

[dumpOSC]
|
[OSCroute /testone /testtwo]

It works fine for most applications.
Basically [sendOSC], [dumpOSC], [OSCroute] work together using UDP.

[packOSC], [unpackOSC} and [routeOSC] work with [udpsend], [udpreceive] 
or [tcpclient], [tcpserver], or [comport].


Martin




thanks


 


That's because [unpackOSC] expects a stream of bytes from something like
[udpreceive].

I think you should use
[udpreceive]
|
[unpackOSC]
|
[routeOSC /something /else]

See doc/5.reference/mrpeach/routeOSC-help.pd

Or (deprecated):

[dumpOSC]
|
[route /something /else]


Martin



--
Marco Donnarumma aka The !S.A.D!



Multimedia Artist, Live Performer - Roma, IT

LAB: http://www.thesaddj.com | http://www.flxer.net

EVENT: http://www.liveperformersmeeting.net




___
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] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread ydego...@gmail.com

ola,

sorry for that..
you can suspect something changed in libquicktime interface
but i have no jaumty here...
you can try to record in theora format
with pdp_theorout~,
after all it will be already compressed
as you want and ready to publish on the web

saludos,
sevy

John Harrison wrote:
Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid 
(8.10) not Hardy as stated below.


-John

On Thu, Jul 16, 2009 at 2:29 AM, John Harrison 
johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:


This simple patch crashes every time on ubuntu Jaunty/Pd-extended
0.41.4. The same patch works fine on my ubuntu Hardy machine, also
with Pd-extended 0.41.4 It doesn't matter if I try a different
video compressor. It still crashes.

Just click on the filename, then click on [start(.

On the Jaunty machine, the help patch for [pdp_rec~] doesn't work
either. A quick workaround fix would be greatly appreciated, if
one is possible. Or am I missing something really obvious?

-- 
John

http://alumni.media.mit.edu/~harrison/
http://alumni.media.mit.edu/%7Eharrison/




--
John
http://alumni.media.mit.edu/~harrison/ 
http://alumni.media.mit.edu/%7Eharrison/



___
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] Recieving OSC / Wiimote

2009-07-16 Thread Uluğ Can Kazaz
When i printed  [dumpOSC], i saw that PD was receiving the messages like  [/
0 0 0 0 0...] . Then i used [unpack s 0 0 0 0] , so i think that is a
practical solution and good enough for me. But it needed to be figured out
which number is assigned to which axis or which button of wiimote.Basically
I figured it out by moving wiimote.
Thanks for all the informations you gave.


 That's because [unpackOSC] expects a stream of bytes from something like
 [udpreceive].

 I think you should use
 [udpreceive]
 |
 [unpackOSC]
 |
 [routeOSC /something /else]

 See doc/5.reference/mrpeach/routeOSC-help.pd

 Or (deprecated):

 [dumpOSC]
 |
 [route /something /else]


 Martin







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


Re: [PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread John Harrison
Yves what distro do you run? Are bugs I find more likely to be fixed
if I run the same distro as you? Also what happens with pdp_rec? It
remains as undocumented and broken for the latest debian distros for
some unspecified amount of time? Any method already in place for
keeping track of bugs in pdp/PiDiP?

On 7/16/09, ydego...@gmail.com ydego...@gmail.com wrote:
 ola,

 sorry for that..
 you can suspect something changed in libquicktime interface
 but i have no jaumty here...
 you can try to record in theora format
 with pdp_theorout~,
 after all it will be already compressed
 as you want and ready to publish on the web

 saludos,
 sevy

 John Harrison wrote:
 Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid
 (8.10) not Hardy as stated below.

 -John

 On Thu, Jul 16, 2009 at 2:29 AM, John Harrison
 johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:

 This simple patch crashes every time on ubuntu Jaunty/Pd-extended
 0.41.4. The same patch works fine on my ubuntu Hardy machine, also
 with Pd-extended 0.41.4 It doesn't matter if I try a different
 video compressor. It still crashes.

 Just click on the filename, then click on [start(.

 On the Jaunty machine, the help patch for [pdp_rec~] doesn't work
 either. A quick workaround fix would be greatly appreciated, if
 one is possible. Or am I missing something really obvious?

 --
 John
 http://alumni.media.mit.edu/~harrison/
 http://alumni.media.mit.edu/%7Eharrison/




 --
 John
 http://alumni.media.mit.edu/~harrison/
 http://alumni.media.mit.edu/%7Eharrison/
 

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




-- 
Sent from Gmail for mobile | mobile.google.com

John
http://alumni.media.mit.edu/~harrison/

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


Re: [PD] pdp_rec~ crashes on ubuntu Jaunty/Pd-extended 0.41.4

2009-07-16 Thread ydego...@gmail.com

i was exactly thinking that yesterday that one of the reason
of the failure of linux is that people update
components without testing the whole system,
yesterday, an update of java fucked a few things here...

so why don't you stick to stable versions ? ( e.g. hardy here )

the updates of libquicktime have always been problematic,
and frankly boring...
no i have no time to test on 10 flavors of linux...
not to speak of osx...

theora's interface is much more stable, surprinsingly,
so why don't you use it
it it's just for recording?

ciao,
sevy

John Harrison wrote:

Yves what distro do you run? Are bugs I find more likely to be fixed
if I run the same distro as you? Also what happens with pdp_rec? It
remains as undocumented and broken for the latest debian distros for
some unspecified amount of time? Any method already in place for
keeping track of bugs in pdp/PiDiP?

On 7/16/09, ydego...@gmail.com ydego...@gmail.com wrote:
  

ola,

sorry for that..
you can suspect something changed in libquicktime interface
but i have no jaumty here...
you can try to record in theora format
with pdp_theorout~,
after all it will be already compressed
as you want and ready to publish on the web

saludos,
sevy

John Harrison wrote:


Sorry my other machine where [pdp_rec~] works is ubuntu Intrepid
(8.10) not Hardy as stated below.

-John

On Thu, Jul 16, 2009 at 2:29 AM, John Harrison
johnharrison...@gmail.com mailto:johnharrison...@gmail.com wrote:

This simple patch crashes every time on ubuntu Jaunty/Pd-extended
0.41.4. The same patch works fine on my ubuntu Hardy machine, also
with Pd-extended 0.41.4 It doesn't matter if I try a different
video compressor. It still crashes.

Just click on the filename, then click on [start(.

On the Jaunty machine, the help patch for [pdp_rec~] doesn't work
either. A quick workaround fix would be greatly appreciated, if
one is possible. Or am I missing something really obvious?

--
John
http://alumni.media.mit.edu/~harrison/
http://alumni.media.mit.edu/%7Eharrison/




--
John
http://alumni.media.mit.edu/~harrison/
http://alumni.media.mit.edu/%7Eharrison/


___
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] PLEASE REMOVE MY ADDRESS FROM THE PD-LIST

2009-07-16 Thread Andrée Préfontaine

please remove my address from the pd list .

PLEASE
THANK YOU

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


Re: [PD] PLEASE REMOVE MY ADDRESS FROM THE PD-LIST

2009-07-16 Thread IOhannes m zmoelnig

Andrée Préfontaine wrote:

please remove my address from the pd list .

PLEASE
THANK YOU


cool  calm down.



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


hey, i just discovered something: if you click on the link above, you 
might unsubscribe yourself.

no need to shout at people


fgamsdr
IOhannes



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] granulator for live performance

2009-07-16 Thread Spencer Russell
Sorry for the delay. If anyone wants to try my granulator (which I'm
pretty proud of), it should now be available for download (with any
necessary abstractions) at:
http://airwav.es/projects/sfr-granulator

at some point I'll put a help patch together, but the different
sliders are documented on the web page.

thanks!

-spencer

On Tue, Jun 9, 2009 at 6:34 AM, Derek Holzerde...@umatic.nl wrote:
 Hi Fernando,

 you can try my live looper/granulator here:

 http://lists.puredata.info/pipermail/pd-list/2006-02/035619.html
 http://lists.puredata.info/pipermail/pd-list/2006-02/035624.html [zipped
 abstractions]

 best!
 Derek

 FernandoG wrote:

 I have problem with this grainvoice~.pd
 http://airwav.es/downloads/SFR-granulator%7E/grainvoice%7E.pd sample
 granulator path, pd (extended 0.41.4). Mult object cant create. Any body
 knows about this mult object?
 Any body knows another granulator with a buffer(i need to take sounds from
 a mic)  for live performance?


 --
 ::: derek holzer ::: http://blog.myspace.com/macumbista :::
 http://www.vimeo.com/macumbista :::
 ---Oblique Strategy # 113:
 Make a blank valuable by putting it in an exquisite frame

 ___
 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] PLEASE REMOVE MY ADDRESS FROM THE PD-LIST

2009-07-16 Thread Lorenzo

Hi Andrée,

To unsubscibe you can use the link which comes in every email from the 
list ;)


Go to this page: http://lists.puredata.info/listinfo/pd-list

Then scroll down to the end of the page there is a field and a button 
unsubscibe or edit options. Click it and you're done.


Bye,
Lorenzo

Andrée Préfontaine wrote:

please remove my address from the pd list .

PLEASE
THANK YOU

___
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] settings for Pure Data broken?

2009-07-16 Thread Kaj Ailomaa






I've been using Pure Data with planetccrma for a little while now, and

I've tried out fc9, fc10 and Centos 5.3 as platforms. I have had some

similar problems on all of them, except I got PD working completely

without DIO-errors only on Centos. 

At first this led me to believe it had something to do with Pulseaudio,

since Centos comes without it. Now, after experimenting more with the

settings for PD I am more inclined to believe it is a problem with PD.



These are the problems I've had:



1. Connections to jack does not start automaticly. (solved)



First I used different combinations of these flags while launching the

program: -jack -channels 8 -r 48000 -blocksize 256. 



(I am not sure if any of them really do anything for the audio

connection, except -jack, since the specific audio settings are done in

Jack internally. I have noticed that the latency for midi will only sync

with the latency for audio if I use the flag for -blocksize with a

matching value to that used in Jack settings, in my case 256.)

 

The flags did not work well, or at all. On Fedora, my system would

sometimes become almost completely frozen if the auto-connection worked.

Massive DIO-errors. On Centos, PD would simply not connect. I had to do

it manually in the menu each time.



Then I started messing with .pdsettings, found in the users home

directory. I got PD to autoconnect to jack, without any flags. These

were the settings I had to add/change:



audioapi: 5 (unchanged)

noaudioin: False (this was set to TRUE) 

audioindev1: 2 (added this line)

noaudioout: False (this was set to TRUE)

audiooutdev: 2 (added this line)

audiobuf: 10 (changed it to 10, originally 50)

rate: 48000 (and this was 44100)

...

flags : (made sure to leave this blank since the flags seemed not to

work from here. Not even the -rt flag.)



So by including this in the .pdsettings file,

and adding these flags to the launcher command path: -rt -alsamidi

I now have a functional Pure Data on my CentOS.

(remains to be seen it the same goes for Fedora).



2. Loading extra library is tricky



Lately I have needed to use only one external library, namely ext13. So,

I have only installed PD (0.39-3extended-rc5) + this library.

It loads fine, but I am initially unable to use 'r13' (alias

'receive13').

The way I go about it is I make another object called 'send13' (included

in the same library), which works fine. 

Then I retry making one named 'r13' or 'receive13'. 

Sometimes I have to repeat this order of execution until I get 'r13' to

initialize properly, after which it seems to work for the rest of the

session.

This is a little annoying, of course. 



Anyone know what this is about?



And if anyone has any insight to the problems with .pdsettings, please

tell...



_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] external glitch with jack not with alsa why? [SOLVED]

2009-07-16 Thread patrick

hi,

using pthread did the trick. as you can see i removed the reference to 
the external clock (m_clock) and replace the call to usb in a thread. no 
more glitch with jack even @ 64 audiobuf.


pat
#include m_pd.h
#include usb.h //http://libusb-win32.sourceforge.net
#include stdio.h
#include stdlib.h
#include string.h
#include pthread.h

// ==
// Constants
// --
#define USBDEV_SHARED_VENDOR	0x16c0  /* VOTI */
#define USBDEV_SHARED_PRODUCT   	0x05dc  /* Obdev's free shared PID */
#define OUTLETS 	17
#define DEFAULT_CLOCK_INTERVAL		4000 //(usleep)
#define USBREPLYBUFFER 21

// ==
// Our External's Memory structure
// --

typedef struct _gac// defines our object's internal variables for each instance in a patch
{
	t_object 		p_ob;	// object header - ALL pd external MUST begin with this...
	usb_dev_handle	*dev_handle;			// handle to the gac usb device
	intdo_10_bit;// output analog values with 8bit or 10bit resolution?
	void 			*outlets[OUTLETS];		// handle to the objects outlets
	int 			values[10];// stored values from last poll /
	int			x_verbose;
	pthread_attr_t 	gac_thread_attr;
	pthread_t	 x_threadid;
} t_gac;

void *gac_class;	// global pointer to the object class - so pd can reference the object 

// ==
// Function Prototypes
// --
void *gac_new(t_symbol *s);
void gac_assist(t_gac *x, void *b, long m, long a, char *s);
void gac_bang(t_gac *x);

// functions used to find the USB device
static int  	usbGetStringAscii(usb_dev_handle *dev, int ndex, int langid, char *buf, int buflen);
void 			find_device(t_gac *x);

// =
// Thread
// =
static void *usb_thread_read(void *w)
{
	t_gac *x = (t_gac*) w;
	while(1) {
		pthread_testcancel();
		gac_bang(x);
		usleep(DEFAULT_CLOCK_INTERVAL);	
	}
}

static void usb_thread_start(t_gac *x)
{

	// create the worker thread
if(pthread_attr_init(x-gac_thread_attr)  0)
	{
   error(gac: could not launch receive thread);
   return;
}
if(pthread_attr_setdetachstate(x-gac_thread_attr, PTHREAD_CREATE_DETACHED)  0)
	{
   error(gac: could not launch receive thread);
   return;
}
if(pthread_create(x-x_threadid, x-gac_thread_attr, usb_thread_read, x)  0)
	{
   error(gac: could not launch receive thread);
   return;
}
else
{
   if(x-x_verbose)post(gac: thread %d launched, (int)x-x_threadid );
}
}

//--
// - Message: bang  - poll gac
//--
void gac_bang(t_gac *x)	// poll gac
{
	int nBytes,i,n;
	int replymask,replyshift,replybyte;
	int	temp;
	unsigned char   buffer[USBREPLYBUFFER];
	
	if (!(x-dev_handle)) find_device(x);
	else {
			// ask gac to send us data
			nBytes = usb_control_msg(x-dev_handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, 
		EDUBEAT_CMD_POLL, 0, 0, (char *)buffer, sizeof(buffer), 10);

			for (i = 0; i  OUTLETS; i++) {
			
outlet_float(x-outlets[i], HEREYOURVALUE);

			}
			
	}
}


//--
// - Object creation and setup
//--
int gac_setup(void)
{
	gac_class = class_new ( gensym(gac),(t_newmethod)gac_new, 0, sizeof(t_gac), 	CLASS_DEFAULT,0);
	
	// Add message handlers
	class_addbang(gac_class, (t_method)gac_bang);
	post(gac version 0.1,0);
	return 1;
}

//--
void *gac_new(t_symbol *s)		// s = optional argument typed into object box (A_SYM) -- defaults to 0 if no args are typed
{
	t_gac *x;	// local variable (pointer to a t_gac data structure)
	x = (t_gac *)pd_new(gac_class);			 // create a new instance of this object

x-x_verbose = 1;

	//default to 10bit
	x-do_10_bit = 1;

	x-dev_handle = NULL;
	int i;
	
	// create outlets and assign it to our outlet variable in the instance's data structure
	for (i=0; i  OUTLETS; i++) {
		x-outlets[i] = outlet_new(x-p_ob, s_float);
	}	

usb_thread_start(x);

	return x; // return a reference to the object instance 
}

//--
// - Object destruction

Re: [PD] external glitch with jack not with alsa why?

2009-07-16 Thread patrick

compiled from svn : pd 0.42.5
i have also tried auto-build 0.42.5

i still have the problem with the external (glitchy under jack). but 
netsend / netreceive is working when using something like:


[pack 0 0 0 0 0 0 0 0 0 0 0 0 0]
|
[send $1 $2 $3 ]
|
[netsend]

still i would like to know if it's possible to fix my problem with the 
external.


pat

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


Re: [PD] image sonification pointers

2009-07-16 Thread Hans-Christoph Steiner


PDP can read/write image data to Pd arrays, which are then easily used  
to make sound.


.hc

On Jul 16, 2009, at 2:10 PM, Shawn Greenlee wrote:

hey there.  forgive me a bit as I acclimate (long time MaxMSP user  
working in Pd).


In Max (Jitter) I've built a lot around jit.peek~
Often this involves reading a one plane matrix at points specified  
by two signal inputs.  The matrix is a still image or video.  One  
input signal species which row, the other input signal specifies  
which column and out comes an appropriate signal value.


I see that in GEM there are pix_pix2sigs~  and pix_sig2pix~ which on  
first glance look promising.


So:

1.  Any pointers out there for treating image as sound in Pd,  
specifically looking at sonification (not visualization or  
simultaneous audio-visual synthesis)?


2.  Any uses of pix_pix2sig~   or pix_sig2pix~ which I should look  
at beyond the help files?


3.  Any strategies for treating each column of an image as an array  
(i. e. the array contents update based on which column of an image  
is loaded)?


4.  Do I need something else beyond the current Pd-extended (like  
GridFlow)?


Thanks! and all best,
shawn




http://shawngreenlee.com
s...@02909.com  






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






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




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


Re: [PD] image sonification pointers

2009-07-16 Thread Claude Heiland-Allen

Shawn Greenlee wrote:
hey there.  forgive me a bit as I acclimate (long time MaxMSP user 
working in Pd).


In Max (Jitter) I've built a lot around jit.peek~
Often this involves reading a one plane matrix at points specified by 
two signal inputs.  The matrix is a still image or video.  One input 
signal species which row, the other input signal specifies which column 
and out comes an appropriate signal value.


attached patch does this with gridflow (for image stuff) and zexy (for 
tabdump).  quality leaves much to be desired (no anti-aliasing / 
interpolation, and i only tried with 8-bit images...)




I see that in GEM there are pix_pix2sigs~  and pix_sig2pix~ which on 
first glance look promising.


So:

1.  Any pointers out there for treating image as sound in Pd, 
specifically looking at sonification (not visualization or simultaneous 
audio-visual synthesis)?


2.  Any uses of pix_pix2sig~   or pix_sig2pix~ which I should look at 
beyond the help files?


3.  Any strategies for treating each column of an image as an array (i. 
e. the array contents update based on which column of an image is loaded)?


4.  Do I need something else beyond the current Pd-extended (like 
GridFlow)?


Thanks! and all best,
shawn




http://shawngreenlee.com
s...@02909.com   
   






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




#N canvas 0 0 450 300 10;
#X obj 29 24 inlet~;
#X obj 124 25 inlet~;
#X obj 333 22 inlet;
#X obj 124 84 table \$0-x 64;
#X obj 29 85 table \$0-y 64;
#X obj 29 63 tabsend~ \$0-y;
#X obj 124 63 tabsend~ \$0-x;
#X obj 28 170 table \$0-z 64;
#X obj 28 194 tabreceive~ \$0-z;
#X obj 27 221 outlet~;
#X obj 216 61 bang~;
#X obj 216 84 t b b;
#X obj 216 109 tabdump \$0-y;
#X obj 320 109 tabdump \$0-x;
#X obj 320 132 #import ( 64 1 );
#X obj 216 132 #import ( 64 1 );
#X obj 216 159 @join -1;
#X obj 216 208 #to_list;
#X obj 216 231 list prepend 0;
#X obj 216 257 s \$0-z;
#X obj 216 185 #store ( 1 1 1 # 0 );
#X connect 0 0 5 0;
#X connect 1 0 6 0;
#X connect 2 0 20 1;
#X connect 8 0 9 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 11 1 13 0;
#X connect 12 0 15 0;
#X connect 13 0 14 0;
#X connect 14 0 16 1;
#X connect 15 0 16 0;
#X connect 16 0 20 0;
#X connect 17 0 18 0;
#X connect 18 0 19 0;
#X connect 20 0 17 0;
#N canvas 0 0 450 404 10;
#X obj 20 236 #peek~;
#X obj 20 263 /~ 256;
#X obj 20 289 hip~ 5;
#X obj 11 321 dac~;
#X obj 150 116 #in;
#X obj 150 147 #rgb_to_greyscale;
#X obj 150 183 #dim;
#X obj 150 205 #to_list;
#X obj 150 227 unpack f f f;
#X obj 20 126 *~ 0.5;
#X obj 21 149 +~ 0.5;
#X obj 21 177 *~ 1;
#X obj 82 125 *~ 0.5;
#X obj 83 148 +~ 0.5;
#X obj 83 176 *~ 1;
#X obj 150 30 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 150 58 openpanel;
#X msg 150 86 load \$1;
#X obj 239 225 #out window;
#X obj 239 202 #greyscale_to_rgb;
#X obj 83 103 osc~ 60.1;
#X obj 21 104 osc~ 59.9;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 1;
#X connect 2 0 3 0;
#X connect 4 0 5 0;
#X connect 5 0 0 2;
#X connect 5 0 6 0;
#X connect 5 0 19 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 11 1;
#X connect 8 1 14 1;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 0 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 0 1;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 17 0 4 0;
#X connect 19 0 18 0;
#X connect 20 0 12 0;
#X connect 21 0 9 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] HID problem in Xubuntu.

2009-07-16 Thread Diego Azar
Hi  Hans,

I've been checking the archives and found only one issue that has to do with 
the ubuntu problem and sais to put this line:
KERNEL==event[0-9]*,  MODE=0666

in /etc/udev/rules.d/40-permissions.rules file.

The problem is that xubuntu 9.04 (jaunty) doesn't have this file 
any more and permissions.rules, i think, are given in other archives... 
i'm looking in ubuntu forums to see what can i do... If someone 
knows something about...

I have already tried to create the archive but it didn't work 
either.

thanks again,

Diego.

--- On Wed, 7/15/09, Hans-Christoph Steiner h...@at.or.at wrote:

From: Hans-Christoph Steiner h...@at.or.at
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: Simon Wise simonzw...@gmail.com, PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 7:30 PM


Chances are that the trackpad is an USB device, but just internal.  But I don't 
think that's the issue.  I think in recent versions of Ubuntu, the X server or 
related process grabs the keyboard and mice using exclusive access.  You have 
to tell the X server to not use the mice that you want to use with [hid].  
Check the archives, there is quite a bit of discussion about it.  It would be 
great to have a wiki page about this...
.hc
On Jul 15, 2009, at 12:26 PM, Diego Azar wrote:
Hi Simon,

Thanks for the fast response. No, it isn't. It's the standard  synaptic 
touchpad that comes with many laptops. 

Diego.

--- On Wed, 7/15/09, Simon Wise simonzw...@gmail.com wrote:

From: Simon Wise simonzw...@gmail.com
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 11:14 AM

Diego Azar wrote:
 Hi,
 
 I'm trying to use de hid librari in Xubuntu.
 I installed pd-hid.deb package without trouble and everything works perfect 
 (usb mouse, keyboard, etc) except for the touchpad. It's not a permission 
 issue, i've already gave permission to /dev/input/event0-9 and 
 /dev/input/mouse0-2.

is your touchpad a USB HID device?

Simon

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

 




Free software means you control what your computer does. Non-free software 
means someone else controls that, and to some extent controls you. - Richard 
M. Stallman
 



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


Re: [PD] question about get/set/setsize

2009-07-16 Thread Miller Puckette
The idea was originally so that the 'get', etc, objects could look up the
field offset and type in advance to be more efficient.  I've never implemented
that though.

AND I do want to make an out so that you don't have to specify it, anyway.

cheers
Miller
On Sun, Jul 12, 2009 at 01:17:58PM -0700, Jonathan Wilkes wrote:
 
 Hi,
  I'm revising the helpfiles, and I noticed some weird behavior while 
 looking at pointer-help.pd:
 1. Hook up a [get template1 y] to the first pointer example.
 2. Traverse and click next to the end of the list.
 
 3. Get happily outputs the y field for template2 without error.
 
 Which makes me wonder- why must template names be given as arguments 
 to get/set/setsize/getsize? Template names in [pointer] already give you 
 traffic control.
 
 It would be a lot handier if you could just specify a field, and leave it 
 up to the user to provide pointers to ds instances that have that field. 
 Bonus: you could have a bunch of different ds's in a window, and poll all 
 x and y coordinates with a single [get].
 
 -Jonathan
 
 
   
 
 ___
 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] Searching for a new OS

2009-07-16 Thread Gabriel Vinazza
I have an IBM Thinkpad Pentium III 996 Mhz  256 Mb RAM, not a great
deal but still works great with Win/Pd... Now I'm looking for a free
OS that works well with Pd to say goodbye to Win, any suggestions?

pd- I've tried pure:dyne already but something went wrong with the
video :(  I just want the simplest plan

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