Re: [PD] data structures: variable array element + variable resolution?

2010-03-15 Thread Jonathan Wilkes
--- On Mon, 3/15/10, João Pais jmmmp...@googlemail.com wrote:

 From: João Pais jmmmp...@googlemail.com
 Subject: [PD] data structures: variable array element + variable resolution?
 To: PD-List pd-list@iem.at
 Date: Monday, March 15, 2010, 3:10 AM
 Hi,
 
 I had a couple of questions about data structures:
 
 - I have an array based on template X. I wanted to make
 variations on the drawing of that array, by changing a
 variable in template X. The thing is, I can't access X when
 it's inside an array. Is there a way to get a pointer to the
 X templates inside an array?

[element]

 I also tried creating an extra instance of X and change the
 variable of that template. Unfortunately it had no effect on
 the same templates inside the array.

Right, you're just changing the value for that particular scalar.

 
 - I have a variable being plotted with a step value of 1:
 [plot -y y(0:100)(-1:1)(1) ...]. I wanted to change the step
 value on the fly, but when I wrote (step) instead of (1),
 there was a parse error. Does that mean that the step is
 always the same at each template? Is isn't possible to
 assign a variable to the step value?

As far as I can tell you are right, unfortunately.  You can hack around 
this by taking the output from the [struct] and quantizing it yourself 
(i.e., [get] the y value, [div] by your desired step size, and [set] the y 
value, all the time keeping track of the real y value using the difference 
between the current and previous y).

Oh, but if it's an array, you won't get output from a [struct] when you 
move the elements.  So nevermind.

 
 
 If if isn't possible to do any of these operations, I might
 be able to circumvent the problem by deleting and creating
 new objects. Afaik it isn't possible to edit an object, it's
 necessary to cut it and create a new one. Am I correct, or
 is there a new possibility I don't know yet?

If you don't care about the flickering, you could do something like what's 
attached.  Notice that you have to name the template folder something 
different than the struct.

-Jonathan

 
 Thanks,
 
 João Pais
 
 --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



  

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


Re: [PD] Using Pd to play drums in a band

2010-03-15 Thread Derek Holzer

Yes, I suppose we should have more respect for the dead, shouldn't we?

D.

On 3/15/10 4:29 AM, ydego...@gmail.com wrote:


which also i find an adolescent caricature of what punk is


--
::: derek holzer ::: http://macumbista.net :::
---Oblique Strategy # 108:
Look closely at the most embarrassing details and amplify them



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


Re: [PD] Using Pd to play drums in a band

2010-03-15 Thread Frank Barknecht
Hallo,
Andrew Faraday hat gesagt: // Andrew Faraday wrote:

 Any tap tempo device is tricky, simply put you probably won't be able to tap
 consistently enough to keep the figure consistent. Which is why a lot of
 commercial tap tempos have some form of averaging algorithm. With a bit of
 practice you can get close enough to match existing music for maybe 4 or 8
 bars. Here's the clever bit, if you're working with live (electronic or
 acoustic) musicians they will usually start to sync up to drums in this time,
 assuming they're close to the original tempo. 

Attached is a tap-tempo example patch, that does a bit of averaging over a
buffer of a configurable size and also tries to rate your performance by the
flatness of the tap-interval curve (using the ratio of geometric and arithemtic
mean).

