[PD] pd-extended 0.43 windows 7 installation

2011-09-04 Thread ALAN BROOKER
Hi List

Sony Vaio,  intel i3-370 2.4
Im trying to install pd-extended 0.43 on windows 7 on a new machine, however
when I run the application I get the following error

*The program can't start because libgcc_s_dw2-1.dll is missing from you
computer.
Try reinstalling the program to fix this problem.*


I thought it could be because I didnt have mingw installed (GNU Compiler
Collection)- but installing it doesn't solve the issue? If any one has any
advice on reolsing this and running PD would be grateful :0

Thanks All
___
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-04 Thread michael noble
Tim,

You may want to consider using jack, which will allow you to use the device
names rather than IDs so long as you do not have multiple devices of the
same type.

To get the names of the devices use cat /proc/asound/cards from the
terminal. This will list all sound devices. In my case on this machine that
command returns:

 0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfccf4000 irq 16
  1 [R15]: RME9652 - RME Digi9652 (Rev 1.5)
   RME Digi9652 (Rev 1.5) at 0xfd00, irq 20


To address the RME card, I can use the alsa device hw:R15 in my jack
startup.

Otherwise, you could probably achieve the same with a custom alsa device
specifying the hardware in ~/.asoundrc to overide the default also device,
but don't me ask me how...

-michael

On Sun, Sep 4, 2011 at 5:33 AM, tim vets timv...@gmail.com wrote:
 How do I have pd select the correct sound card, regardless of what device
 numbering it gets from alsa?
 The problem is now that for some reason, the device listing of my sound
 cards and midi devices keeps changing quite often.
 After a reboot, it is often the case that pd tries to connect to the wrong
 alsa device, and I have to select it manually again.
 Anyone know a good trick to cope with this?
 Thanks
 Tim
 ___
 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] Appending two signals together to create a third

2011-09-04 Thread martin brinkmann
On 09/01/2011 11:51 AM, Rick T wrote:

 For more background I'm going to have the Frequency, Amplitude, and Phase
 controlled by Midi Controllers.  So there will be a total of 9 midi
 controllers used (3 for each signal).

i think independent control of the 3 frequencies makes this a little
tricky. appending the waveform exactly at cycle-boundaries will only
happen at certain frequency ratios. the best i could come up with so far
was a frequency ratio and another control for the splitpoint
(attached). for 1:1 or 2:1 etc. you get more or less exactly
appended waves. (and changing a frequency-ratio makes quite nice
sweep- or sync like sounds)

i have not tried yet, but maybe it is also possible to compute the
waveform with the desired nrs of b and c cycles with messages, scale
the resulting table to the size of one block, and reblock the patch to
fit the frequency of d. this would always guarantee exactly appended
waves, though not with precise control over the frequencies of b and c.

bis denn!
martin
#N canvas 317 118 998 883 10;
#X obj 190 -35 phasor~;
#X obj 46 177 wrap~;
#X obj 45 198 *~ 512;
#X obj 159 193 *~ 512;
#X obj 159 172 wrap~;
#X obj 103 598 dac~;
#X obj 127 435 +~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0display 512 float 0;
#X coords 0 1.5 511 -1.5 256 140 1 0 0;
#X restore 285 542 graph;
#X obj 287 504 tabwrite~ \$0display;
#X msg 347 467 bang;
#X obj 190 -63 nbx 5 14 0 1 0 1 empty empty freq_D 0 -8 0 10 -262144
-1 -1 145 256;
#X obj 64 372 *~;
#X obj 100 317 nbx 5 14 0 100 0 1 empty empty amp1 0 -8 0 10 -262144
-1 -1 100 256;
#X obj 96 339 / 100;
#X obj 222 377 *~;
#X obj 258 322 nbx 5 14 0 100 0 1 empty empty amp2 0 -8 0 10 -262144
-1 -1 100 256;
#X obj 254 344 / 100;
#X obj 22 82 nbx 5 14 0 100 0 1 empty empty phase1 0 -8 0 10 -262144
-1 -1 1 256;
#X obj 27 108 / 100;
#X obj 55 155 +~;
#X obj 179 106 nbx 5 14 0 100 0 1 empty empty phase2 0 -8 0 10 -262144
-1 -1 0 256;
#X obj 176 124 / 100;
#X obj 159 150 +~;
#X obj 107 538 *~ 0.5;
#X text 3 172 osc B;
#X text 199 172 osc C;
#X obj 522 313 table \$0waveB 515;
#X obj 522 335 table \$0waveC 515;
#X obj 158 217 tabread4~ \$0waveC;
#X obj 39 222 tabread4~ \$0waveB;
#X text 390 463 click to display wave;
#X obj 593 -46 until;
#X obj 593 -18 f;
#X obj 624 -16 + 1;
#X obj 633 153 sin;
#X obj 632 130 * 6.28319;
#X obj 588 41 t f f;
#X obj 595 -100 loadbang;
#X obj 517 142 mod 2;
#X obj 527 166 * 2;
#X obj 528 191 - 1;
#X obj 632 104 / 512;
#X obj 513 118 div 256;
#X obj 625 5 mod 515;
#X msg 595 -73 515;
#X obj 515 228 * -1;
#X obj 657 178 tabwrite \$0waveB;
#X obj 509 261 tabwrite \$0waveC;
#X obj 62 294 *~;
#X obj 200 313 *~;
#X obj 94 94 *~;
#X obj 130 93 *~;
#X obj 156 56 * 2;
#X obj 194 56 * 2;
#X obj 266 -62 nbx 3 14 1 99 0 1 empty empty empty 0 -8 0 10 -262144
-1 -1 2 256;
#X obj 314 -62 nbx 3 14 1 99 0 1 empty empty empty 0 -8 0 10 -262144
-1 -1 1 256;
#X text 302 -64 :;
#X text 564 -123 make sine and square waves;
#X text 262 -84 waveform frequency ratio;
#X obj 396 51 nbx 5 14 -100 100 0 1 empty empty splitpoint 0 -8 0 10
-262144 -1 -1 0 256;
#X obj 396 71 / 100;
#X obj 302 113 cos~;
#X obj 286 215 clip~ 0 1;
#X obj 363 205 clip~ -1 0;
#X obj 363 225 *~ -1;
#X obj 303 142 +~;
#X obj 301 62 +~ 0.75;
#X obj 301 88 clip~ 1 1.75;
#X obj 302 166 *~ 64;
#X text 341 126 soft xfade;
#X text 464 34 0-1:1;
#X connect 0 0 50 0;
#X connect 0 0 51 0;
#X connect 0 0 66 0;
#X connect 1 0 2 0;
#X connect 2 0 29 0;
#X connect 3 0 28 0;
#X connect 4 0 3 0;
#X connect 6 0 23 0;
#X connect 6 0 8 0;
#X connect 9 0 8 0;
#X connect 10 0 0 0;
#X connect 11 0 6 0;
#X connect 12 0 13 0;
#X connect 13 0 11 1;
#X connect 14 0 6 1;
#X connect 15 0 16 0;
#X connect 16 0 14 1;
#X connect 17 0 18 0;
#X connect 18 0 19 1;
#X connect 19 0 1 0;
#X connect 20 0 21 0;
#X connect 21 0 22 1;
#X connect 22 0 4 0;
#X connect 23 0 5 0;
#X connect 23 0 5 1;
#X connect 28 0 49 0;
#X connect 29 0 48 0;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 32 0 36 0;
#X connect 33 0 43 0;
#X connect 34 0 46 0;
#X connect 35 0 34 0;
#X connect 36 0 41 0;
#X connect 36 0 42 0;
#X connect 36 1 46 1;
#X connect 36 1 47 1;
#X connect 37 0 44 0;
#X connect 38 0 39 0;
#X connect 39 0 40 0;
#X connect 40 0 45 0;
#X connect 41 0 35 0;
#X connect 42 0 38 0;
#X connect 43 0 32 1;
#X connect 44 0 31 0;
#X connect 45 0 47 0;
#X connect 48 0 11 0;
#X connect 49 0 14 0;
#X connect 50 0 19 0;
#X connect 51 0 22 0;
#X connect 52 0 50 1;
#X connect 53 0 51 1;
#X connect 54 0 52 0;
#X connect 55 0 53 0;
#X connect 59 0 60 0;
#X connect 60 0 65 1;
#X connect 61 0 65 0;
#X connect 62 0 48 1;
#X connect 63 0 64 0;
#X connect 64 0 49 1;
#X connect 65 0 68 0;
#X connect 66 0 67 0;
#X connect 67 0 61 0;
#X connect 68 0 62 0;
#X connect 68 0 63 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd-extended 0.43 windows 7 installation

