Re: [PD] selecting an alsa soundcard at startup

2011-09-05 Thread Ingo
That's what I was thinking, too. But it doesn't work like this.
The devices I create with udev show up in /dev.
But the devices used by /etc/modprobe.d/alsa-base.conf :

snd-emu10k1
snd_intel8x0

do not show up in /dev.

That means the sound device names are created somewhere else. Names that I
create with udev in /dev seem to be ignored by modprobe.d/alsa-base.conf.

So the question is where are these sound card IDs generated and how could I
create such an ID with udev?

Ingo


On Sun, Sep 4, 2011 at 14:33, Ingo i...@miamiwave.com wrote:
Has anybody had any success with udev?

I need to use oss and have tried to create a udev.rule to connect two
identical usb midi interfaces and identify them by the usb port.

I ended up creating the devices in /dev/ and /dev/snd/ and named them
/dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.

They show up correctly in the folder /dev/ but I don't know how to assign
them to anything alsa-base.conf can use.

The first one that gets plugged in is always midi1 no matter where I plug
it
in. If I plug only one of them into the second usb port it will create
midi1 and midi2. alsa-base.conf cannot seem to use the udev rules.
It looks like something is assigning the soundcard numbers before or after
udev.

Any ideas?

Ingo


More than udev it might be a modprobe thing.
I have these rules in /etc/modprobe.d/alsa-base.conf :
 
options snd-emu10k1 index=0
options snd_intel8x0 index=1

...which make my Soundblaster card always be hw:0 and the motherboard sound
card be hw:1.

Andras


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


Re: [PD] Pd on Android

2011-09-05 Thread Pierre Massat
Hi Chris, I tried PdDroidParty on my cousin's phone over the week-end. It's
so easy to install and use it's scary. Thank you for sharing this!

Now two questions :
- Do you plan on improving the GUI just a little bit? (I like the rough look
of Pd's native GUI, but i think it'd be nice if we could have a little color
on the sliders, bangs and toggles).
- Can i use [shell] in Android in order to delete and create folders, and
generally manage the tracks i record on the phone?

Thanks again, it's really neat!

Pierre

2011/9/1 Chris McCormick ch...@mccormick.cx

 Hi,

 On Wed, Aug 31, 2011 at 06:00:12PM +0200, athos bacchiocchi wrote:
  2011/8/31 Chris McCormick ch...@mccormick.cx
 
   As Michael Noble mentioned, I really think PdDroidParty could help you
   here.
  
 
  hey, that's really nice, thanks for sharing!  I'm thinkering with it, is
  there a way to get data from the phone's accelerometer?

 No there isn't. Maybe this is something I should add. I will put it on the
 TODO list.

 Cheers,

 Chris.

 ---
 http://mccormick.cx

 ___
 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] Pd on Android

2011-09-05 Thread Chris McCormick
Hi Pierre,

 Hi Chris, I tried PdDroidParty on my cousin's phone over the week-end.
 It's
 so easy to install and use it's scary. Thank you for sharing this!

Great stuff, I'm glad it works easily for you. These kind words make me
motivated to get the new release out ASAP! :)

(My Android phone died last night unfortunately but I will try to buy a
new one today as the new release is very close and I might just be able to
fit it into the family budget with some stretching heheheh).

 Now two questions :
 - Do you plan on improving the GUI just a little bit? (I like the rough
 look
 of Pd's native GUI, but i think it'd be nice if we could have a little
 color
 on the sliders, bangs and toggles).

Attached is a screenshot of what I am working on right now. You can theme
the supported widgets with SVGs. E.g. an SVG image for toggle-on and a
different one for toggle-off. You can have different SVGs according to
labels and sendname too. So for example you could have all toggles themed
with one look, and then give one toggle the send field of record
themed differently with an SVG (Toggle-record-off.svg) that looks like a
record button.

 - Can i use [shell] in Android in order to delete and create folders, and
 generally manage the tracks i record on the phone?

I have made an abstraction called [loadsave] which wraps openpanel and
savepanel in desktop Pd and lets you have a nice Android style interface
on the device. That gives you a small amount of access to the filesystem,
but not everything you mention. If you use the [menubutton] abstraction
you can put things in the Android menu too. See the other screenshot for
that.

However, your question begs a larger one which is support for a limited
number of externals. It would be cool to support [shell] and also the OSC
externals in PdDroidParty, but it really depends on whether they have used
Hans' Makefile-template which makes compiling for Android trivial. I will
put this on the TODO list to investigate.

In the end I would like to keep the number of externals as small as
possible so that things work on vanilla Pd on the desktop, but if someone
really needs something I am happy to look at putting it in. This is
especially true if you get the PdDroidParty code checked out and do the
work of making an external compile in yourself. :D

Cheers,

Chris.

---
http://mccormick.cx
attachment: device-2011-08-30-100028.pngattachment: device-2011-08-30-101515.png___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd on Android

2011-09-05 Thread Pierre Massat
This looks really nice! I'm looking forward to the next release!
I'll buy my own phone tonight (hopefuly...) and i'll try your abstractions
sometime soon.

