RPR CreateMIDIOutput

From CockosWiki

Revision as of 16:27, 14 November 2009 by MikeLacey (Talk | contribs)
Jump to: navigation, search

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: EnumTrackMIDIProgramNames, EnumTrackMIDIProgramNamesEx, GetTrackMIDINoteNameEx, HasTrackMIDIProgramsEx, CreateMIDIInput, CreateMIDIOutput, SetTrackMIDINoteName, SetTrackMIDINoteNameEx, MIDIEditor_GetActive, MIDIEditor_GetMode, MIDIEditor_OnCommand, GetMIDIInputName, GetMIDIOutputName, GetNumMIDIInputs, GetNumMIDIOutputs, PCM_Sink_CreateMIDIFile, PCM_Sink_CreateMIDIFileEx

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CreateMIDIOutput
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CreateMIDIOutput

Personal tools