-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi I want to create an abstraction that will enable me to tap the tempo of an external source and have pd changing to that tempo. Is there an abstraction or object that could help me ?
I am not very familiar with the way BPM works, some pointers to documentation would be also appreciated.
anton
///
stereocilia.org
hello
I want to create an abstraction that will enable me to tap the tempo of an external source and have pd changing to that tempo. Is there an abstraction or object that could help me ?
maybe [realtime] this is an object with two inlets and one outlet a bang message in the left inlet resets the counter a bang message in the right inlet outputs the elapsed time since the last reset
output is in milliseconds, you will have to convert it to bpm
Here is a bpm converter I whipped up a way back. It's very simple.
I am not very familiar with the way BPM works, some pointers to documentation would be also appreciated.
=====
,.;:'*'
:;.,.;:'*'
:;.,.;:'*'
:;.,.;:'*'
:;.
Read my thoughts.
hi,
timer is more precise, esp under heavy load (see the attached patch)
k
julien.breval@tremplin-utc.net wrote: ...
I want to create an abstraction that will enable me to tap the tempo of an external source and have pd changing to that tempo.
...
maybe [realtime]
#N canvas 313 299 655 441 12; #X obj 29 176 realtime; #X obj 243 176 timer; #X obj 29 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 286 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 29 234 0 0 0 0 - - -; #X floatatom 243 234 0 0 0 0 - - -; #X obj 131 176 realtime; #X obj 338 176 timer; #X floatatom 131 234 0 0 0 0 - - -; #X floatatom 338 234 0 0 0 0 - - -; #X obj 455 176 until; #X obj 286 71 t b b b; #X msg 455 139 1e+08; #X connect 0 0 4 0; #X connect 1 0 5 0; #X connect 2 0 0 0; #X connect 2 0 1 0; #X connect 2 0 6 0; #X connect 2 0 7 0; #X connect 3 0 11 0; #X connect 6 0 8 0; #X connect 7 0 9 0; #X connect 11 0 7 1; #X connect 11 0 6 1; #X connect 11 1 12 0; #X connect 11 2 0 1; #X connect 11 2 1 1; #X connect 12 0 10 0;
Am I missing something or is there a reason why nobody is suggesting Maxlib's [beat] object for this task??? There was another one I found that did the same job in another library too (now was it ext13 or cyclone?).
[beat] should do the job, if you connect up [key] to a bang, this will return the approximate BPM after a few key presses...
matt
-=-=-=-=-=-=-=-=-=-=-=-=- http://www.loopit.org/ -=-=-=-=-=-=-=-=-=-=-=-=-
hi,
timer is more precise, esp under heavy load (see the attached patch)
k
julien.breval@tremplin-utc.net wrote: ...
I want to create an abstraction that will enable me to tap the tempo of
an
external source and have pd changing to that tempo.
...
maybe [realtime]
Maybe I'm not understanding your problem properly but assuming that [metro] is driving your patch, you can have [realtime] listening to the tap like so:
[x] -- this is 'toggle' | | [sel 0 1] | | -- every '0' resets, '1' reports the time elapsed | | [realtime]
and the output of it can feed directly the [metro] (if [metro] is supposed to be driving at the tap unit duration; if not, multiply/divide at will). For that you don't need to know about bpm conversions.
I attach a patch that may help you in bpm<->ms conversions. Keep in mind that some bpm values will not yield exact tempos (i.e. 110 bpm = 545.4 ms for a quarter) because [metro] has a resolution of 1 ms. Hopefully you don't mind this imprecision.
./MiS
On Tue, 2003-12-02 at 13:27, Antonios Galanopoulos wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi I want to create an abstraction that will enable me to tap the tempo of an external source and have pd changing to that tempo. Is there an abstraction or object that could help me ?
I am not very familiar with the way BPM works, some pointers to documentation would be also appreciated.
anton ///
stereocilia.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE/zNmLxdQr4si4Zq4RAsZWAKCkrj5O7eDE8ZIv50Wwfyv53e+Q7wCggk9y vPrW7adeDJA3Sermt/BNGTQ= =dh/q -----END PGP SIGNATURE-----
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi all, your replies will keep me busy for a while ! thanks very much. I ll be back for more..;
anton
///
stereocilia.org