Re: [PD] Pd External: create multiple passive bang inlets

2014-07-03 Thread Miller Puckette via Pd-list
Hi all -

The easiest way to do this is the way the timer object does it (see
timer_new() in x_time.c) - the line that creates the inlet is:

inlet_new(x-x_obj, x-x_obj.ob_pd, gensym(bang), gensym(bang2));

... then when teh inlet get a bang, it calls timer's bang2 method.  (The
timer object itself responds to that inlet by generatng output, contrary to
all other Pd objects - but the method isn't obliged to do that, and probably
in general it shouldn't.)

cheers
Miller

On Wed, Jul 02, 2014 at 07:43:45PM -0700, Jonathan Wilkes via Pd-list wrote:
 Hi Rob,
 If you look at the code for floatinlet_new and friends, you'll see they all 
 create an inlet and then associate it with the addy of member variable.  If 
 there were a banginlet_new, it could certainly create the inlet on behalf of 
 your object, but what would it store?  Bang doesn't have a value associated 
 with it.  To be philosophical about it, the only thing a banginlet could 
 store is that is stores nothing. :)
 
 However, if what you are after is a subsidiary inlet (one with a nonzero 
 index) that has a bang method, you have to use what is called a proxy inlet.  
 See the code for [list append] or [list prepend] in x_list.c.  I think both 
 have a secondary (or proxy) object that receives messages associated with 
 the right inlet of the respective list object.  Once you set it up you just 
 add whatever method you want to your proxy class and everything should work.
 
 It would be nice if there were a convenience function that made this easier.  
 (Or maybe there is and I'm missing it.)
 
 -Jonathan
 
 
 
 
 On Wednesday, July 2, 2014 6:58 PM, Robert Esler via Pd-list 
 pd-list@lists.iem.at wrote:
  
 
 
 Hello everyone,
     My intention is to have an external with an active inlet that accepts a 
 bang and at least one passive inlet that also accepts a bang.  The active 
 inlet works fine.  However, I don't see an equivalent function call for 
 passive bang inlets similar to creating a passive float inlet, e.g 
 floatinlet_new(t_object *owner, t_float *fp);
  I have tried using symbolinlet_new(…)but cannot seem to get it to recognize 
 a bang without an error, inlet: expected 'symbol' but got 'bang'.  I have 
 also tried the inlet_new(…) but do not get the desired results.
  I'm stuck.  If anyone has any suggestions I'd love to hear them. 
 Thanks for the time.
 Rob Esler
    
 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list

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


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


Re: [PD] new window out of bounds on raspberry pi and another stuff

2014-07-03 Thread IOhannes m zmölnig via Pd-list
On 07/03/2014 06:12 AM, Alexandre Torres Porres via Pd-list wrote:
 In raspbian 'puredata' is vanilla and you can then add many libs to this,
 
 hi, if I run sudo apt-get install puredata, it installs 0.43 and with extra
 packages, 

assuming that extra packages refer to expr/bonk~/sigmund~/..., these
*are* part of Pd-vanilla.

 why isn't it 0.45 and pure vanilla?

because you are using an outdated distribution?

afaik, raspbian is based on Debian/wheezy.
now Debian/wheezy has been released 2013-05¹.
Debian releases follow an extended freeze period, in which only
bugfixes are accepted in the to-be release (and no new or updated
software can enter the distro).
this boils down to Debian/wheezy only containing Pd-vanilla 0.43.

  Is the current vanilla only available at Miller's website?

no.
Debian/jessie (the upcoming release of Debian) *currently* contains
Pd-vanilla 0.45-5 (and if any other Pd-releases are done until the next
Debian-freeze, they will be included).

i have recently sent some instructions on how to (try to) build uptodate
Debian packages for an outdated Debian release on this list (directed at
max). you could try to follow these instructions.


fgmrdsa
IOhannes

¹ the have been numerous bugfix releases of Debian/wheezy since the
original release, the latest on 2014-04-26; however ,bugfix releases are
just that: they fix bugs. new releases of software packages are not
included.




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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread IOhannes m zmölnig via Pd-list
On 07/03/2014 06:24 AM, Alexandre Torres Porres via Pd-list wrote:
 Hi there, I was treating this in a different mail thread, sorry, but let me
 go ahead and start this one.
 
 questions
 
 1- Why can't I get vanilla 0.45 from apt-get? I get 0.43 :P

as said before: because you are using an outdated (even if it's the
official one) raspbian, based on Debian/wheezy.

in addition to what i said before, i just noted, that there is also a
raspbian version available, that is based on Debian/jessie, and this
version will include Pd-0.45.5¹

if there are no images available for raspbian/jessie, you could try
upgrading your current image by doing the following (as root):
1. in /etc/apt/sources.list (and probably /etc/apt/sources.list.d/*)
replace all occurences of wheezy with jessie
2. run aptitude update
3. run aptitude full-upgrade

this is utterly untested, but the standard procedure to upgrade a Debian
based system.


mgfasr
IOhannes

¹ http://archive.raspbian.org/raspbian/pool/main/p/puredata/

 2- I downloaded from miller's site and have 0.45 extracting and alive, I'm
 running it from a folder at pi/home, but how do I put it in the menu bar?
 Really linux noobs here...
 3- Pd 0.45 is complaining about ALSA input_error (snd_pcm_open): no such
 file  directory, but it still works making noise and all. What does it
 mean, how do I fix it?
 
 Thanks
 
 
 
 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 




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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread Alexandre Torres Porres via Pd-list
 you are using an outdated (even if it's the official one) raspbian

I got the latest image from noobs, released a couple of weeks ago, then I
installed raspbian from it. So this is supposed to be out of date huh? And
then... well, I did apt-get update and everything and was assuming this
was an issue related to apt-get, not the image system.

cheers


2014-07-03 4:27 GMT-03:00 IOhannes m zmölnig pd-list@lists.iem.at:

 On 07/03/2014 06:24 AM, Alexandre Torres Porres via Pd-list wrote:
  Hi there, I was treating this in a different mail thread, sorry, but let
 me
  go ahead and start this one.
 
  questions
 
  1- Why can't I get vanilla 0.45 from apt-get? I get 0.43 :P

 as said before: because you are using an outdated (even if it's the
 official one) raspbian, based on Debian/wheezy.

 in addition to what i said before, i just noted, that there is also a
 raspbian version available, that is based on Debian/jessie, and this
 version will include Pd-0.45.5¹

 if there are no images available for raspbian/jessie, you could try
 upgrading your current image by doing the following (as root):
 1. in /etc/apt/sources.list (and probably /etc/apt/sources.list.d/*)
 replace all occurences of wheezy with jessie
 2. run aptitude update
 3. run aptitude full-upgrade

 this is utterly untested, but the standard procedure to upgrade a Debian
 based system.


 mgfasr
 IOhannes

 ¹ http://archive.raspbian.org/raspbian/pool/main/p/puredata/

  2- I downloaded from miller's site and have 0.45 extracting and alive,
 I'm
  running it from a folder at pi/home, but how do I put it in the menu bar?
  Really linux noobs here...
  3- Pd 0.45 is complaining about ALSA input_error (snd_pcm_open): no such
  file  directory, but it still works making noise and all. What does it
  mean, how do I fix it?
 
  Thanks
 
 
 
  ___
  Pd-list@lists.iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 



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


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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread Alexandre Torres Porres via Pd-list
Hi IOhannes, I read your other answer giving more info on why it could be
outdated even if released a couple of weeks ago. I think I get, although
I'd still assume or don't see why pd wouldn't be available at apt-get if
it were up to date.

Anyway, the extra packages are GEM and other stuff, so not bonk~/expr~

Well, I got it from miller's site anyway, no problem with that, just need
to know how to put it into the menu bar, and I'd appreciate if anyone could
help me with the warning *ALSA input_error (snd_pcm_open): no such file 
director*

thanks


2014-07-03 9:49 GMT-03:00 Alexandre Torres Porres por...@gmail.com:

  you are using an outdated (even if it's the official one) raspbian

 I got the latest image from noobs, released a couple of weeks ago, then
 I installed raspbian from it. So this is supposed to be out of date huh?
 And then... well, I did apt-get update and everything and was assuming
 this was an issue related to apt-get, not the image system.

 cheers


 2014-07-03 4:27 GMT-03:00 IOhannes m zmölnig pd-list@lists.iem.at:

 On 07/03/2014 06:24 AM, Alexandre Torres Porres via Pd-list wrote:
  Hi there, I was treating this in a different mail thread, sorry, but
 let me
  go ahead and start this one.
 
  questions
 
  1- Why can't I get vanilla 0.45 from apt-get? I get 0.43 :P

 as said before: because you are using an outdated (even if it's the
 official one) raspbian, based on Debian/wheezy.

 in addition to what i said before, i just noted, that there is also a
 raspbian version available, that is based on Debian/jessie, and this
 version will include Pd-0.45.5¹

 if there are no images available for raspbian/jessie, you could try
 upgrading your current image by doing the following (as root):
 1. in /etc/apt/sources.list (and probably /etc/apt/sources.list.d/*)
 replace all occurences of wheezy with jessie
 2. run aptitude update
 3. run aptitude full-upgrade

 this is utterly untested, but the standard procedure to upgrade a Debian
 based system.


 mgfasr
 IOhannes

 ¹ http://archive.raspbian.org/raspbian/pool/main/p/puredata/

  2- I downloaded from miller's site and have 0.45 extracting and alive,
 I'm
  running it from a folder at pi/home, but how do I put it in the menu
 bar?
  Really linux noobs here...
  3- Pd 0.45 is complaining about ALSA input_error (snd_pcm_open): no
 such
  file  directory, but it still works making noise and all. What does it
  mean, how do I fix it?
 
  Thanks
 
 
 
  ___
  Pd-list@lists.iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 



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



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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread IOhannes m zmoelnig via Pd-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2014-07-03 14:49, Alexandre Torres Porres via Pd-list wrote:
 you are using an outdated (even if it's the official one)
 raspbian
 
 I got the latest image from noobs, released a couple of weeks
 ago, then I installed raspbian from it. So this is supposed to be
 out of date huh? And

yes most likely this gets you an outdated system.
at least looking at [1], it is quite clear that the raspbian image is
still based debian/wheezy (even though released last week).

and debian/wheezy comes with Pd-0.43, even if you find a bugfix
release from 2030.

fgmasdr
IOhannes

 then... well, I did apt-get update and everything and was
 assuming this was an issue related to apt-get, not the image
 system.
 

no. aptitude (and it's duller brother apt-get) will manage the
packages, as configured for the installed system.
afaik, Debian *never* does an automated upgrade from one Debian
release to another, you always have to first tell your system, that
you now want to install packages from the next release (which you do
by editing the sources.list file)

$ aptitude update
will search the current distribution for updated packages. for a
stable release (such as wheezy) this means, that you will get security
related bugfix, but nothing else.

fgasmdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJTtVeQAAoJELZQGcR/ejb4VQQP/i3AujdOb2B/ePFzM7lFkCB/
W+Op1n9mkZmrU5zXA1G8IMypyYOW5h0fsfHHVW52LkTpwqzHizdYRIdrLlkLK6c9
CmHOuc0U81fL+4jFi+66hQp0ez5pC7vNy+tmdgUw9EA8Gtdx3E2AjDX2Jz1Mtx5o
nbunzwvnYUhyf4d9EcpgGmfBSIBolCspJS/59W4yxESH0VKFi+aDnoYWWj5KJEy4
NrLjqCP5GbD4TBinzK/uSGKuFzvMUzhX+jJStgizKsaCqD57rxILkba0mr/WtLzZ
jYGIpQa8QwhxamINXfswcFdY/K8/WOmNaXWcZYiPbjlHKFg38lsmoHRhrXcciUZ9
4NhT117T94qDO9389hU/e8IlCYhn6ezhBD6FxOK1CJOb3y61fpnpl0amV5xRZAGU
kcSNoVmLzQwEC0fcPdFsuV7vCMICsReC9daJsFfoOo3vyWilQi4Mzn6XbCjg2yAI
X7WweNJWhjj4/ad5ANWo1kmwRGhc2UO4qFdloYzesKVymi5FN0RpUZ2BumTPhoSV
mNA1ib90MSoxfCUa6SGhIiUH/uax2sswYeBSPyyEJU87sW1GKjbCNIDZDLLkQWL7
Mksd18f0DDnrK1LZkU6YUUsgDK58Tg543EQ+o86qp2P+U/b2FOw3D7pVnrz/XKl4
JC+MMmFrtsqLz8fn/ZME
=DBHn
-END PGP SIGNATURE-

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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread IOhannes m zmoelnig via Pd-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2014-07-03 14:55, Alexandre Torres Porres via Pd-list wrote:
 Hi IOhannes, I read your other answer giving more info on why it
 could be outdated even if released a couple of weeks ago. I think I
 get, although I'd still assume or don't see why pd wouldn't be
 available at apt-get if it were up to date.

see my other email.

 
 Anyway, the extra packages are GEM and other stuff, so not
 bonk~/expr~

then you should have said so.
traditionally, Pd-vanilla comes with an extra/ folder, where you can
find bonk~/expr~/..., hence i was under the impression that this is
what you got.

in any case: the puredata Debian package will suggest/recommend to
install a few other packages (aubio, csound, gem, pdp, zexy).
those are purely optional, and you can either uninstall them, or
configure apt-get to not install suggestions/recommendations.

 
 Well, I got it from miller's site anyway, no problem with that,
 just need to know how to put it into the menu bar, and I'd
 appreciate if anyone could help me with the warning *ALSA
 input_error (snd_pcm_open): no such file  director*

as the raspberry doesn't have an audio input, you might want to
disable it.
$ pd -noadc

(or disable the audio input in Pd's audio settings).

fgamsdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJTtVjYAAoJELZQGcR/ejb4tj8P/2/x0rToLkXxGG6VuIMi3s+B
teUBbMJK9YoLB5P+ZMOysRPAkkKZf2nvnM0c2eHyXDVo8QZebofncKcx2WOULCrn
tMQMaUSh6AGNtVyWAgH3M447BsV5ua67jfz1sRoEPXZo4+BkX82AEu0iMroVjG4N
ozn9QucxzUM+ZGD34gR+UA4t5kxyh6WQXMl+x/8JWuXUawo+X5ZiANXC5UOJ7Fqa
zeMTR77AwpwfBU4wGcPs8LW6WTfNr0xTVhKcCNGxdzkeBG8mJuFGVJvrE0QTMyLE
TtnvctWthC8K6k/x7HCxhLcVdEniCoN85w05fHpaFQV/U4UJ5tcLDLmtWLf4S0uY
hHo9DCs1fDx/1mMUQen2SPIntpcXVI1Y49lnXhW+XjryFmcUzk5KfS8/6I4K3wdw
BVwqzYbBM6qJfY9TJnnCwZ6UmXF9lBOP7KI1zeHaPGzi4HHj3pT3TnqiT9ANYVdj
swyw07aunR4kg9QfAabV6NF/9cgxI3KE1cbHRb0Xb62uhWOdvbU5Vfv6SAfP5O0O
Z34+cMHy1aW2M1W2ZqcTUzB7zolvS5lkV2aauXUEdcC7ArbRXYIlHdx5Vwis+ruB
LjB9g15fViSHFZN1MsMVCBpVJZjsMaFifLOcEIq5ZTzqXuWHMzMB2MKnJRKgkrz4
RZrRGfbZ9dhNAn6xv9f5
=fVJq
-END PGP SIGNATURE-

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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread IOhannes m zmoelnig via Pd-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2014-07-03 15:16, IOhannes m zmoelnig via Pd-list wrote:
 at least looking at [1], it is quite clear that the raspbian image
 is

[1] http://www.raspberrypi.org/downloads/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJTtVjwAAoJELZQGcR/ejb4RbYQAIlKuE66dSkycRS1olLieNXt
XIaPjG4j/8XGfi0iJfWvEdHWvbjC/hKnQ7W+KBkPXtiOX7ClADwXKT7NiGXpNJDD
ggKSVnxJixkvH5qXqdUa0Eg3npBwfx4WQoUlVQ4A6R2OT08r2FS60u/pkNGoae0a
sw0bwH35Z9SqTp6ACoqkbfWRxh/lfQbSRE6h2omL39aWV2rob/igKx8obtcZMnRB
r4s1kQJd3kEhL1VFmbOBGjfh5YQLfxFsi6+UEPwhoLjiZ1AFk5upkqIzuaYEPmcW
YNFYSon1gpndXrfPDHskLVGcxiML4NddRQSgIrVAwsursmt044JC5kNCi6smiwQk
kyex5st+gyLzLbqySdItzpwL7J3CL6HLipIXJ7x4Qwvi7FtDmNEghy8hiyqyx1IT
Fy87rOsv3MzDUF9DHbRmca+5QTkasN9dN5mUvB5mBikq84bI2bjnE2tuD1q1WaAc
2827pz6CpT455u4XVPc8pgSfxSm/CQh8G/8bj1ErZjjkX7lOQZQFnqtXmPPYX1TR
CwHgNljt5o9OGtLzn1zrQbNJ8+bhye9s0kRl2jR8OMsZaMrWyndiqWuLHx/2lsUq
ZRLbHO8QQ+hUGOrfhPnlhz7FMX3sp8P0ZL5w3LTCGha5lK+mzs6UFWfsCHGPM/NJ
2ircjugdBn3Q1FWGb/0N
=cPYk
-END PGP SIGNATURE-

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


Re: [PD] installing latest pd vanilla on RPI

2014-07-03 Thread Alexandre Torres Porres via Pd-list
Thanks for the lessons, now I got the picture. Anyway, getting 0.45 from
miller's site works just fine I guess. Only annoyance is not getting it
into the menu bar and automatically loading Pd when clicking on patch
files. I'm assuming that should be an easy thing to do, any thoughts anyone?

 you can either uninstall them, or configure
 apt-get to not install suggestions/recommendations.

cool, out of curiosity, how can you do you configure it to not install
suggestions/recommendations
and, more importantly, how could I install from apt-get specific packages
into Pd 0.45 I downloaded from miller's site?

cheers


2014-07-03 10:21 GMT-03:00 IOhannes m zmoelnig via Pd-list 
pd-list@lists.iem.at:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 On 2014-07-03 15:16, IOhannes m zmoelnig via Pd-list wrote:
  at least looking at [1], it is quite clear that the raspbian image
  is

 [1] http://www.raspberrypi.org/downloads/
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iQIcBAEBCAAGBQJTtVjwAAoJELZQGcR/ejb4RbYQAIlKuE66dSkycRS1olLieNXt
 XIaPjG4j/8XGfi0iJfWvEdHWvbjC/hKnQ7W+KBkPXtiOX7ClADwXKT7NiGXpNJDD
 ggKSVnxJixkvH5qXqdUa0Eg3npBwfx4WQoUlVQ4A6R2OT08r2FS60u/pkNGoae0a
 sw0bwH35Z9SqTp6ACoqkbfWRxh/lfQbSRE6h2omL39aWV2rob/igKx8obtcZMnRB
 r4s1kQJd3kEhL1VFmbOBGjfh5YQLfxFsi6+UEPwhoLjiZ1AFk5upkqIzuaYEPmcW
 YNFYSon1gpndXrfPDHskLVGcxiML4NddRQSgIrVAwsursmt044JC5kNCi6smiwQk
 kyex5st+gyLzLbqySdItzpwL7J3CL6HLipIXJ7x4Qwvi7FtDmNEghy8hiyqyx1IT
 Fy87rOsv3MzDUF9DHbRmca+5QTkasN9dN5mUvB5mBikq84bI2bjnE2tuD1q1WaAc
 2827pz6CpT455u4XVPc8pgSfxSm/CQh8G/8bj1ErZjjkX7lOQZQFnqtXmPPYX1TR
 CwHgNljt5o9OGtLzn1zrQbNJ8+bhye9s0kRl2jR8OMsZaMrWyndiqWuLHx/2lsUq
 ZRLbHO8QQ+hUGOrfhPnlhz7FMX3sp8P0ZL5w3LTCGha5lK+mzs6UFWfsCHGPM/NJ
 2ircjugdBn3Q1FWGb/0N
 =cPYk
 -END PGP SIGNATURE-

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

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


[PD] Recommended hardware requirements

2014-07-03 Thread Antonio Roberts via Pd-list
Hi list,

I'm writing a tutorial on using Pure Data and want to make some
recommendations on hardware.

A message on the list from 2003 mentions this: A message from 2003
talked about some minimum hardware requirements
http://lists.puredata.info/pipermail/pd-list/2003-11/015169.html

Does anyone (developers?) have suggestions for recommeneded hardware
specifications for running Pd and Pd Extended for both audio and
video?

Thanks

Antonio

-- 

anto...@hellocatfood.com
http://www.hellocatfood.com


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


Re: [PD] Pd External: create multiple passive bang inlets

2014-07-03 Thread Rob Esler via Pd-list
Thanks everyone.  
The inlet_new(…) method of dispatching a bang to a bang2 t_symbol works 
great.  I had to change the class_addmethod a little from the x_time.c example. 
 Not sure why on my build I have to add a t_atomtype (instead of just 
terminating with a 0) as an argument but this is what I did and it works: 
class_addmethod(mynamo_class, (t_method)mynamo_generate, gensym(bang2), 
A_NULL, 0);
 Not sure if the A_NULL is allocating memory somewhere, or passing a dummy 
value to my function but I don't see any errors or leaks.  If I see anything 
I'll report back.  
  I also really like the dummy class method used in the [list] family.  I'll 
try that too at some point.
Much appreciated, 
Rob

On Jul 2, 2014, at 11:56 PM, Miller Puckette m...@ucsd.edu wrote:

 Hi all -
 
 The easiest way to do this is the way the timer object does it (see
 timer_new() in x_time.c) - the line that creates the inlet is:
 
 inlet_new(x-x_obj, x-x_obj.ob_pd, gensym(bang), gensym(bang2));
 
 ... then when teh inlet get a bang, it calls timer's bang2 method.  (The
 timer object itself responds to that inlet by generatng output, contrary to
 all other Pd objects - but the method isn't obliged to do that, and probably
 in general it shouldn't.)
 
 cheers
 Miller
 
 On Wed, Jul 02, 2014 at 07:43:45PM -0700, Jonathan Wilkes via Pd-list wrote:
 Hi Rob,
 If you look at the code for floatinlet_new and friends, you'll see they all 
 create an inlet and then associate it with the addy of member variable.  If 
 there were a banginlet_new, it could certainly create the inlet on behalf of 
 your object, but what would it store?  Bang doesn't have a value associated 
 with it.  To be philosophical about it, the only thing a banginlet could 
 store is that is stores nothing. :)
 
 However, if what you are after is a subsidiary inlet (one with a nonzero 
 index) that has a bang method, you have to use what is called a proxy inlet. 
  See the code for [list append] or [list prepend] in x_list.c.  I think both 
 have a secondary (or proxy) object that receives messages associated with 
 the right inlet of the respective list object.  Once you set it up you just 
 add whatever method you want to your proxy class and everything should work.
 
 It would be nice if there were a convenience function that made this easier. 
  (Or maybe there is and I'm missing it.)
 
 -Jonathan
 
 
 
 
 On Wednesday, July 2, 2014 6:58 PM, Robert Esler via Pd-list 
 pd-list@lists.iem.at wrote:
 
 
 
 Hello everyone,
 My intention is to have an external with an active inlet that accepts a 
 bang and at least one passive inlet that also accepts a bang.  The active 
 inlet works fine.  However, I don't see an equivalent function call for 
 passive bang inlets similar to creating a passive float inlet, e.g 
 floatinlet_new(t_object *owner, t_float *fp);
  I have tried using symbolinlet_new(…)but cannot seem to get it to recognize 
 a bang without an error, inlet: expected 'symbol' but got 'bang'.  I have 
 also tried the inlet_new(…) but do not get the desired results.
  I'm stuck.  If anyone has any suggestions I'd love to hear them. 
 Thanks for the time.
 Rob Esler

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

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


Re: [PD] constantq~ - Thomas Grill

2014-07-03 Thread Thomas Grill via Pd-list
Hi Frederico,
please note that libfftw3f.dylib refers to the single precision version of the 
FFTW3 library.
As far as i remember, this needs to be explicitly specified when running 
./configure , e.g. by using some flag like --single. See ./configure --help
gr~~~

--
Thomas Grill
http://g.org



Am 02.07.2014 um 16:26 schrieb Federico Llach federicoll...@gmail.com:

 Hi Thomas,
 
 No, I don't have that file in that folder! I'll look at the FAQ for 
 Installation, but I can say sometimes there are terms I don't understand.
 Any suggestions that come to mind?
 
 Thanks,
 
 Federico Llach
 
 +1 (805) 636-4307
 Composer, Double Bass player
 www.federicollach.com
 Now Hear Header signature 140px.jpg
 Artistic Director
 www.nowhearensemble.com
 
 
 
 
 On Wed, Jul 2, 2014 at 5:52 AM, Thomas Grill g...@g.org wrote:
 Hi Frederico,
 the question is now: do you have a file /usr/local/lib/libfftw3f.3.dylib or 
 not?
 If not, the installation of fftw3 was not successful.
 gr~~~
 
 Am 02.07.2014 um 07:16 schrieb Federico Llach via Pd-list 
 pd-list@lists.iem.at:
 
 Hi all, 
 
 I am new to this list. I am trying to use the Thomas Grill's constantq~ but 
 I'm not being successful.
 
 I am on Mac OS Snow Leopard 10.6.8. I have downloaded the 
 constantq~-pd_darwin from http://g.org/data/dev/ext/macos/pd/ and 
 dropped it within the Pd-extended path at 
 /Applications/Pd-extended.app/Contents/Resources/extra/constantq~
 
 When I try to put a constantq~ object in Pd-extended I get the following 
 error:
 
 /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin:
  
 dlopen(/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin,
  10): Library not loaded: /usr/local/lib/libfftw3f.3.dylib
   Referenced from: 
 /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin
   Reason: image not found
  constantq~
 ... couldn't create
 
 It seems I should install libfftw3f.3.dylib (?)
 
 I tried to do so by downloading the file fftw-3.3.4.tar.gz at 
 http://fftw.org/download.html and following the three step installation in 
 Terminal (./configure, make, make install) and it looked like it was 
 installing things—although I got some error messages—so I restarted 
 Pd-extended and tried to create the constantq~ object again, only to obtain 
 the same error message.
 
 Any help on this Thomas—or someone else?
 
 Thanks!
 
 Federico Llach
 
 +1 (805) 636-4307
 Composer, Double Bass player
 www.federicollach.com
 Now Hear Header signature 140px.jpg
 Artistic Director
 www.nowhearensemble.com
 
 
 
 
 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 



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


Re: [PD] The dwc_otg.speed=1 issues on RPI with keyboards

2014-07-03 Thread Simon Wise via Pd-list

On 03/07/14 11:15, Alexandre Torres Porres wrote:

looks like a nice audio card, will think about getting it, thanks. Anyway,
sticking to an original question, would ANY bluetooth keyboard work on the
Raspberry Pi? I mean, I assume there must be a few dongles around that
would work on it while others not, but as soon as you have a dongle working
I assume any keyboard/mouse could work. But then, I'm not sure at all.


as I said earlier, at least some bluetooth keyboards have a very annoying 
pattern of sleeping when not used, then missing the first keystrokes that serve 
to wake them up ... but surely others will do it better??? test before you buy!



Simon

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