midifileopen
Open a MIDI file for playback.
This opcode can be called from anywhere, it is non-op if used in an instrument triggered by a MIDI event.
Syntax
Initialization
name -- MIDI file name.
port (optional, default=0) -- MIDI channel port mapping: (port + 1)*channel
Returns a MIDI file id to use with other opcodes.
Examples
Here is an example of the miditempo opcode. It uses the files midifileopen.csd.
See also
Sensing and Control: Tempo and Sequencing
Credits
Author: Victor Lazzarini
May 2025
New in Csound 7