User-Defined Opcode Database

getFrequency

Returns frequency whether being passed in pch or frequency

Download UDO File

Description

Returns 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.

Syntax

ifreq getFrequency ival

Initialization

ival - input value, either pch or frequency

ifreq - output frequency

Code

	opcode getFrequency, i, i

ipch 	xin
iout	= (ipch < 15 ? cpspch(ipch) : ipch)	
	xout	iout

	endop

Credits

Steven Yi


Previous Home Next
Moogladder   RandomWalkA