| User-Defined Opcode Database |
|---|
Returns frequency whether being passed in pch or frequency
Download UDO FileReturns frequency whether being passed in PCH notation or frequency. This code is commonly found in instruments designed to take in either pch or frequency values. Assumes that values lower than 15 are pch, and those higher than that are frequency.
ifreq getFrequency ival
ival - input value, either pch or frequency
ifreq - output frequency
opcode getFrequency, i, i ipch xin iout = (ipch < 15 ? cpspch(ipch) : ipch) xout iout endop
Steven Yi
| Previous | Home | Next |
| GaussTrig | hysteresis |