Ciao
-- 
Frank
#N canvas 96 134 1063 614 10;
#X obj 139 120 timer;
#X obj 139 89 t b b;
#X obj 139 33 key;
#X obj 139 58 select 32;
#X obj 139 354 /;
#X floatatom 154 377 5 0 0 0 - - -;
#X obj 458 261 list prepend 0;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-taps 8 float 0;
#X coords 0 1000 7 50 200 140 1;
#X restore 704 352 graph;
#X obj 909 354 vsl 15 135 50 1000 0 0 empty \$0-gmean gm 0 -9 0 10
-262144 -1 -1 6571 1;
#X obj 925 354 vsl 15 135 50 1000 0 0 empty \$0-mean mean 0 -9 0 10
-262144 -1 -1 6582 1;
#X obj 303 376 cnv 15 100 60 empty \$0-quality Good 10 35 0 30 -191407
-1 0;
#X obj 139 492 s \$0-quality;
#X msg 213 456 label Good;
#X obj 139 430 moses 0.99;
#X text 219 430 = adjust!;
#N canvas 333 172 609 314 filter-range 0;
#X obj 143 178 outlet;
#X obj 210 178 outlet;
#X obj 210 150 b;
#X obj 143 81 moses 2000;
#X text 248 83 filter viable range \, reset else (Handel \, 1989);
#X obj 79 54 inlet;
#X obj 79 80 moses 50;
#X text 270 181 reset timer from here;
#X connect 2 0 1 0;
#X connect 3 0 0 0;
#X connect 3 1 2 0;
#X connect 5 0 6 0;
#X connect 6 0 2 0;
#X connect 6 1 3 0;
#X restore 139 144 pd filter-range;
#X text 220 58 tab with spacebar;
#X obj 274 291 s \$0-mean;
#X obj 148 312 s \$0-gmean;
#X obj 139 212 t a a a;
#X msg 139 456 label Bad;
#X obj 157 395 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 12680 1;
#X obj 458 284 s \$0-taps;
#N canvas 534 229 450 300 show-bpm 0;
#X floatatom 107 144 5 0 0 1 IOI_in_bpm - -;
#X floatatom 107 126 5 0 0 1 IOI - -;
#N canvas 0 0 450 300 ms2bpm 0;
#X obj 93 50 inlet;
#X obj 93 102 swap 6;
#X obj 93 131 /;
#X obj 93 182 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 2 1;
#X connect 2 0 3 0;
#X restore 248 99 pd ms2bpm;
#X obj 248 37 inlet;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 3 0 2 0;
#X coords 0 -1 1 1 125 60 1 100 100;
#X restore 430 378 pd show-bpm;
#N canvas 534 229 450 300 show-bpm 0;
#X floatatom 107 144 5 0 0 1 IOI_in_bpm - -;
#X floatatom 107 126 5 0 0 1 IOI - -;
#N canvas 0 0 450 300 ms2bpm 0;
#X obj 93 50 inlet;
#X obj 93 102 swap 6;
#X obj 93 131 /;
#X obj 93 182 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 2 1;
#X connect 2 0 3 0;
#X restore 248 99 pd ms2bpm;
#X obj 248 37 inlet;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 3 0 2 0;
#X coords 0 -1 1 1 125 60 1 100 100;
#X restore 566 378 pd show-bpm;
#X obj 566 352 r \$0-mean;
#X obj 430 352 r \$0-gmean;
#X obj 65 179 s \$0-last;
#N canvas 534 229 450 300 show-bpm 0;
#X floatatom 107 144 5 0 0 1 IOI_in_bpm - -;
#X floatatom 107 126 5 0 0 1 IOI - -;
#N canvas 0 0 450 300 ms2bpm 0;
#X obj 93 50 inlet;
#X obj 93 102 swap 6;
#X obj 93 131 /;
#X obj 93 182 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 2 1;
#X connect 2 0 3 0;
#X restore 248 99 pd ms2bpm;
#X obj 248 37 inlet;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 3 0 2 0;
#X coords 0 -1 1 1 125 60 1 100 100;
#X restore 432 172 pd show-bpm;
#X obj 432 148 r \$0-last;
#X obj 628 144 s \$0-taps;
#X msg 628 120 resize \$1;
#X obj 212 178 r \$0-buffer-size;
#X obj 711 142 s \$0-buffer-size;
#X floatatom 628 94 5 0 0 0 - - -;
#X msg 628 68 8;
#X msg 665 67 16;
#X msg 573 282 510.839 464.399 534.059 510.839 505.034 510.839 522.449
574.694;
#N canvas 0 0 566 431 geometric-mean 0;
#X obj 127 69 inlet;
#X obj 127 337 outlet;
#X obj 146 138 list-drip;
#X obj 146 164 route float;
#X obj 127 274 f;
#X obj 254 250 pow -1;
#X obj 146 193 pow;
#N canvas 370 313 450 300 product 0;
#X obj 135 79 inlet;
#X obj 182 79 inlet;
#X obj 135 169 outlet;
#X obj 168 138 f;
#X obj 135 137 *;
#X obj 182 102 1;
#X connect 0 0 4 0;
#X connect 1 0 5 0;
#X connect 3 0 4 1;
#X connect 4 0 2 0;
#X connect 4 0 3 0;
#X connect 5 0 4 1;
#X restore 146 225 pd product;
#X obj 127 105 t b a b a;
#X obj 254 222 list length;
#X connect 0 0 8 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 1 0;
#X connect 5 0 6 1;
#X connect 6 0 7 0;
#X connect 7 0 4 1;
#X connect 8 0 4 0;
#X connect 8 1 2 0;
#X connect 8 2 7 1;
#X connect 8 3 9 0;
#X connect 9 0 5 0;
#X restore 139 270 pd geometric-mean;
#N canvas 0 0 566 431 arithmetic-mean 0;
#X obj 127 69 inlet;
#X obj 127 337 outlet;
#X 