I'd be glad to help if i can, but a quick look at your blog remembered me
that i have very limited skills... I can always test stuff on my own device
if you want and if it makes sense.

I forgot to ask : can i use the tilt-sensor in PdDroidParty?

Pierre

2011/9/5 Chris McCormick ch...@mccormick.cx

 Hi Pierre,

  Hi Chris, I tried PdDroidParty on my cousin's phone over the week-end.
  It's
  so easy to install and use it's scary. Thank you for sharing this!

 Great stuff, I'm glad it works easily for you. These kind words make me
 motivated to get the new release out ASAP! :)

 (My Android phone died last night unfortunately but I will try to buy a
 new one today as the new release is very close and I might just be able to
 fit it into the family budget with some stretching heheheh).

  Now two questions :
  - Do you plan on improving the GUI just a little bit? (I like the rough
  look
  of Pd's native GUI, but i think it'd be nice if we could have a little
  color
  on the sliders, bangs and toggles).

 Attached is a screenshot of what I am working on right now. You can theme
 the supported widgets with SVGs. E.g. an SVG image for toggle-on and a
 different one for toggle-off. You can have different SVGs according to
 labels and sendname too. So for example you could have all toggles themed
 with one look, and then give one toggle the send field of record
 themed differently with an SVG (Toggle-record-off.svg) that looks like a
 record button.

  - Can i use [shell] in Android in order to delete and create folders, and
  generally manage the tracks i record on the phone?

 I have made an abstraction called [loadsave] which wraps openpanel and
 savepanel in desktop Pd and lets you have a nice Android style interface
 on the device. That gives you a small amount of access to the filesystem,
 but not everything you mention. If you use the [menubutton] abstraction
 you can put things in the Android menu too. See the other screenshot for
 that.

 However, your question begs a larger one which is support for a limited
 number of externals. It would be cool to support [shell] and also the OSC
 externals in PdDroidParty, but it really depends on whether they have used
 Hans' Makefile-template which makes compiling for Android trivial. I will
 put this on the TODO list to investigate.

 In the end I would like to keep the number of externals as small as
 possible so that things work on vanilla Pd on the desktop, but if someone
 really needs something I am happy to look at putting it in. This is
 especially true if you get the PdDroidParty code checked out and do the
 work of making an external compile in yourself. :D

 Cheers,

 Chris.

 ---
 http://mccormick.cx

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


[PD] [PD-announce] Report: BEAM Festival with some Pd'rs

2011-09-05 Thread Marco Donnarumma
(sorry for x-post)

Hi folks,
I thought it may be of interest:

http://www.thesaddj.com/report-beam-festival-uxbridge-uk/

best,

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


Re: [PD] DIlib issues on OSX 10.6.x

2011-09-05 Thread William Brent
Hi Richie,

I just ran through this again with the latest versions of everything,
and it still worked for me on OSX 10.6.8.  You're right that there is
no libusb 2.0...  The first thing I'd want to double check is that you
installed libtool  libusb-devel via macports, and that you did the
+universal for libusb:

$ sudo port install libtool
$ sudo port install libusb-devel +universal

If that doesn't help and you want to shoot a few emails back and forth
to get this going, contact me off list.  We can post back here if we
have some more info that's useful for others.




On Sat, Sep 3, 2011 at 9:13 AM, Richie Cyngler glitch...@gmail.com wrote:
 Hey list,
 I'm trying to get my shiny new kinect setup for Pd play. I'm following
 WIlliam Brent's DIlib install instructions here, all was smooth sailing but
 I've hit a road block.
 I'm up to installing NITE. The directory name format seems a little
 different from the older version in the install instructions but I
 persevered and this is what I got:
 ...Nite-Bin-MacOSX-v1.4.1.2 thebeast$ sudo ./install.sh
 dyld: Library not loaded: /opt/local/lib/libusb-1.0.0.dylib
   Referenced from: /usr/lib/libOpenNI.dylib
   Reason: Incompatible library version: libOpenNI.dylib requires version
 2.0.0 or later, but libusb-1.0.0.dylib provides version 1.0.0
 ./install.sh: line 23: 98348 Trace/BPT trap          niReg /usr/lib/$base
 /usr/etc/primesense/$fdir

 If I'm reading it right (and I'm probably not, because I'm not used to this
 command line bizzo). It's not installing because it wants libusb 2.0+. I
 couldn't find a version of libusb that high, plus the libusb site seems to
 be down.
 Any advice would be much appreciated. Has anyone else tried this install?
 Got it working?
 I've also read about libfreenect, would that be a better way to go (keeping
 in mind that the less sudoing I do the better).
 thanks heaps
 --
 Richie

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





-- 
William Brent
www.williambrent.com

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com

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


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

2011-09-05 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:

I think you are missing the point of what I am saying.  I am not saying with 
we implement a strict duck typing mimicing Ruby or Python.


I think you are missing the point of what I am saying. I am saying that 
you are using the wrong words for that.


So in the sense of Pd, anything that can be intepreted as a number 
should be. But that's in conflict with having symbols that have things 
that can be intepreted as a number.  So make Pd consistent, either it 
needs to be illegal to have symbols that can be interpreted as a number,


