Hallo!
I'm trying to code a dsp external. Is there any way to get the sample rate at runtime? something like: t_float sr=
sample_rate; http://iem.kug.ac.at/pd/externals-HOWTO/node9.html#SECTION000943000000000000...
LG Georg
But how to use it?
This doesn't work: pitch = (*errprx < *errpr1) ? float sys_getsr(void)/(period+(*errprx / *errpr1)) : 0;
Ed
Dr Edward Kelly Research Assistant in Sonic Arts London College of Communication University of the Arts London
___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Ed Kelly wrote:
But how to use it?
This doesn't work: pitch = (*errprx < *errpr1) ? float sys_getsr(void)/(period+(*errprx / *errpr1)) : 0;
like this ?
float sr=sys_getsr(); pitch= (*errprx < *errpr1) ? sr/(period+(*errprx / *errpr1)) : 0;
mfg.asdr. IOhannes