Fwd: [PD] how to trigger bang's with a period less than 1 milisecond

sokratesla ugurguney at gmail.com
Wed Jun 14 09:38:09 CEST 2006


# I forgot to send the reply message to the list...
-ugur-

---------- Forwarded message ----------
From: sokratesla <ugurguney at gmail.com>
Date: Jun 14, 2006 12:52 AM
Subject: Re: [PD] how to trigger bang's with a period less than 1 milisecond
To: Miller Puckette <mpuckett at imusic1.ucsd.edu>


 # I'm attaching a patch, in which you can send messages to a metro object.
Metro is used to trigger the vline~ object in order to produce a linear ramp
in given period. The same period, is turned to frequency and send to a
phasor~, which also produces a linear ramp, and both of them are plotted.
(but I can not succeed to hold them in phase, when you change the period
their phase differences changes)
# So, when the period is less then 1 miliseconds, metro continues to send
bang with a period of 1 ms.

# Err... Why did I need such small periods of bangs, all of a sudden? I
realized that phasor~ starts to skip the values 0 and 1 after increasing the
frequency after some value. And I searched another ways of producing linear
ramps. (Using vline~ idea comes from your patch: C06.signal.to.control.pd,
there use have given metro a period of 2 ms) But I'm not sure that this is
necessary. :-)
-ugur guney-

(((# My ultimate aim was producing a pure sinusoid at a frequency of, say at
22200 Hz, and here it as it were 150 (= 22200-22050) Hz. in order to make an
example of Nyquist Theorem. I first tried to use the osc~ object but it
didn't give the result I expected. (first, I have to figure out why you have
used a table which includes a sinus shape which have more periods than one,
in the C1.nyquist.pd) I came here from there with the intention of using a
tableosc4~ instead of osc...)))


 On 6/13/06, Miller Puckette <mpuckett at imusic1.ucsd.edu> wrote:
>
> I think you can send 'metro' a message to make it go faster... it's just
> the
> creation argument that's bounded below by 1 msec.  This was a bit of
> crash-proofing that I probaly shouldn't have included...
>
> cheers
> Miller
>
> On Tue, Jun 13, 2006 at 09:51:27PM +0300, sokratesla wrote:
> > # Hi everybody!
> > # I was fiddling with the "metro" object and realized that it can not
> take a
> > number less than 1 as the second argument. So, I will trigger a vline~
> > objects with the output of the metro to produce triangle waves. Is there
> any
> > other object like metro, for doing this job?
> > # Thanks!
> > -ugur guney-
>
> > _______________________________________________
> > PD-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060614/939fb5b4/attachment.htm>
-------------- next part --------------
#N canvas 31 45 864 641 12;
#X obj 64 29 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X text 85 28 metronom on/off;
#X obj 144 315 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 64 291 vline~;
#X obj 64 464 *~;
#X obj 147 506 dac~;
#X obj 153 421 vsl 15 50 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X msg 102 163 set \$1;
#X floatatom 64 190 5 0 0 0 - - -;
#X msg 64 228 0 \, 1 \$1;
#N canvas 0 0 454 304 graph1 0;
#X array vlinetable 512 float 0;
#X coords 0 1 511 0 400 280 1;
#X restore 380 25 graph;
#X obj 169 311 metro 200;
#X obj 169 285 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X floatatom 271 244 10 0 0 0 - - -;
#X obj 270 126 t b f;
#X obj 271 191 /;
#X msg 270 159 1;
#X obj 270 93 / 1000;
#X obj 271 274 phasor~;
#X obj 65 381 tabwrite~ vlinetable;
#N canvas 0 0 450 300 graph1 0;
#X array phasortable 512 float 0;
#X coords 0 1 511 0 400 280 1;
#X restore 381 316 graph;
#X obj 167 356 tabwrite~ phasortable;
#X obj 269 467 *~;
#X obj 186 66 t f f f;
#X obj 251 16 cnv 15 100 60 empty empty empty 20 12 0 14 -260818 -66577
0;
#X floatatom 206 44 5 0 0 0 - - -;
#X text 262 24 period (ms);
#X text 234 229 freq;
#X obj 64 130 metro;
#X obj 266 47 hsl 70 15 0 2 0 1 empty empty empty -2 -6 0 8 -262144
-1 -1 6900 1;
#X obj 27 566 tabread phasortable;
#X floatatom 27 538 5 0 0 0 - - -;
#X floatatom 27 597 5 0 0 0 - - -;
#X floatatom 196 540 5 0 0 0 - - -;
#X floatatom 196 599 5 0 0 0 - - -;
#X obj 196 566 tabread vlinetable;
#X text 174 108 comment;
#X obj 6 3 loadbang;
#X connect 0 0 18 1;
#X connect 0 0 28 0;
#X connect 2 0 19 0;
#X connect 2 0 21 0;
#X connect 3 0 4 0;
#X connect 3 0 19 0;
#X connect 4 0 5 0;
#X connect 6 0 4 1;
#X connect 6 0 22 1;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 11 0 19 0;
#X connect 11 0 21 0;
#X connect 12 0 11 0;
#X connect 13 0 18 0;
#X connect 14 0 16 0;
#X connect 14 1 15 1;
#X connect 15 0 13 0;
#X connect 16 0 15 0;
#X connect 17 0 14 0;
#X connect 18 0 22 0;
#X connect 18 0 21 0;
#X connect 22 0 5 1;
#X connect 23 0 28 1;
#X connect 23 1 7 0;
#X connect 23 2 17 0;
#X connect 25 0 23 0;
#X connect 28 0 8 0;
#X connect 29 0 25 0;
#X connect 30 0 32 0;
#X connect 31 0 30 0;
#X connect 33 0 35 0;
#X connect 35 0 34 0;
#X connect 37 0 0 0;


More information about the Pd-list mailing list