2011-09-04 Thread Patrice Colet
Hello,
 where did you get pd-extended installation from?

adding -static-libgcc to CFLAGS in win32 build farm should resolve this problem.

- ALAN BROOKER alan.brooker2...@gmail.com a écrit :

 Hi List
 
 
 Sony Vaio, intel i3-370 2.4
 Im trying to install pd-extended 0.43 on windows 7 on a new machine,
 however when I run the application I get the following error
 
 The program can't start because libgcc_s_dw2-1.dll is missing from you
 computer.
 Try reinstalling the program to fix this problem.
 
 
 I thought it could be because I didnt have mingw installed (GNU
 Compiler Collection)- but installing it doesn't solve the issue? If
 any one has any advice on reolsing this and running PD would be
 grateful :0
 
 
 Thanks All 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

-- 
Patrice Colet 

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


Re: [PD] pd-extended 0.43 windows 7 installation

2011-09-04 Thread ALAN BROOKER
Hi Patrice,

Thanks ,
I got this from the 04/09 nightly builds file:
 Pd-0.43.1-extended-windowsxp-i386

On Sun, Sep 4, 2011 at 12:54 PM, Patrice Colet colet.patr...@free.frwrote:

 Hello,
  where did you get pd-extended installation from?

 adding -static-libgcc to CFLAGS in win32 build farm should resolve this
 problem.

 - ALAN BROOKER alan.brooker2...@gmail.com a écrit :

  Hi List
 
 
  Sony Vaio, intel i3-370 2.4
  Im trying to install pd-extended 0.43 on windows 7 on a new machine,
  however when I run the application I get the following error
 
  The program can't start because libgcc_s_dw2-1.dll is missing from you
  computer.
  Try reinstalling the program to fix this problem.
 
 
  I thought it could be because I didnt have mingw installed (GNU
  Compiler Collection)- but installing it doesn't solve the issue? If
  any one has any advice on reolsing this and running PD would be
  grateful :0
 
 
  Thanks All
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list

 --
 Patrice Colet

___
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-04 Thread Ingo
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


 http://alsa.opensrc.org/MultipleCards should give you a few clues, and
 there's probably some advice elsewhere specific to your distro.
 
 On 3 September 2011 21:33, tim vets timv...@gmail.com wrote:
  How do I have pd select the correct sound card, regardless of what
 device
  numbering it gets from alsa?
  The problem is now that for some reason, the device listing of my sound
  cards and midi devices keeps changing quite often.
  After a reboot, it is often the case that pd tries to connect to the
 wrong
  alsa device, and I have to select it manually again.
  Anyone know a good trick to cope with this?
  Thanks
  Tim
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


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


Re: [PD] Appending two signals together to create a third

2011-09-04 Thread martin brinkmann
On 09/04/2011 01:46 PM, martin brinkmann wrote:

 and reblock the patch to
 fit the frequency of d. this would always guarantee exactly appended
 waves, though not with precise control over the frequencies of b and c.

...and of course somehow write the result to normal (power of 2)
sized blocks for audio output,

 bis denn!
   martin

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


[PD] importing / using large equation into expr command

2011-09-04 Thread Rick T
Greetings All

I have 2 large equations that I would like to use with the expr command.  Is
it possible to import a text file into the expr command?
Here's an example of one of the 2 equations
http://dl.dropbox.com/u/6576402/questions/eq1.txt
Basically it's a 1 second periodic signal with sample rate at 44100 which
the equation gives me control over the frequency,amplitude,phase and
vertical offset

I do have the ability to create a wave (audio) file of the equation first
and import the wave file into PureDate, but will I have the same control
over the frequency,amplitude,phase and vertical offset that the equation
gives me?.

If you want to know what I'm creating.
1) The first option will import a text file into a table/array that will
control the variables of the equations that will vary
frequency,amplitude,phase and vertical offset over time.
2) The second option will allow the variables to
be controllable/variable using a midi controller and it's audio signal
played

I know Puredata can do this very well with small equations and the expr
command but using large equations I'm not sure.  Also if I should be doing
this in a different way please let me know I'm always willing to learn
something new.

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


Re: [PD] [PD-dev] tkwidgets

2011-09-04 Thread András Murányi
2011/9/4 Jonathan Wilkes jancs...@yahoo.com

 - Original Message -

  From: Mathieu Bouchard ma...@artengine.ca
  To: Hans-Christoph Steiner h...@at.or.at
  Cc: pd-list pd-list@iem.at; João Pais jmmmp...@googlemail.com
  Sent: Saturday, September 3, 2011 6:31 PM
  Subject: Re: [PD] [PD-dev] tkwidgets
 
  On Sat, 3 Sep 2011, Hans-Christoph Steiner wrote:
 
   Here's a good example of what I mean: the drawing commands for obj,msg,
  etc boxes should not be in 'pd'.  'pd' should tell
  'pd-gui': draw an object on this canvas, at this x,y with these
  inlets and outlets. pd-gui should also handle the mouse
  clicks, selection coloration, change of line style from dashed to solid,
 etc.
  So something like:
 
draw_object .x230ad0.c osc~ 500 10 500 inlet~ inlet outlet~
 
  desiredata sends :
