Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread João Pais
that's strange, I'm also in XP, and only got error: popen: no method for  
'mkdir'





- is there any object that allows to create a folder (in all OSs)?
I wanted to save files to a non-existing folder, but Pd doesn't
create one.


[mkdir $1(--[popen] ?


I wonder if that works on Windows?  Anyone tested it?  Someone could
probably make  [mkdir] object quite quickly using pdlua or tclpd.

.hc


I just tested it on WinXP. I could create a directory in the folder of  
the

patch but not a subdirectory. Not sure if it has anything to do with the
slash vs. backslash issue.

Ingo


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



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

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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread tim vets
2011/11/8 tim vets timv...@gmail.com



 2011/11/8 Ingo i...@miamiwave.com


  - is there any object that allows to create a folder (in all OSs)?
  I wanted to save files to a non-existing folder, but Pd doesn't
  create one.
 
  [mkdir $1(--[popen] ?
 
 I wonder if that works on Windows?  Anyone tested it?  Someone could
 probably make  [mkdir] object quite quickly using pdlua or tclpd.
 
 .hc

 I just tested it on WinXP. I could create a directory in the folder of the
 patch but not a subdirectory. Not sure if it has anything to do with the
 slash vs. backslash issue.

 Ah, true, I didn't think of that.
 I found a workaround though (see attachment), but it's getting absurdly
 complicated for just doing mkdir...

 and I forgot to add a loadbang, you have to click the [symbol( connected
to [l2s] first...




 Ingo


 ___
 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] clear console command + create folder from Pd?

2011-11-08 Thread tim vets
2011/11/8 João Pais jmmmp...@googlemail.com

  - is there any object that allows to create a folder (in all OSs)? I
 wanted to save files to a non-existing folder, but Pd doesn't create one.


 You could probably use Tcl's mkdir and send it to the GUI:

 [file mkidr /path/to/mynewfolder(
 |
 [hcs/sys_gui]


 this works, but only if I give a complete path, not a relative one. I can
 get the patche's current path with tof/path, but I read that tof isn't
 included in the next versions? Is it possible to get the current path
 through other methods?

 João

 [echo %CD%( -- [popen] ?


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

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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Ingo
That’s working now, Tim.

I did see already that the [loadbang] was missing.
However, working with absolute directories gets really complicated this way.

Especially if you want to have the same Patch or abstraction working on
several platforms. I would suspect this version might only work on windows
correctly?

Ingo


Von: tim vets [mailto:timv...@gmail.com] 
Gesendet: Dienstag, 8. November 2011 12:35
An: Ingo
Cc: Hans-Christoph Steiner; pd list
Betreff: Re: [PD] clear console command + create folder from Pd?


2011/11/8 tim vets timv...@gmail.com

2011/11/8 Ingo i...@miamiwave.com

 - is there any object that allows to create a folder (in all OSs)?
 I wanted to save files to a non-existing folder, but Pd doesn't
 create one.

 [mkdir $1(--[popen] ?

I wonder if that works on Windows?  Anyone tested it?  Someone could
probably make  [mkdir] object quite quickly using pdlua or tclpd.

.hc
I just tested it on WinXP. I could create a directory in the folder of the
patch but not a subdirectory. Not sure if it has anything to do with the
slash vs. backslash issue.
Ah, true, I didn't think of that.
I found a workaround though (see attachment), but it's getting absurdly
complicated for just doing mkdir...

and I forgot to add a loadbang, you have to click the [symbol( connected to
[l2s] first... 

 
Ingo


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


#N canvas 1260 409 345 335 10;
#X obj 240 289 popen;
#X obj 95 93 makefilename %c;
#X obj 67 223 l2s;
#X obj 67 161 pack s s s;
#X msg 136 206 symbol;
#X obj 67 252 prepend mkdir;
#X obj 67 289 print;
#X msg 95 72 92;
#X msg 124 140 symbol testdd;
#X msg 67 113 symbol testd;
#X obj 67 52 t b b b;
#X msg 240 64 mkdir testd;
#X obj 67 32 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 89 5 1 make directory 'testd' in current;
#X obj 67 6 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 86 28 2 make subdirectory 'testdd' in 'testd';
#X obj 136 186 loadbang;
#X connect 1 0 3 1;
#X connect 2 0 5 0;
#X connect 3 0 2 0;
#X connect 4 0 2 1;
#X connect 5 0 6 0;
#X connect 5 0 0 0;
#X connect 7 0 1 0;
#X connect 8 0 3 2;
#X connect 9 0 3 0;
#X connect 10 0 9 0;
#X connect 10 1 7 0;
#X connect 10 2 8 0;
#X connect 11 0 0 0;
#X connect 12 0 10 0;
#X connect 14 0 11 0;
#X connect 16 0 4 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Ingo


 -Ursprüngliche Nachricht-
 Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von
 João Pais
 Gesendet: Dienstag, 8. November 2011 12:46
 An: Hans-Christoph Steiner
 Cc: PD-List
 Betreff: Re: [PD] clear console command + create folder from Pd?
 
  - is there any object that allows to create a folder (in all OSs)? I
  wanted to save files to a non-existing folder, but Pd doesn't create
  one.
 
  You could probably use Tcl's mkdir and send it to the GUI:
 
  [file mkidr /path/to/mynewfolder(
  |
  [hcs/sys_gui]
 
 this works, but only if I give a complete path, not a relative one.


You could use [ggee/getdir] if you are on Pd-extended.


I can
 get the patche's current path with tof/path, but I read that tof isn't
 included in the next versions? Is it possible to get the current path
 through other methods?
 
 João

Ingo


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


Re: [PD] SCHEMA-D

2011-11-08 Thread Mathieu Bouchard

Le 2011-10-19 à 22:47:00, Anika Hirt a écrit :

thanks for your response. If it's ok for you I would like to post it on 
my Schema-D blog to answer your questions and continue the discussion 
there


If you want to...

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


Re: [PD] symbol2list leading zero

2011-11-08 Thread Mathieu Bouchard

Le 2011-11-03 à 13:43:00, Jonathan Wilkes a écrit :

I've written Pd Vanilla hacks that do it without writing to disk and 
posted them on the list.  But I'm talking about GF solutions.


I don't remember a GF external for doing this, but if you want one, you 
can add the following external to a GF source file (before the \startall) 
and recompile :


\class Strtof {
  \constructor () {}
  \decl 0 symbol (const char *s) {
char *e; float f=strtof(s,e);
if (e==s+strlen(s)) out[0](f); else out[1]();
  }
};
\end class {install(strtof,1,2);}

Or I could make it part of GridFlow.

It outputs the float on the left if the symbol was fully parsed, or bang 
on the right otherwise.


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


Re: [PD] Interruption of audio / Loading sound into array

2011-11-08 Thread Mathieu Bouchard

Le 2011-11-04 à 09:08:00, Charles Goyard a écrit :


Hans-Christoph Steiner wrote:

Threading is not the only way to do concurrency.  Think of all of
those objects in your patch, they are all running in parallel.


Yes, there's other ways than threading. ligthttpd and HAProxy are good
examples of monolithic state machine that can serve thousands of
requests per second. But in some respect, they are much more simple
projects than pd.


Hans' statement is contrary to pretty much all commonly-accepted uses of 
the words «concurrency» and «parallel».


BTW, I once tried to use the word «parallel» to mean a bunch of 
computations that don't have any dependencies with each other. I paid the 
price for doing so and I changed my wording pretty quickly.


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


Re: [PD] Interruption of audio / Loading sound into array

2011-11-08 Thread Sebastian Hanusa

Dear pd-people!

Thank you very much for the help concerning my problem with loading 
sounds into arrays.


In my practice the solution with [tabwrite] and [readsf] in combination 
with a table instead of an array works very well.


Best regards,

Sebastian

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


Re: [PD] Interruption of audio / Loading sound into array

2011-11-08 Thread Hans-Christoph Steiner

On Nov 8, 2011, at 9:34 AM, Mathieu Bouchard wrote:

 Le 2011-11-04 à 09:08:00, Charles Goyard a écrit :
 
 Hans-Christoph Steiner wrote:
 Threading is not the only way to do concurrency.  Think of all of
 those objects in your patch, they are all running in parallel.
 
 Yes, there's other ways than threading. ligthttpd and HAProxy are good
 examples of monolithic state machine that can serve thousands of
 requests per second. But in some respect, they are much more simple
 projects than pd.
 
 Hans' statement is contrary to pretty much all commonly-accepted uses of the 
 words «concurrency» and «parallel».
 
 BTW, I once tried to use the word «parallel» to mean a bunch of computations 
 that don't have any dependencies with each other. I paid the price for doing 
 so and I changed my wording pretty quickly.

You have to remember that words can have different meanings in different 
contexts.  We are not CS professors, this is the Pd list, so this context 
changes which meaning are most likely to be understood.

.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


[PD] [PD-Graz] PD-Patching Circle in Graz, November 22nd

2011-11-08 Thread Peter Venus
Dear All!

we thought, it is about time to re-start a series of monthly patching circles 
in Graz again.

The idea is simple:
Get together to discuss problems, share and work on tasks and patches with PD.
Of course, users of related software are also welcome- so if you are more into 
SuperCollider, Processing etc-
don´t hesitate to come.
Every patching circle will also be featuring a short presentation of some 
external, abstractions or similar. 

For the first meeting, we invited Matthias Kronlachner to present the 
Kinect-External [pix_freenect] he made. 
( http://matthiaskronlachner.com/?p=299 ) 

The patching-circle will be held on
November 22nd, 19°°
at
ESC im Labor, 2nd Floor (aka CC)
Jakoministr. 16, 8010 Graz

cheers, Peter

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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Hans-Christoph Steiner

On Nov 8, 2011, at 6:46 AM, João Pais wrote:

 - is there any object that allows to create a folder (in all OSs)? I wanted 
 to save files to a non-existing folder, but Pd doesn't create one.
 
 You could probably use Tcl's mkdir and send it to the GUI:
 
 [file mkidr /path/to/mynewfolder(
 |
 [hcs/sys_gui]
 
 this works, but only if I give a complete path, not a relative one. I can get 
 the patche's current path with tof/path, but I read that tof isn't included 
 in the next versions? Is it possible to get the current path through other 
 methods?

tof is included in Pd-extended as long as it doesn't break.  It doesn't 
currently have a maintainer.

.hc






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


[PD] Sigmund~ or Bonk~ question: discerning input between two sounds

2011-11-08 Thread Sebastian Valenzuela
Hi everyone,

I'll be beat-boxing (with my voice) TWO sounds into my computer microphone:
a Kick drum sound and a Hi-Hat sound. I would like to use some sort of
spectral analysis object to send bangs when it recognizes them. I ran these
two sounds through a spectral analyser and found that the Kick sound was
between 100-300 hz and the Hi-Hat sound was between 1k-10k hz. What is
the most precise way to do this? In [sigmund~], what are the arguments I
would use, and how would I specify these ranges through these arguments?

Thank you for your time,
Sebastian
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Sigmund~ or Bonk~ question: discerning input between two sounds

2011-11-08 Thread Jaime Oliver
Check out timbreID by William Brent.

Best,

J



On Nov 8, 2011, at 3:19 PM, Sebastian Valenzuela svalenzuelamu...@gmail.com 
wrote:

 Hi everyone,
 
 I'll be beat-boxing (with my voice) TWO sounds into my computer microphone: a 
 Kick drum sound and a Hi-Hat sound. I would like to use some sort of 
 spectral analysis object to send bangs when it recognizes them. I ran these 
 two sounds through a spectral analyser and found that the Kick sound was 
 between 100-300 hz and the Hi-Hat sound was between 1k-10k hz. What is the 
 most precise way to do this? In [sigmund~], what are the arguments I would 
 use, and how would I specify these ranges through these arguments?
 
 Thank you for your time,
 Sebastian
 ___
 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 source code of sig~.c

2011-11-08 Thread Olivier Baudry

Dear all

I upload all pd-svn source code si I research a  code of sig~.c  but I 
don't see it.


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


Re: [PD] searching source code of sig~.c

2011-11-08 Thread Miller Puckette
It's in src/d_ctl.c

cheers
Miller

On Wed, Nov 09, 2011 at 06:58:03AM +0100, Olivier Baudry wrote:
 Dear all
 
 I upload all pd-svn source code si I research a  code of sig~.c  but
 I don't see it.
 
 ___
 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