[PD] get samplerate

IOhannes m zmoelnig zmoelnig at iem.at
Mon Jul 4 17:23:22 CEST 2005


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




More information about the Pd-list mailing list