[chuck-users] getting the current srate

Atte André Jensen atte.jensen at gmail.com
Sun Jun 18 19:14:15 EDT 2006


Atte André Jensen wrote:

>>This works for me ( on win32 ), using a variety of
>>1::second / 1::samp => float srate;

Potentially stupid question:

Using this (thanks, it works) I get a bpm as a duration:
((now - first_tap)/nb_taps)/sample_rate * 60

Another place I do:

60 => int bpm;
1::second / 1::samp => float sample_rate;

Is it possible to cast the calculated bpm in duration to float?

-- 
peace, love & harmony
Atte

http://www.atte.dk      | quartet:      http://www.anagrammer.dk
http://www.atte.dk/gps  | compositions: http://www.atte.dk/compositions


More information about the chuck-users mailing list