The Alternative Csound Reference Manual
Previous |  | Next

# octmidi

octmidi -- Get the note number, in octave-point-decimal units, of the current MIDI event.

## Description

Get the note number, in octave-point-decimal units, of the current MIDI event.

## Syntax

ioct octmidi

## Performance

Get the note number of the current MIDI event, expressed in octave-point-decimal units, for local processing.

## Examples

Here is an example of the octmidi opcode. It uses the files octmidi.orc and octmidi.sco.

Example 1. Example of the octmidi opcode.

    /* octmidi.orc */
    ; Initialize the global variables.
    sr = 44100
    kr = 4410
    ksmps = 10
    nchnls = 1

    ; Instrument #1.
    instr 1
      i1 octmidi

      print i1
    endin
    /* octmidi.orc */

    /* octmidi.sco */
    ; Play Instrument #1 for 12 seconds.
    i 1 0 12
    e
    /* octmidi.sco */

## See Also

aftouch, ampmidi, cpsmidi, cpsmidib, midictrl, notnum, octmidib, pchbend, pchmidi, pchmidib, veloc

## Credits

Author: Barry L. Vercoe - Mike Berry
MIT - Mills
May 1997

Example written by Kevin Conder.

Previous | Home | Next
octcps | Up | octmidib