[PD] Tutorial in italian based on PDDP

2010-03-15 Thread Marco Donnarumma
Hi all,
just to say I published an intro tutorial about audio/video/networking in
italian based on the PDDP material.
Basically I translated everything and modified/add/removed few things where
needed, added a browser interface for each topic and kept the original
credits.

download:
http://marcodonnarumma.com/tutorials/Pd-intro-audio-video-2010-ITA.zip

I also added it to the workshop page on Pd portal
http://puredata.info/docs/workshops/FrontPage


-- 
Marco Donnarumma aka TheSAD
Independent New Media Arts Professional, Performer, Teacher - Edinburgh, UK


PORTFOLIO: http://marcodonnarumma.com
LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
http://www.flxer.net
EVENT: http://www.liveperformersmeeting.net
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] [PD-announce] gem 0.92.3 released!

2010-03-15 Thread IOhannes m zmoelnig
the third bugfix release for Gem 0.92 has been made available to the
public.

it fixes a number of showstoppers in 0.92.2, namely:
 * crasher bugs
   o fixed a memory leak in [pix_multiblob] (closes #2969978)
   o fixed potential crasher bug for PixDualObjects in [pix_buffer_read]
(closes #2963094)
 * compilation issues
   o optionally use system's libGLEW
   o more standards-compliant handling of user-defined flags (backported
from Debian)
 * other
   o added some more example patches for tracking
   o fixed documentation bugs (closes #2926260, #2905446)

binaries available for w32 (installer), OS-X (ppc/i386) and the brave
(source code)

grab it while it's hot: http://gem.iem.at/releases/0.92.3

alternatively you can get the files from
https://sourceforge.net/projects/pd-gem



fgmasdr
IOhannes







smime.p7s
Description: S/MIME Cryptographic Signature
___
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] Using Pd to play drums in a band

2010-03-15 Thread Ingo Scherzinger
Here's another little tap-tempo abstraction that's not quite as heavy as
Frank's but works pretty well.

 

Ingo

 

 

#N canvas 1513 211 341 567 12;

#X obj 87 57 sel 32;

#X obj 37 118 timer;

#X floatatom 47 503 5 0 0 1 - - -;

#X obj 37 177 expr 6/$f1;

#X text 88 502 bpm;

#X obj 87 35 key;

#X obj 37 35 inlet;

#X obj 37 522 outlet;

#X obj 37 96 t b b;

#X obj 160 403 + 1;

#X obj 37 374 t f b;

#X obj 37 454 spigot;

#X obj 120 309 del 2000;

#X msg 120 287 stop;

#X obj 120 425 = 5;

#X obj 37 258 t f b b;

#X msg 120 331 0;

#X obj 37 219 maxlib/average 3;

#X msg 190 180 reset \, weight;

#X obj 190 151 loadbang;

#X obj 120 403 f 1;

#X obj 146 13 cnv 15 180 120 empty empty empty 20 12 0 14 -233017 -66577

0;

#X text 152 100 ...or just keep tapping!;

#X text 152 75 change the tempo;

#X text 152 60 tap another 5 times to;

#X text 152 20 tap 5 times to get the;

#X text 152 35 tempo;

#X text 32 10 ds-tap_tempo;

#X connect 0 0 8 0;

#X connect 1 0 3 0;

#X connect 3 0 17 0;

#X connect 5 0 0 0;

#X connect 6 0 8 0;

#X connect 8 0 1 0;

#X connect 8 1 1 1;

#X connect 9 0 20 1;

#X connect 10 0 11 0;

#X connect 10 1 20 0;

#X connect 11 0 2 0;

#X connect 11 0 7 0;

#X connect 12 0 16 0;

#X connect 12 0 18 0;

#X connect 13 0 12 0;

#X connect 14 0 11 1;

#X connect 15 0 10 0;

#X connect 15 1 12 0;

#X connect 15 2 13 0;

#X connect 16 0 11 1;

#X connect 16 0 20 0;

#X connect 17 0 15 0;

#X connect 18 0 17 0;

#X connect 19 0 18 0;

#X connect 20 0 9 0;

#X connect 20 0 14 0;

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