change x9ad1038 x9acecc0 0 {#X obj 140 100 osc~ 500;} 2 1 1
 
  this is not using sys_mgui(), though. I don't really remember why I
 decided
  to not use it. It's using the pd_upload() function in the server. The 4th
  argument is the line of the object as it would be written in a .pd file.
 the 5th
  and 6th arguments is the number of inlets and outlets, and the 7th
 argument
  means that the object is ok (no red dash). The first arg is the id of the
  object, the second arg is the id of the canvas, and the third arg is the
 index
  of the object (as used in #X connect).
 
  This was for object updates, and was supposed to be replaced by something
 more
  efficient based on diffs. The other problem with uploading whole objects
 was
  that it didn't merge diffs, as has to happen when you move a slider that
 is
  currently receiving values or changing colour on its own, for example.
 
  sys_mgui was meant for sending updates. You'd give an object id, then a
  selector, then an arg signature (like fssfsffsf to mean some
  combination of float and symbols, for example), then varargs. This
 assumed that
  the object id came first, as in most forms of object-oriented Tcl, and
 unlike
  plain procs.
 
  the proc named «change» had to be a regular proc, because it's also
  responsible for creating the object if it does not exist, so that there
  isn't any special case for that, and then it couldn't be an instance
  method because the object might not exist yet.

 If you spent the same amount of time working on DD as you do writing about
 how
 DD works, you could spend a lot less time writing about how DD works, and a
 lot
 more time working on DD. :)

 -Jonathan


Hold on... When Matju talks about how DD works it's *almost* like
backporting from DD to Pd, and in this sense it's historic. And because of
the incompatible licenses, it might be the only way to port from DD to Pd.
Pst...! :O)

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


Re: [PD] pd-extended 0.43 windows 7 installation

2011-09-04 Thread Hans-Christoph Steiner


AH, this is probably due to using gcc 4.5 now in the new MinGW build.   
We could also include libgcc_s_dw2-1.dll in Pd-extended.  Patrice, do  
you know which is the better route? Including the dll or using -static- 
libgcc?


.hc

On Sep 4, 2011, at 7:54 AM, Patrice Colet wrote:


Hello,
where did you get pd-extended installation from?

adding -static-libgcc to CFLAGS in win32 build farm should resolve  
this problem.


- ALAN BROOKER alan.brooker2...@gmail.com a écrit :


Hi List


Sony Vaio, intel i3-370 2.4
Im trying to install pd-extended 0.43 on windows 7 on a new machine,
however when I run the application I get the following error

The program can't start because libgcc_s_dw2-1.dll is missing from  
you

computer.
Try reinstalling the program to fix this problem.


I thought it could be because I didnt have mingw installed (GNU
Compiler Collection)- but installing it doesn't solve the issue? If
any one has any advice on reolsing this and running PD would be
grateful :0


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


--
Patrice Colet

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






Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.  Now that he can realize them, he must either  
change them, or perish.-William Carlos Williams




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


Re: [PD] importing / using large equation into expr command

2011-09-04 Thread Hans-Christoph Steiner


A .pd file is a text file, so you can just open your Pd patch in a  
text editor, and paste in the equation.  But honestly with something  
that big, I think making a C external might be easier in the long run.


.hc

On Sep 4, 2011, at 9:22 AM, Rick T wrote:


Greetings All

I have 2 large equations that I would like to use with the expr  
command.  Is it possible to import a text file into the expr command?

Here's an example of one of the 2 equations 
http://dl.dropbox.com/u/6576402/questions/eq1.txt
Basically it's a 1 second periodic signal with sample rate at 44100  
which the equation gives me control over the  
frequency,amplitude,phase and vertical offset


I do have the ability to create a wave (audio) file of the equation  
first and import the wave file into PureDate, but will I have the  
same control over the frequency,amplitude,phase and vertical offset  
that the equation gives me?.


If you want to know what I'm creating.
1) The first option will import a text file into a table/array that  
will control the variables of the equations that will vary  
frequency,amplitude,phase and vertical offset over time.
2) The second option will allow the variables to be controllable/ 
variable using a midi controller and it's audio signal played


I know Puredata can do this very well with small equations and the  
expr command but using large equations I'm not sure.  Also if I  
should be doing this in a different way please let me know I'm  
always willing to learn something new.


Thanks
--

___
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] Announcing CouchPdb development

2011-09-04 Thread András Murányi
On Sat, Aug 27, 2011 at 01:00, Thomas Mayer tho...@residuum.org wrote:

 [...]

 - How should nested objects and arrays be handled? Should they be
 handled at all?


Nested objects could be just output flat along with with top-level and they
could have a property parent or something like that.
E.g.:
list id 1
list parent 0   -- means it's top level (in case the first element is 1 not
0)
list name pasta
(bang on second outlet)
list id 2
list parent 1 -- means it's a child of id 1
list name flour
list grams 250
(bang on second outlet)
list id 3
list parent 1
list name water
list grams 150
(etc...)

Arrays... I'm not sure. If it's not an array of objects, just an a simple
array of symbols/floats, isn't this possible?:
list id 1
list name family
list members Mary Joe Carl Felicity


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


Re: [PD] importing / using large equation into expr command

2011-09-04 Thread Andy Farnell

Hi Rick,

As per the olde Dorset saying, to strangers seeking directions...

You dont want to go from here

Looks like a mistake of exchanging computational space
for data space. In other words, probably the program used to 
generate this text file file is closer to what you actually 
should do (some kind of convolution is it?)

You have a sum of some amplitude offset, times some tabulated value, times
alternately sin or cos terms, times some ratios of the sample number.

Only the table values really need dealing with.

modulo two will give you either 0 or 1 to determine whether to 
choose sin() or cos(), or better, multiply that by pi/2
and incorporate it into the trig term as cos(x) = sin(pi/2 -x)

The sample number is an int that keeps increasing by one and
everything else is constant.

[until] can be used to construct an iteration, and an integration
(running sum) can be done using the accumulator idiom.



On Sun, 4 Sep 2011 11:35:39 -0400
Hans-Christoph Steiner h...@at.or.at wrote:

 
 A .pd file is a text file, so you can just open your Pd patch in a  
 text editor, and paste in the equation.  But honestly with something  
 that big, I think making a C external might be easier in the long run.
 
 .hc
 
 On Sep 4, 2011, at 9:22 AM, Rick T wrote:
 
  Greetings All
 
  I have 2 large equations that I would like to use with the expr  
  command.  Is it possible to import a text file into the expr command?
  Here's an example of one of the 2 equations 
  http://dl.dropbox.com/u/6576402/questions/eq1.txt
  Basically it's a 1 second periodic signal with sample rate at 44100  
  which the equation gives me control over the  
  frequency,amplitude,phase and vertical offset
 
  I do have the ability to create a wave (audio) file of the equation  
  first and import the wave file into PureDate, but will I have the  
  same control over the frequency,amplitude,phase and vertical offset  
  that the equation gives me?.
 
  If you want to know what I'm creating.
  1) The first option will import a text file into a table/array that  
  will control the variables of the equations that will vary  
  frequency,amplitude,phase and vertical offset over time.
  2) The second option will allow the variables to be controllable/ 
  variable using a midi controller and it's audio signal played
 
  I know Puredata can do this very well with small equations and the  
  expr command but using large equations I'm not sure.  Also if I  
  should be doing this in a different way please let me know I'm  
  always willing to learn something new.
 
  Thanks
  -- 
 
  ___
  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
 
 


-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


Re: [PD] importing / using large equation into expr command

2011-09-04 Thread Andy Farnell