This could break some existing patches.

or maybe symbols that can be interpreted as a number behave like a float 
when something is expecting a float.


That's what Tcl and Perl do for ints, floats and strings.

They don't call it duck-typing though, and no-one does.

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


Re: [PD] helpbrowser and the paths

2011-09-05 Thread Mathieu Bouchard

On Mon, 6 Jun 2011, Hans-Christoph Steiner wrote:

On May 10, 2011, at 6:20 AM, IOhannes m zmoelnig wrote:

On 2011-05-09 15:48, Mathieu Bouchard wrote:

On Tue, 3 May 2011, IOhannes m zmoelnig wrote:


given that both GF and Gem are to add their paths automatically on
startup, the left column if the help-browser might have 500
help-patches and several dozens of directories.


speaking of which, do you have a solution for the following case ? When
people uninstall and reinstall the library with a different path, and
then they have to know that they're supposed to remove any path items
that have been added automatically, because they do happen to be saved
if you edit the paths from the Path dialogue.


run a script that checks the user's .pdsettings for potential older
installations of GF and suggest to remove them.


Another idea is to discourage the use of the preferences for saving paths and 
startup libraries.  Since gridflow configure its self when its loaded, people 
can use [import gridflow]/[declare -lib gridflow] in the patch.


But there's a difference between discouraging the use and removing the 
use.


When you do [import gridflow], gridflow will try adding itself to the 
path. As long as the path gets saved into the settings-file, it may 
contain gridflow folders for versions of gridflow that are not in use.


I might get gridflow to stop adding things to the path in the future, just 
to avoid such problems in the future. It's a lot better than having 
gridflow's startup trying to see whether anything has to be removed from 
path... and doing it correctly.


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


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

2011-09-05 Thread Hans-Christoph Steiner


On Sep 4, 2011, at 9:39 PM, Chris McCormick wrote:

On Sun, Sep 04, 2011 at 02:23:59PM -0400, Hans-Christoph Steiner  
wrote:

After looking at Jonathan's ratio splitting abstraction I think this
might actually be possible with [makefilename] madness, but it's  
much

uglier than what you propose:
http://lists.puredata.info/pipermail/pd-list/2011-08/090196.html


Definitely check out Bryan Jurish's moocow with its bytes2any and
any2bytes.  They work quite nicely for converting between messages  
and

lists of byte floats and are easy to use.


I only want to use externals that I can guarantee every user who I  
distribute my patches to will have, or can easily get, including  
people on mobile devices. Do those externals compile with your  
Makefile-template?



The moocow externals have a separate, custom automake build system.   
They are also included with Pd-extended.  Pd-extended was created with  
this idea as the central focus, it is a standard distribution of a  
whole collection of libraries.


.hc




kill your television



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


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

2011-09-05 Thread Hans-Christoph Steiner


On Sep 5, 2011, at 1:11 PM, Mathieu Bouchard wrote:


On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:

I think you are missing the point of what I am saying.  I am not  
saying with we implement a strict duck typing mimicing Ruby or  
Python.


I think you are missing the point of what I am saying. I am saying  
that you are using the wrong words for that.


Unfortunately terms to describe typing do not have clear boundaries.   
But which words are used are not important to me, as long as the  
meaning gets across.  Does dynamic typing make you happy?  Python,  
Ruby, Perl, Tcl, and to a large extent Pd, all have dynamic typing.



So in the sense of Pd, anything that can be intepreted as a number  
should be. But that's in conflict with having symbols that have  
things that can be intepreted as a number.  So make Pd consistent,  
either it needs to be illegal to have symbols that can be  
interpreted as a number,


This could break some existing patches.



Do you have an examples?  That would be very helpful.  Off the top of  
my head, it seems that it would only break patches that rely on  
errors, which is not a very common situation.


hc




or maybe symbols that can be interpreted as a number behave like a  
float when something is expecting a float.


That's what Tcl and Perl do for ints, floats and strings.

They don't call it duck-typing though, and no-one does.

___
| Mathieu Bouchard  tél: +1.514.383.3801  Villeray,  
Montréal, QC








[T]he greatest purveyor of violence in the world today [is] my own  
government. - Martin Luther King, Jr.





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


Re: [PD] helpbrowser and the paths

2011-09-05 Thread Hans-Christoph Steiner


On Sep 5, 2011, at 1:20 PM, Mathieu Bouchard wrote:


On Mon, 6 Jun 2011, Hans-Christoph Steiner wrote:

On May 10, 2011, at 6:20 AM, IOhannes m zmoelnig wrote:

On 2011-05-09 15:48, Mathieu Bouchard wrote:

On Tue, 3 May 2011, IOhannes m zmoelnig wrote:

given that both GF and Gem are to add their paths automatically on
startup, the left column if the help-browser might have 500
help-patches and several dozens of directories.
speaking of which, do you have a solution for the following  
case ? When
people uninstall and reinstall the library with a different path,  
and
then they have to know that they're supposed to remove any path  
items
that have been added automatically, because they do happen to be  
saved

