RPR CreateMIDIOutput
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CreateMIDIOutput
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CreateMIDIOutput
Contents |
CreateMIDIOutput()
midi_Output* CreateMIDIOutput(int dev, bool streamMode, int* msoffset100)
This returns an array with a pointer to a structure that controls a MIDI Output device as its first element.
This function returns a pointer to a MIDI Output device, typically a control surface.
note: these can only reliably create midi access for devices not already opened in prefs/MIDI.
CreateMIDIInput/CreateMIDIOutput are suitable for control surfaces etc.
msoffset used if streamMode is set, point to a persistent variable that can change and reflects added delay to output in 100ths of a millisecond.
note: device indices don't directly map to Windows, instead they go through a caching layer.
There are no methods, currently, defined for midi_Output objects so whilst they can be created using ReaScript scripts it's not yet possible to manipulate them.
Parameters
int dev, bool streamMode, int* msoffset100
Returns
An array containing the following elements: midi_Output*, dev, streamMode, msoffset100
Examples
C++
Perl
Python
See Also
midi: GetTrackMIDINoteName, GetTrackMIDINoteNameEx, HasTrackMIDIPrograms, HasTrackMIDIProgramsEx, CreateMIDIInput, kbd_OnMidiEvent, CreateMIDIOutput, GetMaxMidiInputs, kbd_OnMidiList, GetMaxMidiOutputs, SetTrackMIDINoteName, SetTrackMIDINoteNameEx, MIDI_eventlist_Create, GetMidiInput, MIDI_eventlist_Destroy, GetMIDIInputName, MIDIEditor_GetActive, GetMidiOutput, MIDIEditor_GetMode, GetMIDIOutputName, MIDIEditor_OnCommand, GetNumMIDIInputs, GetNumMIDIOutputs, PCM_Sink_CreateMIDIFile, PCM_Sink_CreateMIDIFileEx, EnumTrackMIDIProgramNames, EnumTrackMIDIProgramNamesEx, State Chunk and RPP MIDI Format
(Section automatically generated, edits may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CreateMIDIOutput
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CreateMIDIOutput