Actually, now I spotted this part.


 I do have the ability to create a wave (audio) file of the equation first
 and import the wave file into PureDate, but will I have the same control
 over the frequency,amplitude,phase and vertical offset that the equation
 gives me?.

Why not import the wave into a table, scan the oscillator with a phasor
and add a frequency, amplitude or phase shift in the signal domain?

If that's what you really want to do it's _much_ easier than you might
think.

(frequency)
|
[phasor~]
|
[+~]-(phase shift)
|
[*~]-(size of table)
|
[tabread~ table]
|
[+~]-(amplitude offset)
|
(output)

-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


Re: [PD] importing / using large equation into expr command

2011-09-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Rick T wrote:

I have 2 large equations that I would like to use with the expr command. 
 Is it possible to import a text file into the expr command? Here's an 
example of one of the 2 equations 
http://dl.dropbox.com/u/6576402/questions/eq1.txt


You don't use [expr~] for this, you use [fft~] instead, or similar.

 ___
| 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] [PD-dev] tkwidgets

2011-09-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, András Murányi wrote:

Hold on... When Matju talks about how DD works it's *almost* like 
backporting from DD to Pd, and in this sense it's historic. And because 
of the incompatible licenses, it might be the only way to port from DD 
to Pd. Pst...! :O)


So, what are the licenses of DesireData ?

It's not like you really looked.

The server-side changes are under the same BSD license as Pd.

And no-one ever asked me for any license-change of any part of the 
client-side. It's not like anyone ever tried.


 ___
| 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] selecting an alsa soundcard at startup

2011-09-04 Thread András Murányi
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-dev] tkwidgets

2011-09-04 Thread Mathieu Bouchard

On Sat, 3 Sep 2011, Jonathan Wilkes wrote:

If you spent the same amount of time working on DD as you do writing 
about how DD works, you could spend a lot less time writing about how DD 
works, and a lot more time working on DD. :)


Do you think that it would be enough for getting anywhere ?

 ___
| 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-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Martin Peach wrote:

But there are more ways of writing numbers than a single sscanf call can 
handle, so a real version would have to check all the expected input 
styles.


Even in Pd ?

Pd doesn't parse any kind of hex, octal or binary.

Which of Pd's number formats are unsupported by sscanf %f ?

 ___
| 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] [PD-dev] tkwidgets

2011-09-04 Thread Hans-Christoph Steiner


On Sep 4, 2011, at 1:33 PM, Mathieu Bouchard wrote:


On Sat, 3 Sep 2011, Jonathan Wilkes wrote:

If you spent the same amount of time working on DD as you do  
writing about how DD works, you could spend a lot less time writing  
about how DD works, and a lot more time working on DD. :)


Do you think that it would be enough for getting anywhere ?



Yes.

.hc




News is what people want to keep hidden and everything else is  
publicity.  - Bill Moyers




___
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-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Mathieu Bouchard wrote:

On Sat, 3 Sep 2011, Jonathan Wilkes wrote:
Also, I'm assuming [list implode] would accept and process a list at the 
left inlet, unlike [s2l] (which passes the 1st element to the right inlet).


I don't understand. Wouldn't [list implode] correspond to [l2s], whereas 
[list explode] would correspond to [s2l].


Damn. This was meant to end using a question mark, of course.

 ___
| 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-04 Thread Mathieu Bouchard

On Sat, 3 Sep 2011, Jonathan Wilkes wrote:

It needs to be that simple for the general case because Pd Vanilla has no (sensible) mechanism to convert 
a symbol atom into a float.


Then it needs a sensible mechanism to convert a symbol atom into a float.

If symbol atoms which look like numbers to the naked eye are going to start flying around more freely in Pd 
then the docs need to explain how atoms are a kind of weird file cabinet where the label on the cabinet tells 
you which file-folder inside actually holds the data.


That's called a union or a variant record type or an «any» type or a 
sum-type or whatever else.


If it looks weird and/or difficult, it's because it's not taught in a way 
that makes it understood as normal.


Also, I'm assuming [list implode] would accept and process a list at the 
left inlet, unlike [s2l] (which passes the 1st element to the right 
inlet).


I don't understand. Wouldn't [list implode] correspond to [l2s], whereas 
[list explode] would correspond to [s2l].


 ___
| 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] [PD-dev] tkwidgets

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

 From: Mathieu Bouchard ma...@artengine.ca
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: Hans-Christoph Steiner h...@at.or.at; pd-list pd-list@iem.at; João 
 Pais jmmmp...@googlemail.com
 Sent: Sunday, September 4, 2011 1:33 PM
 Subject: Re: [PD] [PD-dev] tkwidgets
 
 On Sat, 3 Sep 2011, Jonathan Wilkes wrote:
 
  If you spent the same amount of time working on DD as you do writing about 
 how DD works, you could spend a lot less time writing about how DD works, and 
 a 
 lot more time working on DD. :)
 
 Do you think that it would be enough for getting anywhere ?

Actually the problem I reported to you about the audio not working was on my 
end.  
So if the audio works, and the iemguis are functional, the main problem looks 
like the 
subpatch zombies/gop stuff (which I'm sure is not easy to solve).  There are 
several small bugs on the tcl/tk side that I think I could fix easily.  And if 
you set aside 
the tkzinc stuff for the time being, it looks like a lot of the functionality 
is already there.

It's just that I made a list of improvements I'd like to add to Pd, and nearly 
all of them 
are there in some degree of a functioning state in DD.

At the very least, would you be interested in throwing it up on github or 
somewhere? 
(I'm not even sure if I'm using the latest release.)

-Jonathan

 
 ___
 | 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] [PD-dev] tkwidgets

2011-09-04 Thread András Murányi
2011/9/4 Mathieu Bouchard ma...@artengine.ca

 On Sun, 4 Sep 2011, András Murányi wrote:

  Hold on... When Matju talks about how DD works it's *almost* like
 backporting from DD to Pd, and in this sense it's historic. And because of
 the incompatible licenses, it might be the only way to port from DD to Pd.
 Pst...! :O)


 So, what are the licenses of DesireData ?

 It's not like you really looked.


It's similar: I remembered. See the whole thread:
http://lists.puredata.info/pipermail/pd-list/2010-10/083326.html
So, my point was: instead of arriving once every year to this point of oh
it's not compatible licenses / oh they are / oh noone asked me / etc) and
then going no further, it is actually pretty cool that you tell how things
are in DD and why, and someone who understands it might go and code it up.
This way any *possible* license incompatibilities, many *possible* bugs, and
*possible* virii/malware are filtered out. The last one was a joke.

Andras


 The server-side changes are under the same BSD license as Pd.

 And no-one ever asked me for any license-change of any part of the
 client-side. It's not like anyone ever tried.


  __**__**
 ___
 | 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-04 Thread Jonathan Wilkes