if you edit the paths from the Path dialogue.

run a script that checks the user's .pdsettings for potential older
installations of GF and suggest to remove them.


Another idea is to discourage the use of the preferences for saving  
paths and startup libraries.  Since gridflow configure its self  
when its loaded, people can use [import gridflow]/[declare -lib  
gridflow] in the patch.


But there's a difference between discouraging the use and removing  
the use.


When you do [import gridflow], gridflow will try adding itself to  
the path. As long as the path gets saved into the settings-file, it  
may contain gridflow folders for versions of gridflow that are not  
in use.


I might get gridflow to stop adding things to the path in the  
future, just to avoid such problems in the future. It's a lot better  
than having gridflow's startup trying to see whether anything has to  
be removed from path... and doing it correctly.



I agree, I think it would be better to remove setting the startup and  
path preferences completely, and leave only the command line flags and  
[import]/[declare].  I think we can leave in the loading of  
preferences since that would be similar to command line flags.  Its  
something to try and see what happens.


.hc



I hate it when they say, He gave his life for his country.  Nobody  
gives their life for anything.  We steal the lives of these kids.  - 
Admiral Gene LeRocque



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


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

2011-09-05 Thread Jonathan Wilkes




- Original Message -
 From: Mathieu Bouchard ma...@artengine.ca
 To: Hans-Christoph Steiner h...@at.or.at
 Cc: Jonathan Wilkes jancs...@yahoo.com; pd-list@iem.at pd-list@iem.at; 
 Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu
 Sent: Monday, September 5, 2011 1:11 PM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:
 
  I think you are missing the point of what I am saying.  I am not saying 
 with we implement a strict duck typing mimicing Ruby or Python.
 
 I think you are missing the point of what I am saying. I am saying that you 
 are 
 using the wrong words for that.
 
  So in the sense of Pd, anything that can be intepreted as a number should 
 be. But that's in conflict with having symbols that have things that can be 
 intepreted as a number.  So make Pd consistent, either it needs to be illegal 
 to 
 have symbols that can be interpreted as a number,
 
 This could break some existing patches.
 
  or maybe symbols that can be interpreted as a number behave like a float 
 when something is expecting a float.
 
 That's what Tcl and Perl do for ints, floats and strings.

And that's what I want for Pd.

However, I wonder if this would cause more instances of people running out of 
memory from filling up the symbol table.  Currently if you generate an error 
from 
sending a symbol atom where a float is expected, you know something screwy is 
going on, post to the list, and figure out the problem and generate float-atoms 
instead.  However, if that's not an error, you increase the chance of someone 
needlessly generating lots of unique symbol-atoms (maybe with an accumulator, 
or importing them from a database as symbol-atoms instead of floats), and having
problems or crashes that are less obvious.

-Jonathan

 
 They don't call it duck-typing though, and no-one does.

duck-taping?  No.

How about goose-for-duck-swapping?  As in you send a duck (A_SYMBOL), and 
if the object expects a number then Pd swaps the duck for a goose (A_FLOAT).

 
 ___
 | Mathieu Bouchard  tél: +1.514.383.3801  Villeray, Montréal, QC


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


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

2011-09-05 Thread Frank Barknecht
On Mon, Sep 05, 2011 at 01:36:34PM -0400, Hans-Christoph Steiner wrote:
 
 On Sep 5, 2011, at 1:11 PM, Mathieu Bouchard wrote:
 
 On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:
 So in the sense of Pd, anything that can be intepreted as a
 number should be. 

This discussion is s 2005 ... 

Anyway, a symbol, even if it consists only of digits, will not be
interpreted as a number in Pd: a symbol is a symbol, a float is a float.
Note that the sentence that you quote sometimes and which sounds similar
to the statement above (Anything that is not a valid number os [sic!]
considered a symbol. from
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.1) is talking about
the content of [object boxes] (or more generally: about the Pd editor).
Here this sentence is true, but you know that not every data entity in
Pd can be used in object boxes as name or argument, while most things
that looks like a number will become one here.

  But that's in conflict with having symbols
 that have things that can be intepreted as a number.  So make Pd
 consistent, either it needs to be illegal to have symbols that
 can be interpreted as a number,
 
 This could break some existing patches.
 
 Do you have an examples?  That would be very helpful.  Off the top
 of my head, it seems that it would only break patches that rely on
 errors, which is not a very common situation.

What errors would patches rely on that use [makefilename %d] to generate
a symbol? 

Ciao
-- 
Frank

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


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

2011-09-05 Thread Hans-Christoph Steiner


On Sep 5, 2011, at 2:06 PM, Frank Barknecht wrote:

On Mon, Sep 05, 2011 at 01:36:34PM -0400, Hans-Christoph Steiner  
wrote:


On Sep 5, 2011, at 1:11 PM, Mathieu Bouchard wrote:


On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:

So in the sense of Pd, anything that can be intepreted as a
number should be.


This discussion is s 2005 ...


And sadly is still unresolved...


Anyway, a symbol, even if it consists only of digits, will not be
interpreted as a number in Pd: a symbol is a symbol, a float is a  
float.
Note that the sentence that you quote sometimes and which sounds  
similar

