![middle c midi note number middle c midi note number](http://www.howtosingsmarter.com/wp-content/uploads/2015/01/images-copy-2.jpeg)
Thus cpspch(8.09) will convert the pitch argument 8.09 to its cps (or Hertz) equivalent, giving the value of 440. The mnemonics of the pitch conversion units are derived from morphemes of the forms involved, the second morpheme describing the source and the first morpheme the object (result). Microtonal divisions of the pch semitone can be encoded by using more than two decimal places. Thus A440 can be represented alternatively by 440 ( cps), 69 ( midinn), 8.09 ( pch), or 8.75 ( oct). Midi note number values range between 0 and 127 (inclusively) with 60 representing Middle C, and are usually whole numbers. In both forms, the fraction is preceded by a whole number octave index such that 8.00 represents Middle C, 9.00 the C above, etc. The two fractional forms are thus related by the factor 100/12. For oct, the fraction is interpreted as a true decimal fractional part of an octave. For pch, the fraction is read as two decimal digits representing the 12 equal-tempered pitch classes from. The first two forms consist of a whole number, representing octave registration, followed by a specially interpreted fractional part. Pchmidinn and its related opcodes are really value converters with a special function of manipulating pitch data.ĭata concerning pitch and frequency can exist in any of the following forms: With pchmidi, the Midi note number value is taken from the Midi event associated with the instrument instance, and no location or expression for this value may be specified. On the other hand, the pchmidi opcode only produces meaningful results in a Midi-activated note (either real-time or from a Midi score with the -F flag). You must specify an i-rate or k-rate expression for the Midi note number that is to be converted. The input value for pchmidinn might for example come from a p-field in a textual score or it may have been retrieved from the real-time Midi event that activated the current note using the notnum opcode.
![middle c midi note number middle c midi note number](http://4.bp.blogspot.com/-yVMR8MUaGWg/UQ-MehEfM_I/AAAAAAAAAGM/3XXdeqLw_X8/s1600/piano+notes+(edited).jpg)
The pchmidinn opcode may be used in any Csound instrument instance whether it is activated from a Midi event, score event, line event, or from another instrument.