- Original Message -

 From: Martin Peach martin.pe...@sympatico.ca
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: Mathieu Bouchard ma...@artengine.ca; pd-list@iem.at pd-list@iem.at; 
 Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu
 Sent: Sunday, September 4, 2011 1:10 AM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 On 2011-09-03 22:47, Jonathan Wilkes wrote:
  - Original Message -
 
  From: Mathieu Bouchardma...@artengine.ca
  To: Jonathan Wilkesjancs...@yahoo.com
  Cc: Chris McCormickch...@mccormick.cx; Miller 
 Puckettem...@ucsd.edu; pd-list@iem.atpd-list@iem.at
  Sent: Saturday, September 3, 2011 1:20 PM
  Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in 
 a text file
 
  On Wed, 31 Aug 2011, Jonathan Wilkes wrote:
 
    Keep in mind that [list implode] must be smart enough to output 
 the float
    atom 12 given the input 49 50.  If it 
 gives you
  symbol 12 then your
    back to the [makefilename] madness from my original vanilla 
 solution.
 
  It's not that simple.
 
  It needs to be that simple for the general case because Pd Vanilla has no 
 (sensible) mechanism to convert
  a symbol atom into a float.
 
  If symbol atoms which look like numbers to the naked eye are going to start 
 flying around more freely in Pd
  then the docs need to explain how atoms are a kind of weird file cabinet 
 where the label on the cabinet tells
  you which file-folder inside actually holds the data.  So if you send the 
 symbol-atom 15 to [max], the file clerk will
  complain because it's looking for a number but the label on the cabinet 
 says A_SYMBOL.  (Additionally, if you tell
  the clerk to ignore the label and just pull out a number, the clerk will 
 look in A_FLOAT and give you a 0, because
  the 15 is in the A_SYMBOL file-folder.)
 
  Hm... is there a way you can tell the clerk to be a real go-getter when 
 looking for a float atom inside a
  cabined labeled A_SYMBOL by just going ahead and seeing if the 
 data in the A_SYMBOL file-folder looks like a
  number, and if so convert it to a float and send it on its way?
 
 Any external can do that easily enough if it wants to by using sscanf with a 
 format string:
 
 int symbol_to_float (t_atom *atom, t_float *afloat)
 {
     int n;
         n = sscanf(atom-a_w.w_symbol-s_name, %f, afloat);
         return n; /* afloat is valid if n is 1 */
 }
 
 But there are more ways of writing numbers than a single sscanf call can 
 handle, 
 so a real version would have to check all the expected input styles.
 
 The function pd_defaultsymbol in m_class.c is the default symbol handler for 
 objects that have no explicit symbol method. It could check to see if a 
 non-default float method exists and if so try to convert the symbol to a 
 float 
 for the float method to eat.

Right-- at that point it's already just going to output an error anyway.

 
 Martin


___
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-04 Thread Jonathan Wilkes




- Original Message -
 From: Mathieu Bouchard ma...@artengine.ca
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu; 
 pd-list@iem.at pd-list@iem.at
 Sent: Sunday, September 4, 2011 1:48 PM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 On Sat, 3 Sep 2011, Jonathan Wilkes wrote:
 
  It needs to be that simple for the general case because Pd Vanilla has no 
 (sensible) mechanism to convert a symbol atom into a float.
 
 Then it needs a sensible mechanism to convert a symbol atom into a float.

Yes, it does.  But if there were one, it'd still be nice to have the default be 
float 
atoms come out, and maybe a flag or a different creator name for outputting all 
symbols. (Like [symbol explode]?)

 
  If symbol atoms which look like numbers to the naked eye are going to start 
 flying around more freely in Pd then the docs need to explain how atoms are a 
 kind of weird file cabinet where the label on the cabinet tells you which 
 file-folder inside actually holds the data.
 
 That's called a union or a variant record type or an «any» type or a 
 sum-type or whatever else.
 
 If it looks weird and/or difficult, it's because it's not taught in a 
 way that makes it understood as normal.

I think the problem is it's not explicitly taught at all.

 
  Also, I'm assuming [list implode] would accept and process a list at 
 the left inlet, unlike [s2l] (which passes the 1st element to the right 
 inlet).
 
 I don't understand. Wouldn't [list implode] correspond to [l2s], whereas 
 [list explode] would correspond to [s2l].

That's right, I wrote the wrong one.  I have a bad habit of getting opposites 
mixed up-- if I'm not careful I'll create a [max] to output the greater of two 
numbers.

 
 ___
 | 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-04 Thread Hans-Christoph Steiner


On Aug 31, 2011, at 2:33 AM, Chris McCormick wrote:


On Tue, Aug 30, 2011 at 11:19:46PM -0700, Miller Puckette wrote:
I am in favour of having that functionality as part of [list] and  
those names look good to me. For the functionality you describe  
maybe something like [list ascii2symbol] and [list symbol2ascii]?  
Those would also be pretty useful!


I am currently making a [split] abstraction based on Jamie's work.  
I will send it through when I am done - or you can just look at  
symbol2list's source which IOhannes has re-licensed in a message  
to this list for use in Pd:




hmm... another possibility, as in lisp: list explode and list  
implode ?


Also good!

My idea is that, once this is in Pd vanilla, the  2/3 - 2 3  
type
of split is easy enough to program in an abstraction, but it's  
presently
not possible at all; meanwhile, the funtionality I'm describing is  
pretty
canonical and hard to split up into finer components in any way I  
can see.


Ah, ok, so you could do:

bat/cat/rat - 98 97 116 47 99 97 116 47 114 97 116

and then you would run through the number list finding 47 (/) and  
re-building the separate symbols using the reverse operation.


I guess this would be cool because it would also allow you to store  
proper strings with all kinds of characters in regular Pd arrays,  
which might be fun. Hmmm, also many other things!



easy enough to program in an abstraction, but it's presently
not possible at all;


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.


.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


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

2011-09-04 Thread Hans-Christoph Steiner


On Sep 4, 2011, at 2:01 PM, Jonathan Wilkes wrote:






- Original Message -

From: Mathieu Bouchard ma...@artengine.ca
To: Jonathan Wilkes jancs...@yahoo.com
Cc: Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu 
; pd-list@iem.at pd-list@iem.at

Sent: Sunday, September 4, 2011 1:48 PM
Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers  
in a text file


On Sat, 3 Sep 2011, Jonathan Wilkes wrote:

It needs to be that simple for the general case because Pd Vanilla  
has no

(sensible) mechanism to convert a symbol atom into a float.

Then it needs a sensible mechanism to convert a symbol atom into a  
float.


Yes, it does.  But if there were one, it'd still be nice to have the  
default be float
atoms come out, and maybe a flag or a different creator name for  
outputting all

symbols. (Like [symbol explode]?)


Its more than just methods for converting, there needs to be a type  
system which includes the possibility that 43 can be a symbol.  Pd's  
type system is meant to be anything that can be intepreted as a  
number is a float, everything else is a symbol.  See this for  
definitions:

http://puredata.info/dev/PdDefinitions

So given that is the type system, how do you represent 43 as a  
symbol?  No matter the techniques for converting anything to a symbol,  
it'll remain confusing to use these symbols unless this is resolved.


One possibility is to do a more duck-typing approach.  For something  
that accepts only symbols, it'll happily accept 43 as a symbol.  For  
something that only accept floats, it'll convert the symbol 43 to 43  
and accept it as a float.  The question here is how to handle it when  
something expects both floats and symbols.  As far as implementing  
this, we could add to the t_symbol struct a flag to say whether it can  
be read as a float, and store the float value there too.


This would open the door to making arbitrary symbol making really  
easy, something like:


[symbol 43(

or

[symbol 43]

.hc

If symbol atoms which look like numbers to the naked eye are going  
to start
flying around more freely in Pd then the docs need to explain how  
atoms are a
kind of weird file cabinet where the label on the cabinet tells you  
which

file-folder inside actually holds the data.

That's called a union or a variant record type or an «any» type or a
sum-type or whatever else.

If it looks weird and/or difficult, it's because it's not taught in a
way that makes it understood as normal.


I think the problem is it's not explicitly taught at all.




Also, I'm assuming [list implode] would accept and process a list at
the left inlet, unlike [s2l] (which passes the 1st element to the  
right inlet).


I don't understand. Wouldn't [list implode] correspond to [l2s],  
whereas

[list explode] would correspond to [s2l].


That's right, I wrote the wrong one.  I have a bad habit of getting  
opposites
mixed up-- if I'm not careful I'll create a [max] to output the  
greater of two numbers.




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






[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] Gem VJ Tutorial patches

2011-09-04 Thread stéfan piat
hello,

here are the links to the max neupert's tutorials

http://www.uni-weimar.de/medien/wiki/Audiovideo
http://www.uni-weimar.de/medien/wiki/Bewegungsmelder

2011/8/24 Pagano, Patrick p...@digitalworlds.ufl.edu

 Hey

 I am soliciting examples for entry level GEM patches that work on
 linux/windows and OSX that show how to mix a video or react to sound. I
 recall a set of them called Begenswelder? That had a real good example for
 a sound reactive GEM patch but I cannot find it in my files, Please
 refresh my memory and as I asked anyone who has a simple patch(s) for
 understanding GEM or Vjing that works cross platform would be greatly
 appreciated. I have a few but I am trying to expand my cross platform
 examples.

 Thanks in advance

 pp


 ___
 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] importing / using large equation into expr command

2011-09-04 Thread Rick T
Thanks for the information.  I've been able to find instructions on how to
create a hello world C-external but not one that does a simple sinewave
equation like A*sin(w*t+p) (
https://secure.wikimedia.org/wikipedia/en/wiki/Sine_wave) Does anyone have
one or know where to find one.  It makes sense to make a C external and
create inputs for the values of frequency,amplitude,phase and vertical
offset.  That way I can feed/control those values with a midi controller or
a table/array in PureData.

Thanks

On Sun, Sep 4, 2011 at 5:35 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 A .pd file is a text file, so you can just open your Pd patch in a text
 editor, and paste in the equation.  But honestly with something that big, I
 think making a C external might be easier in the long run.

 .hc

 On Sep 4, 2011, at 9:22 AM, Rick T wrote:

 Greetings All

 I have 2 large equations that I would like to use with the expr command.
  Is it possible to import a text file into the expr command?
 Here's an example of one of the 2 equations
 http://dl.dropbox.com/u/6576402/questions/eq1.txt
 Basically it's a 1 second periodic signal with sample rate at 44100 which
 the equation gives me control over the frequency,amplitude,phase and
 vertical offset

 I do have the ability to create a wave (audio) file of the equation first
 and import the wave file into PureDate, but will I have the same control
 over the frequency,amplitude,phase and vertical offset that the equation
 gives me?.

 If you want to know what I'm creating.
 1) The first option will import a text file into a table/array that will
 control the variables of the equations that will vary
 frequency,amplitude,phase and vertical offset over time.
 2) The second option will allow the variables to
 be controllable/variable using a midi controller and it's audio signal
 played

 I know Puredata can do this very well with small equations and the expr
 command but using large equations I'm not sure.  Also if I should be doing
 this in a different way please let me know I'm always willing to learn
 something new.

 Thanks
 --

  ___
 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] Gem VJ Tutorial patches

2011-09-04 Thread Rick T
Here's a basic video/example using GEM and Puredata.
https://www.youtube.com/watch?v=XyS2M0mM5iA

On Sun, Sep 4, 2011 at 8:39 AM, stéfan piat stefanp...@gmail.com wrote:

 hello,

 here are the links to the max neupert's tutorials

 http://www.uni-weimar.de/medien/wiki/Audiovideo
 http://www.uni-weimar.de/medien/wiki/Bewegungsmelder

 2011/8/24 Pagano, Patrick p...@digitalworlds.ufl.edu

 Hey

 I am soliciting examples for entry level GEM patches that work on
 linux/windows and OSX that show how to mix a video or react to sound. I
 recall a set of them called Begenswelder? That had a real good example for
 a sound reactive GEM patch but I cannot find it in my files, Please
 refresh my memory and as I asked anyone who has a simple patch(s) for
 understanding GEM or Vjing that works cross platform would be greatly
 appreciated. I have a few but I am trying to expand my cross platform
 examples.

 Thanks in advance

 pp


 ___
 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




-- 
-- 
|==|
|http://www.onewithall.net/
|==|
Knowledge may be the Key
But wisdom unlocks the door
Absolute Power demands absolutely nothing

As the old maxim has it, you need find only one white crow to disprove the
rule that all crows   are black

The bourgeois today burns as heretics and hangs as criminals those to whom
he erects monuments tomorrow ('Steppenwolf')
|==|
___
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-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Jonathan Wilkes wrote:

That's right, I wrote the wrong one.  I have a bad habit of getting opposites 
mixed up-- if I'm not careful I'll create a [max] to output the greater of two numbers.


[max] does output the greater of two numbers.

 ___
| 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-04 Thread Roman Haefeli
On Sun, 2011-09-04 at 14:23 -0400, Hans-Christoph Steiner wrote:
 On Aug 31, 2011, at 2:33 AM, Chris McCormick wrote:
 
  On Tue, Aug 30, 2011 at 11:19:46PM -0700, Miller Puckette wrote:
  I am in favour of having that functionality as part of [list] and  
  those names look good to me. For the functionality you describe  
  maybe something like [list ascii2symbol] and [list symbol2ascii]?  
  Those would also be pretty useful!
 
  I am currently making a [split] abstraction based on Jamie's work.  
  I will send it through when I am done - or you can just look at  
  symbol2list's source which IOhannes has re-licensed in a message  
  to this list for use in Pd:
 
 
  hmm... another possibility, as in lisp: list explode and list  
  implode ?
 
  Also good!
 
  My idea is that, once this is in Pd vanilla, the  2/3 - 2 3  
  type
  of split is easy enough to program in an abstraction, but it's  
  presently
  not possible at all; meanwhile, the funtionality I'm describing is  
  pretty
  canonical and hard to split up into finer components in any way I  
  can see.
 
  Ah, ok, so you could do:
 
  bat/cat/rat - 98 97 116 47 99 97 116 47 114 97 116
 
  and then you would run through the number list finding 47 (/) and  
  re-building the separate symbols using the reverse operation.
 
  I guess this would be cool because it would also allow you to store  
  proper strings with all kinds of characters in regular Pd arrays,  
  which might be fun. Hmmm, also many other things!
 
  easy enough to program in an abstraction, but it's presently
  not possible at all;
 
  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 made a vanilla abstraction similar to [byte2any] based on the
aforementioned [makefilename] madness. Just for the sake of this
discussion. Check the attachment.