to the statement above (Anything that is not a valid number os [sic!]
considered a symbol. from
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.1) is talking  
about
the content of [object boxes] (or more generally: about the Pd  
editor).

Here this sentence is true, but you know that not every data entity in
Pd can be used in object boxes as name or argument, while most things
that looks like a number will become one here.


I agree that the implementation does not match the descriptions in the  
manual.  That's what is in important here.  Yes, its possible to  
generate any kind of symbols using certain techniques, but it is not  
possible to generate any kind of symbol using any kind of symbol  
generation.  That's one example of where the inconsistency is a pain.   
Try [symbol 43( for example, or this:


[43(
|
[symbol]

Is it really a good idea to have a separate type system in object  
boxes versus the rest of Pd? What we need to come up with first is a  
coherent idea of what Pd's type system should be, or make Pd  
consistent with the idea it was built around.  Otherwise we'll forever  
have a confusing, hack job system where different objects and  
externals have different ideas of how to intrepret symbols (which is  
basically what we have now).  Name another language you want to use  
that doesn't have consistent typing?



But that's in conflict with having symbols
that have things that can be intepreted as a number.  So make Pd
consistent, either it needs to be illegal to have symbols that
can be interpreted as a number,


This could break some existing patches.


Do you have an examples?  That would be very helpful.  Off the top
of my head, it seems that it would only break patches that rely on
errors, which is not a very common situation.


What errors would patches rely on that use [makefilename %d] to  
generate

a symbol?



That's a clear case of where my proposed solution would help.  Things  
that expect symbols would interpret the message from [makefilename %d]  
as a symbol, and things that expect floats would interpret the message  
from [makefilename %d] as a float.  So the kind of thing I'm talking  
about would be like this:


[makefilename %d]
|
[float]

Then having the patch rely on the error: float: no method for  
'symbol' error that is normally generated in that case.  The part I  
don't have a clear idea on is for things that expect both a symbol and  
a float, how should [makefilename %d] be interpreted.  My guess now is  
that it should be interpreted as a symbol in that case.


.hc



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




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


Re: [PD] selecting an alsa soundcard at startup

2011-09-05 Thread András Murányi
Sorry, I haven't read your message completely and I thought it was a
reiteration of Tim's original question. I think Tim will be alrite with the
alsa-base.conf solution, but your problem is trickier.

Andras

2011/9/5 Ingo i...@miamiwave.com

 That's what I was thinking, too. But it doesn't work like this.
 The devices I create with udev show up in /dev.
 But the devices used by /etc/modprobe.d/alsa-base.conf :

 snd-emu10k1
 snd_intel8x0

 do not show up in /dev.

 That means the sound device names are created somewhere else. Names that I
 create with udev in /dev seem to be ignored by modprobe.d/alsa-base.conf.

 So the question is where are these sound card IDs generated and how could I
 create such an ID with udev?

 Ingo


 On Sun, Sep 4, 2011 at 14:33, Ingo i...@miamiwave.com wrote:
 Has anybody had any success with udev?
 
 I need to use oss and have tried to create a udev.rule to connect two
 identical usb midi interfaces and identify them by the usb port.
 
 I ended up creating the devices in /dev/ and /dev/snd/ and named them
 /dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.
 
 They show up correctly in the folder /dev/ but I don't know how to assign
 them to anything alsa-base.conf can use.
 
 The first one that gets plugged in is always midi1 no matter where I plug
 it
 in. If I plug only one of them into the second usb port it will create
 midi1 and midi2. alsa-base.conf cannot seem to use the udev rules.
 It looks like something is assigning the soundcard numbers before or
 after
 udev.
 
 Any ideas?
 
 Ingo


 More than udev it might be a modprobe thing.
 I have these rules in /etc/modprobe.d/alsa-base.conf :
 
 options snd-emu10k1 index=0
 options snd_intel8x0 index=1
 
 ...which make my Soundblaster card always be hw:0 and the motherboard
 sound
 card be hw:1.
 
 Andras


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


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

2011-09-05 Thread Jonathan Wilkes
- Original Message -

 From: Hans-Christoph Steiner h...@at.or.at
 To: Frank Barknecht f...@footils.org
 Cc: pd-list@iem.at
 Sent: Monday, September 5, 2011 2:34 PM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 
 On Sep 5, 2011, at 2:06 PM, Frank Barknecht wrote:
 
  On Mon, Sep 05, 2011 at 01:36:34PM -0400, Hans-Christoph Steiner wrote:
 
  On Sep 5, 2011, at 1:11 PM, Mathieu Bouchard wrote:
 
  On Sun, 4 Sep 2011, Hans-Christoph Steiner wrote:
  So in the sense of Pd, anything that can be intepreted as a
  number should be.
 
  This discussion is s 2005 ...
 
 And sadly is still unresolved...
 
  Anyway, a symbol, even if it consists only of digits, will not be
  interpreted as a number in Pd: a symbol is a symbol, a float is a float.
  Note that the sentence that you quote sometimes and which sounds similar
  to the statement above (Anything that is not a valid number os [sic!]
  considered a symbol. from
  http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.1) is talking about
  the content of [object boxes] (or more generally: about the Pd editor).
  Here this sentence is true, but you know that not every data entity in
  Pd can be used in object boxes as name or argument, while most things
  that looks like a number will become one here.
 
 I agree that the implementation does not match the descriptions in the 
 manual.  
 That's what is in important here.  Yes, its possible to generate any kind of 
 symbols using certain techniques, but it is not possible to generate any kind 
 of 
 symbol using any kind of symbol generation.  That's one example of where the 
 inconsistency is a pain.  Try [symbol 43( for example, or this:
 
 [43(
 |
 [symbol]
 
 Is it really a good idea to have a separate type system in object boxes 
 versus 
 the rest of Pd? What we need to come up with first is a coherent idea of what 
 Pd's type system should be, or make Pd consistent with the idea it was built 
 around.  Otherwise we'll forever have a confusing, hack job system where 
 different objects and externals have different ideas of how to intrepret 
 symbols 
 (which is basically what we have now).  Name another language you want to use 
 that doesn't have consistent typing?
 
  But that's in conflict with having symbols
  that have things that can be intepreted as a number.  So make 
 Pd
  consistent, either it needs to be illegal to have symbols that
  can be interpreted as a number,
 
  This could break some existing patches.
 
  Do you have an examples?  That would be very helpful.  Off the top
  of my head, it seems that it would only break patches that rely on
  errors, which is not a very common situation.
 
  What errors would patches rely on that use [makefilename %d] to generate
  a symbol?
 
 
 That's a clear case of where my proposed solution would help.  Things that 
 expect symbols would interpret the message from [makefilename %d] as a 
 symbol, 
 and things that expect floats would interpret the message from [makefilename 
 %d] 
 as a float.  So the kind of thing I'm talking about would be like this:
 
 [makefilename %d]
 |
 [float]

Hm, how about making it so that a Pd selector cannot be anything that could be 
interpreted 
as a valid number in Pd?  In other words, convert any numeric selector to a 
float atom:

[12(
|
[makefilename %d]
|
[list trim]  -- selector '12' becomes a float atom '12'
|
[float]  -- float atom has implicit 'float' selector, so it is accepted at the 
inlet

I don't think this would break existing patches, except in really obscure cases.

-Jonathan

 
 Then having the patch rely on the error: float: no method for 
 'symbol' error that is normally generated in that case.  The part 
 I don't have a clear idea on is for things that expect both a symbol and a 
 float, how should [makefilename %d] be interpreted.  My guess now is that it 
 should be interpreted as a symbol in that case.
 
 .hc
 
 
 
 Computer science is no more related to the computer than astronomy is related 
 to 
 the telescope.      -Edsger Dykstra
 
 
 
 ___
 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] Windowing library

2011-09-05 Thread Hans-Christoph Steiner


Yeah, Joe Sarlo vanished a while back.  I think Ed Kelly and I  
committed the windowing library to the pure-data SVN.  Go ahead and  
directly commit.


.hc

On Sep 5, 2011, at 5:39 PM, Jonathan Wilkes wrote:


Hi Hans,
 Have some revisions for the windowing lib help patches.  jsa...@ucsd.edu 
 bounced back.  Can I just commit the changes?


-Jonathan






Looking at things from a more basic level, you can come up with a more  
direct solution... It may sound small in theory, but it in practice,  
it can change entire economies. - Amy Smith



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


Re: [PD] Pd on Android

2011-09-05 Thread Hans-Christoph Steiner


On Sep 5, 2011, at 4:05 AM, Chris McCormick wrote:


Hi Pierre,

Hi Chris, I tried PdDroidParty on my cousin's phone over the week- 
end.

It's
so easy to install and use it's scary. Thank you for sharing this!


Great stuff, I'm glad it works easily for you. These kind words make  
me

motivated to get the new release out ASAP! :)

(My Android phone died last night unfortunately but I will try to  
buy a
new one today as the new release is very close and I might just be  
able to

fit it into the family budget with some stretching heheheh).


Now two questions :
- Do you plan on improving the GUI just a little bit? (I like the  
rough

look
of Pd's native GUI, but i think it'd be nice if we could have a  
little

color
on the sliders, bangs and toggles).


Attached is a screenshot of what I am working on right now. You can  
theme

the supported widgets with SVGs. E.g. an SVG image for toggle-on and a
different one for toggle-off. You can have different SVGs according to
labels and sendname too. So for example you could have all toggles  
themed

with one look, and then give one toggle the send field of record
themed differently with an SVG (Toggle-record-off.svg) that looks  
like a

record button.

- Can i use [shell] in Android in order to delete and create  
folders, and

generally manage the tracks i record on the phone?


I have made an abstraction called [loadsave] which wraps openpanel and
savepanel in desktop Pd and lets you have a nice Android style  
interface
on the device. That gives you a small amount of access to the  
filesystem,
but not everything you mention. If you use the [menubutton]  
abstraction
you can put things in the Android menu too. See the other screenshot  
for

that.

However, your question begs a larger one which is support for a  
limited
number of externals. It would be cool to support [shell] and also  
the OSC
externals in PdDroidParty, but it really depends on whether they  
have used
Hans' Makefile-template which makes compiling for Android trivial. I  
will

put this on the TODO list to investigate.

In the end I would like to keep the number of externals as small as
possible so that things work on vanilla Pd on the desktop, but if  
someone

really needs something I am happy to look at putting it in. This is
especially true if you get the PdDroidParty code checked out and do  
the

work of making an external compile in yourself. :D



[shell] is in ggee and [system] is in motex, both of those use the  
Makefile Template, so they should be really easy to compile for  
Android.  How are you installing externals with PdDroidParty? It'd be  
nice to have a simple, common folder to drop the whole library in, say  
something like /sdcard/pd-externals.


.hc



I hate it when they say, He gave his life for his country.  Nobody  
gives their life for anything.  We steal the lives of these kids.  - 
Admiral Gene LeRocque



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


Re: [PD] Windowing library

2011-09-05 Thread Jonathan Wilkes
Done.  How about tof?  In tof-meta under license it says whatever hans 
wants.  Have you taken over 

that library as well?

-Jonathan





From: Hans-Christoph Steiner h...@at.or.at
To: Jonathan Wilkes jancs...@yahoo.com
Cc: Pd List pd-l...@iem.kug.ac.at
Sent: Monday, September 5, 2011 6:12 PM
Subject: Re: Windowing library




Yeah, Joe Sarlo vanished a while back.  I think Ed Kelly and I committed the 
windowing library to the pure-data SVN.  Go ahead and directly commit.


.hc

On Sep 5, 2011, at 5:39 PM, Jonathan Wilkes wrote:

Hi Hans,
 Have some revisions for the windowing lib help patches.  jsa...@ucsd.edu 
bounced back.  Can I just commit the changes?

-Jonathan








Looking at things from a more basic level, you can come up with a more direct 
solution... It may sound small in theory, but it in practice, it can change 
entire economies.     - Amy Smith
 


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


Re: [PD] Pd on Android

2011-09-05 Thread Chris McCormick
On Mon, Sep 05, 2011 at 06:20:26PM -0400, Hans-Christoph Steiner wrote:
 [shell] is in ggee and [system] is in motex, both of those use the  
 Makefile Template, so they should be really easy to compile for Android.  
 How are you installing externals with PdDroidParty? It'd be nice to have 
 a simple, common folder to drop the whole library in, say something like 
 /sdcard/pd-externals.

Hm, that's a good idea, and then the user could put the externals they want in 
that folder themselves. I guess I just use libpd's command to add that folder 
to Pd's path?

Cheers,

Chris.

---
http://mccormick.cx

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


Re: [PD] Pd on Android

2011-09-05 Thread Chris McCormick
On Mon, Sep 05, 2011 at 02:49:41PM +0200, Pierre Massat wrote:
 I forgot to ask : can i use the tilt-sensor in PdDroidParty?

Not yet, but it is on my TODO list. Also multitouch support, which people have 
requested too.

Cheers,

Chris.

---
http://mccormick.cx

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


Re: [PD] DIlib issues on OSX 10.6.x

2011-09-05 Thread Richie Cyngler
Hi William,

Thanks for replying! A friend helped me me through it. You are right,
something hadn't installed right the first time for some reason. After doing
the port installs and all the other steps again it works! Thanks for those
Pd patches, a great place to start from.

I'm thinking about trying Homebrew and libfreenect on my other machine (also
OSX)... Do you think there are any advantages/disadvantages between that way
and your DIlib?

Anyone on the list tried both? libfreenect claims to offer some other
functionality, but I don't know how accessible it will be via Pd.

thanks



On Tue, Sep 6, 2011 at 1:22 AM, William Brent william.br...@gmail.comwrote:

 Hi Richie,

 I just ran through this again with the latest versions of everything,
 and it still worked for me on OSX 10.6.8.  You're right that there is
 no libusb 2.0...  The first thing I'd want to double check is that you
 installed libtool  libusb-devel via macports, and that you did the
 +universal for libusb:

 $ sudo port install libtool
 $ sudo port install libusb-devel +universal

 If that doesn't help and you want to shoot a few emails back and forth
 to get this going, contact me off list.  We can post back here if we
 have some more info that's useful for others.




 On Sat, Sep 3, 2011 at 9:13 AM, Richie Cyngler glitch...@gmail.com
 wrote:
  Hey list,
  I'm trying to get my shiny new kinect setup for Pd play. I'm following
  WIlliam Brent's DIlib install instructions here, all was smooth sailing
 but
  I've hit a road block.
  I'm up to installing NITE. The directory name format seems a little
  different from the older version in the install instructions but I
  persevered and this is what I got:
  ...Nite-Bin-MacOSX-v1.4.1.2 thebeast$ sudo ./install.sh
  dyld: Library not loaded: /opt/local/lib/libusb-1.0.0.dylib
Referenced from: /usr/lib/libOpenNI.dylib
Reason: Incompatible library version: libOpenNI.dylib requires version
  2.0.0 or later, but libusb-1.0.0.dylib provides version 1.0.0
  ./install.sh: line 23: 98348 Trace/BPT trap  niReg /usr/lib/$base
  /usr/etc/primesense/$fdir
 
  If I'm reading it right (and I'm probably not, because I'm not used to
 this
  command line bizzo). It's not installing because it wants libusb 2.0+. I
  couldn't find a version of libusb that high, plus the libusb site seems
 to
  be down.
  Any advice would be much appreciated. Has anyone else tried this install?
  Got it working?
  I've also read about libfreenect, would that be a better way to go
 (keeping
  in mind that the less sudoing I do the better).
  thanks heaps
  --
  Richie
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 



 --
 William Brent
 www.williambrent.com

 “Great minds flock together”
 Conflations: conversational idiom for the 21st century

 www.conflations.com




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


Re: [PD] Windowing library

2011-09-05 Thread Hans-Christoph Steiner


I'm not sure the status of 'tof'.  That's Thomas Ouellet Fredericks'  
library.  I haven't committed to it.


.hc

On Sep 5, 2011, at 6:58 PM, Jonathan Wilkes wrote:

Done.  How about tof?  In tof-meta under license it says whatever  
hans wants.  Have you taken over

that library as well?

-Jonathan

From: Hans-Christoph Steiner h...@at.or.at
To: Jonathan Wilkes jancs...@yahoo.com
Cc: Pd List pd-l...@iem.kug.ac.at
Sent: Monday, September 5, 2011 6:12 PM
Subject: Re: Windowing library


Yeah, Joe Sarlo vanished a while back.  I think Ed Kelly and I  
committed the windowing library to the pure-data SVN.  Go ahead and  
directly commit.


.hc

On Sep 5, 2011, at 5:39 PM, Jonathan Wilkes wrote:


Hi Hans,
 Have some revisions for the windowing lib help patches.  jsa...@ucsd.edu 
 bounced back.  Can I just commit the changes?


-Jonathan






Looking at things from a more basic level, you can come up with a  
more direct solution... It may sound small in theory, but it in  
practice, it can change entire economies. - Amy Smith











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





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


Re: [PD] Pd on Android

2011-09-05 Thread Hans-Christoph Steiner


On Sep 5, 2011, at 7:48 PM, Chris McCormick wrote:


On Mon, Sep 05, 2011 at 02:49:41PM +0200, Pierre Massat wrote:

I forgot to ask : can i use the tilt-sensor in PdDroidParty?


Not yet, but it is on my TODO list. Also multitouch support, which  
people have requested too.



Should be easy if you start with the code in Peter Brinkmann's  
ScenePlayer.


.hc




[W]e have invented the technology to eliminate scarcity, but we are  
deliberately throwing it away to benefit those who profit from  
scarcity.-John Gilmore




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


Re: [PD] Pd on Android

2011-09-05 Thread Peter Brinkmann
On Mon, Sep 5, 2011 at 7:46 PM, Chris McCormick ch...@mccormick.cx wrote:

 On Mon, Sep 05, 2011 at 06:20:26PM -0400, Hans-Christoph Steiner wrote:
  [shell] is in ggee and [system] is in motex, both of those use the
  Makefile Template, so they should be really easy to compile for Android.
  How are you installing externals with PdDroidParty? It'd be nice to have
  a simple, common folder to drop the whole library in, say something like
  /sdcard/pd-externals.

 Hm, that's a good idea, and then the user could put the externals they want
 in that folder themselves. I guess I just use libpd's command to add that
 folder to Pd's path?


You'll probably need to copy the binaries to internal storage because
/sdcard is mounted as noexec.  I ran into that problem last year and it took
me ages to make sense of the error message...
Cheers,
 Peter
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd-la Patching Circle/Workshop With Peter Kirn

2011-09-05 Thread Theron Trowbridge
The response has been great for this workshop, so Peter has agreed to
doing a second workshop on Saturday, 9/10 at 6 pm.

Sign-ups for the new session are in the store:

http://store.crashspacela.com/index.php?main_page=product_infocPath=2products_id=39

There are still a couple seats for the Thursday 9/8 workshop available:

http://store.crashspacela.com/index.php?main_page=product_infocPath=2products_id=38


-Theron
^

On Sat, Sep 3, 2011 at 6:19 AM, Chris McCormick ch...@mccormick.cx wrote:
 On Fri, Sep 02, 2011 at 04:58:03PM -0700, Theron Trowbridge wrote:
 Peter is a musician, Create Digital Music blogger
 (http://createdigitalmusic.com/), and is involved in porting pdlib to
 Processing and the design of the hackable synthesizer, the MeeBlip
 (http://meeblip.noisepages.com/).

 On Thursday, September 8th, from 7-10 PM, Peter will be teaching a
 workshop about using pdlib within Processing.

 ...

 The patching circle meets at CRASHspace (10526 Venice Blvd, Culver
 City CA 90232) and is open and free to all.  Donations to support
 CRASHspace are of course welcome.

 This should be excellent. Wish I could make it!

 Cheers,

 Chris.

 ---
 http://mccormick.cx


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