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