Roman
 


byte2string.tar.gz
Description: application/compressed-tar
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd-extended 0.43 windows 7 installation

2011-09-04 Thread Patrice Colet

- Hans-Christoph Steiner h...@at.or.at a écrit :

 AH, this is probably due to using gcc 4.5 now in the new MinGW build.



 Yes there are several changes with new mingw, we have to replace -lpthreadGC2 
with -lpthread in makefiles,
but there still is the need for adding libpthread-2.dll, I didn't find out how 
to have it statically.

  
 We could also include libgcc_s_dw2-1.dll in Pd-extended.  Patrice, do 
 
 you know which is the better route? Including the dll or using
 -static- 
 libgcc?


 Well, after that there will also be libstdc++, so adding  -static-libgcc 
-static-libstdc++ to LDFLAGS (not CFLAGS :D),
 or LIBS flags in makefile.mingw will resolve this error, isn't it better to 
add the flag than copying the dll?



 .hc
 
 On Sep 4, 2011, at 7:54 AM, Patrice Colet wrote:
 
  Hello,
  where did you get pd-extended installation from?
 
  adding -static-libgcc to CFLAGS in win32 build farm should resolve 
 
  this problem.
 
  - ALAN BROOKER alan.brooker2...@gmail.com a écrit :
 
  Hi List
 
 
  Sony Vaio, intel i3-370 2.4
  Im trying to install pd-extended 0.43 on windows 7 on a new
 machine,
  however when I run the application I get the following error
 
  The program can't start because libgcc_s_dw2-1.dll is missing from 
 
  you
  computer.
  Try reinstalling the program to fix this problem.
 
 
  I thought it could be because I didnt have mingw installed (GNU
  Compiler Collection)- but installing it doesn't solve the issue?
 If
  any one has any advice on reolsing this and running PD would be
  grateful :0
 
 
  Thanks All
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
  -- 
  Patrice Colet
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 
 Man has survived hitherto because he was too ignorant to know how to 
 
 realize his wishes.  Now that he can realize them, he must either  
 change them, or perish.-William Carlos Williams

-- 
Patrice Colet 

___
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-04 Thread Jonathan Wilkes


- Original Message -
 From: Mathieu Bouchard ma...@artengine.ca
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu; 
 pd-list@iem.at pd-list@iem.at
 Sent: Sunday, September 4, 2011 3:14 PM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 On Sun, 4 Sep 2011, Jonathan Wilkes wrote:
 
 That's right, I wrote the wrong one.  I have a bad habit of getting 
 opposites mixed up-- if I'm not careful I'll create a [max] to output 
 the greater of two numbers.
 
 [max] does output the greater of two numbers.

Ha!  Then my _misunderstanding_ is that [max 5] = make 5 the maximum value 
that can 
come out of the outlet.  I have to open the help file every time I use [min] 
[max] to see 
which is the real behavior, and which the figment of my imagination.

-Jonathan


 
 ___
 | 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-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Jonathan Wilkes wrote:


From: Mathieu Bouchard ma...@artengine.ca
[max] does output the greater of two numbers.


Ha!  Then my _misunderstanding_ is that [max 5] = make 5 the maximum value that can 
come out of the outlet.  I have to open the help file every time I use [min] [max] to see 
which is the real behavior, and which the figment of my imagination.


It's the same max and min as in math textbooks and as in a bunch of 
programming languages and libraries.


http://www.cplusplus.com/reference/algorithm/max/
http://reference.wolfram.com/mathematica/ref/Max.html
http://developer.gnome.org/glib/2.29/glib-Standard-Macros.html#MAX:CAPS
http://www.tutorialspoint.com/python/number_min.htm
http://www.ruby-doc.org/core/classes/Enumerable.html#M001504
http://php.net/manual/en/function.max.php
etc

I don't recall ever seeing any language or library swap the meaning of min 
and max. It seems to be very standard.


 ___
| 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] pd-extended 0.43 windows 7 installation

2011-09-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Patrice Colet wrote:

Yes there are several changes with new mingw, we have to replace 
-lpthreadGC2 with -lpthread in makefiles,


Cool, that's a good thing : one less difference between MinGW and 
Linux/OSX.


Well, after that there will also be libstdc++, so adding  
-static-libgcc -static-libstdc++ to LDFLAGS (not CFLAGS :D), or LIBS 
flags in makefile.mingw will resolve this error, isn't it better to add 
the flag than copying the dll?


-static-libstdc++ is not in gcc in Ubuntu 10.10 (« gcc version 4.4.5 
(Ubuntu/Linaro 4.4.4-14ubuntu5) »)


Is it a MinGW-only feature ? It sounds like it could be useful in Linux 
too, if I'm not mistaken. E.g. could it solve the libstdc++ problem that 
we were having with Gem, GridFlow, ATI drivers, and perhaps some other 
drivers or libs ?


 ___
| 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-04 Thread Jonathan Wilkes
- Original Message -

 From: Mathieu Bouchard ma...@artengine.ca
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: Chris McCormick ch...@mccormick.cx; Miller Puckette m...@ucsd.edu; 
 pd-list@iem.at pd-list@iem.at
 Sent: Sunday, September 4, 2011 4:07 PM
 Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text 
 file
 
 On Sun, 4 Sep 2011, Jonathan Wilkes wrote:
 
  From: Mathieu Bouchard ma...@artengine.ca
  [max] does output the greater of two numbers.
 
  Ha!  Then my _misunderstanding_ is that [max 5] = make 5 the maximum 
 value that can come out of the outlet.  I have to open the help file every 
 time I use [min] [max] to see which is the real behavior, and which the 
 figment 
 of my imagination.
 
 It's the same max and min as in math textbooks and as in a bunch of 
 programming languages and libraries.
 
 http://www.cplusplus.com/reference/algorithm/max/
 http://reference.wolfram.com/mathematica/ref/Max.html
 http://developer.gnome.org/glib/2.29/glib-Standard-Macros.html#MAX:CAPS
 http://www.tutorialspoint.com/python/number_min.htm
 http://www.ruby-doc.org/core/classes/Enumerable.html#M001504
 http://php.net/manual/en/function.max.php
 etc
 
 I don't recall ever seeing any language or library swap the meaning of min 
 and max. It seems to be very standard.

Why would any of them swap it?  It should be standard, and Pd does it 
the standard way.  But there's a reason I get confused by Pd's max and 
min objects and not by the syntax of those other languages:

Pd's syntax stands out against all those examples because it is the only one 
that explicitly shows only a single argument after the function name.  So while 
I 
could write the Pd syntax as max y, it really means something more like 
max(x, y) where x is visually represented by a small black rectangle to the 
top left of the word max.

When I type max 15 in a box, it seems quite logical for my brain to interpret 
that 
as maximum is 15, since I'm used to reading left to right and don't see any 
value 
but 15 written in the box. That's why I always have to open the help patch to 
remind 
myself how it works.  There's no such confusion when more than one argument 
is present, which is why, for example, I never have to check expr-help.pd when 
using 
its max function.

-Jonathan

 
 ___
 | 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-04 Thread Mathieu Bouchard

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

