cps2pch Pitch Converters:Tuning Opcodes cps2pch cps2pch Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of the octave. Description Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of the octave. Syntax icps cps2pch ipch, iequal Initialization ipch -- Input number of the form 8ve.pc, indicating an 'octave' and which note in the octave. iequal -- If positive, the number of equal intervals into which the 'octave' is divided. Must be less than or equal to 100. If negative, is the number of a table of frequency multipliers. Note The following are essentially the same ia = cpspch(8.02) ib cps2pch 8.02, 12 ic cpsxpch 8.02, 12, 2, 1.02197503906 These are opcodes not functions Negative values of ipch are allowed. Examples Here is an example of the cps2pch opcode. It uses the file cps2pch.csd. Example of the cps2pch opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Its output should include lines like this: instr 1: icps = 293.666 Here is an example of the cps2pch opcode using a table of frequency multipliers. It uses the file cps2pch_ftable.csd. Example of the cps2pch opcode using a table of frequency multipliers. Its output should include lines like this: instr 1: icps = 313.951 Here is an example of the cps2pch opcode using a 19ET scale. It uses the file cps2pch_19et.csd. Example of the cps2pch opcode using a 19ET scale. Its output should include lines like this: instr 1: icps = 281.429 See also Pitch Converters: Tuning Opcodes Credits Author: &namejohn; University of Bath/Codemist Ltd. Bath, UK 1997 New in Csound version 3.492