One possibility is to do a more duck-typing approach.  For something 
that accepts only symbols, it'll happily accept 43 as a symbol.  For 
something that only accept floats, it'll convert the symbol 43 to 43 
and accept it as a float.  The question here is how to handle it when 
something expects both floats and symbols.  As far as implementing this, 
we could add to the t_symbol struct a flag to say whether it can be read 
as a float, and store the float value there too.


Duck-typing isn't about conversions...

Duck-typing is that a float-like thing is anything that «behaves» as a 
float. Thus, for any atom-type that could be considered float-like, there 
needs to be a set of functions that apply to any float-like thing.


The term Duck-typing was invented to talk about certain cases of hiding 
the implementation of something, especially the idea that inheritance and 
type-checking don't matter as long as the type you want to use has the 
appropriate functions attached to it.


The duck-typing term only applies to things for which you can attach 
functions (methods) to types. Thus it can apply to pd objects, but not to 
pd atoms... t_atomtype isn't similar to t_class... there are no tables of 
functions to be used for different situations on different atomtypes.


http://en.wikipedia.org/wiki/Duck_typing

In Pd, duck-typing happens with the dsp and loadbang methods, in which 
from the standpoint of pd, a dsp-object is any object that has a 
dsp-method, and a loadbang-object is any object that has a 
loadbang-method, without any further declarations that might explicitly 
mean « this class is in the DSPObject (or Loadbangable) category » or 
anything similar.


 ___
| 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-04 Thread Mathieu Bouchard

On Sun, 4 Sep 2011, Jonathan Wilkes wrote:

From: Mathieu Bouchard ma...@artengine.ca
I don't recall ever seeing any language or library swap the meaning of min 
and max. It seems to be very standard.

Why would any of them swap it?


Well, I figured that given that it's a very common confusion for people 
learning pd, it would not be surprising if there were programming 
languages (or libraries) that named them the other way around... yet I 
haven't ever found any.


Pd's syntax stands out against all those examples because it is the only 
one that explicitly shows only a single argument after the function 
name.  So while I could write the Pd syntax as max y, it really means 
something more like max(x, y) where x is visually represented by a small 
black rectangle to the top left of the word max.


There are other examples where there aren't two args after the function 
name (apart those that allow variable number of args). But I haven't 
listed any.


Smalltalk has infix min and max written like :
  x := 10 max: 20.

where max: is the selector, and 10 is the receiver.

Forth (and related) takes its arguments before the name of the function.

Currying means that you can pass to a function only part of the args, and 
in that case you get another function that takes the rest of the args, and 
you can pass that function around or store it. It's available in several 
language families. this can mean that you can do stuff like :


  foo = max(10)
  print foo(20)

as an alternate form of

  print max(10,20)

which means you can also do it like

  print max(10)(20)

but the useful uses of this feature involve storing foo or passing it 
around.


 ___
| 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] pd-extended 0.43 windows 7 installation

2011-09-04 Thread Hans-Christoph Steiner


On Sep 4, 2011, at 3:29 PM, Patrice Colet wrote:



- Hans-Christoph Steiner h...@at.or.at a écrit :


AH, this is probably due to using gcc 4.5 now in the new MinGW build.




Yes there are several changes with new mingw, we have to replace - 
lpthreadGC2 with -lpthread in makefiles,
but there still is the need for adding libpthread-2.dll, I didn't  
find out how to have it statically.


For the build machine, I also built the old pthreadGC2.dll to make the  
transition easier.  So both -lpthreadGC2 and -lpthread will work on  
the nightly auto-builds.



We could also include libgcc_s_dw2-1.dll in Pd-extended.  Patrice, do

you know which is the better route? Including the dll or using
-static-
libgcc?



Well, after that there will also be libstdc++, so adding  -static- 
libgcc -static-libstdc++ to LDFLAGS (not CFLAGS :D),
or LIBS flags in makefile.mingw will resolve this error, isn't it  
better to add the flag than copying the dll?


Part of the assembly process of Pd-extended in packages/win32_inno/ 
Makefile already copies quite a few DLLs, so adding a couple more is  
really easy.  I'd just do that, unless there was a problem with that  
approach.


.hc






.hc

On Sep 4, 2011, at 7:54 AM, Patrice Colet wrote:


Hello,
where did you get pd-extended installation from?

adding -static-libgcc to CFLAGS in win32 build farm should resolve



this problem.

- ALAN BROOKER alan.brooker2...@gmail.com a écrit :


Hi List


Sony Vaio, intel i3-370 2.4
Im trying to install pd-extended 0.43 on windows 7 on a new

machine,

however when I run the application I get the following error

The program can't start because libgcc_s_dw2-1.dll is missing from



you
computer.
Try reinstalling the program to fix this problem.


I thought it could be because I didnt have mingw installed (GNU
Compiler Collection)- but installing it doesn't solve the issue?

If

any one has any advice on reolsing this and running PD would be
grateful :0


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


--
Patrice Colet

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -

http://lists.puredata.info/listinfo/pd-list





Man has survived hitherto because he was too ignorant to know how to

realize his wishes.  Now that he can realize them, he must either
change them, or perish.-William Carlos Williams


--
Patrice Colet






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] (breaking symbols) was Re: find a list of numbers in a text file

2011-09-04 Thread Hans-Christoph Steiner


On Sep 4, 2011, at 4:55 PM, Mathieu Bouchard wrote:


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

One possibility is to do a more duck-typing approach.  For  
something that accepts only symbols, it'll happily accept 43 as a  
symbol.  For something that only accept floats, it'll convert the  
symbol 43 to 43 and accept it as a float.  The question here is  
how to handle it when something expects both floats and symbols.   
As far as implementing this, we could add to the t_symbol struct a  
flag to say whether it can be read as a float, and store the float  
value there too.


Duck-typing isn't about conversions...

Duck-typing is that a float-like thing is anything that «behaves» as  
a float. Thus, for any atom-type that could be considered float- 
like, there needs to be a set of functions that apply to any float- 
like thing.


The term Duck-typing was invented to talk about certain cases of  
hiding the implementation of something, especially the idea that  
inheritance and type-checking don't matter as long as the type you  
want to use has the appropriate functions attached to it.


The duck-typing term only applies to things for which you can attach  
functions (methods) to types. Thus it can apply to pd objects, but  
not to pd atoms... t_atomtype isn't similar to t_class... there are  
no tables of functions to be used for different situations on  
different atomtypes.


http://en.wikipedia.org/wiki/Duck_typing

In Pd, duck-typing happens with the dsp and loadbang methods, in  
which from the standpoint of pd, a dsp-object is any object that has  
a dsp-method, and a loadbang-object is any object that has a  
loadbang-method, without any further declarations that might  
explicitly mean « this class is in the DSPObject (or Loadbangable)  
category » or anything similar.



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 am saying we can be inspired by that.  Pd is not OOP, so  
trying to force it into an OOP structure does not make sense.


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, or maybe symbols that can be interpreted as a number  
behave like a float when something is expecting a float.


.hc






Programs should be written for people to read, and only incidentally  
for machines to execute.

 - from Structure and Interpretation of Computer Programs


___
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-04 Thread Chris McCormick
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?

Cheers,

Chris.

---
http://mccormick.cx

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