RPR CreateMIDIOutput

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(See Also)
(Examples)
 
(8 intermediate revisions not shown)
Line 1: Line 1:
{{API_Doc_Header}}
{{API_Doc_Header}}
=CreateMIDIOutput()=
=CreateMIDIOutput()=
-
midi_Output* CreateMIDIOutput(int dev, bool streamMode, int* msoffset100)
+
'''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.
-
This returns a pointer to a structure that controls a MIDI Output device.
 
==Parameters==
==Parameters==
  int dev,  
  int dev,  
Line 9: Line 22:
  int* msoffset100
  int* msoffset100
==Returns==
==Returns==
-
  midi_Output*
+
  An array containing the following elements:
 +
  midi_Output*,
 +
  dev,
 +
  streamMode,
 +
  msoffset100
==Examples==
==Examples==
-
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.
+
===C++===
 +
<source lang=cpp>
 +
</source>
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</pre>
+
</source>
==See Also==
==See Also==
-
[[RPR_EnumTrackMIDIProgramNames|EnumTrackMIDIProgramNames]],
+
{{SeeAlso_midi}}
-
[[RPR_EnumTrackMIDIProgramNamesEx|EnumTrackMIDIProgramNamesEx]],
+
 
-
[[RPR_GetTrackMIDINoteName|GetTrackMIDINoteNameEx]],
+
''(Section automatically generated, edits may be overwritten.)''
-
[[RPR_HasTrackMIDIPrograms|HasTrackMIDIProgramsEx]],
+
-
[[RPR_CreateMIDIInput|CreateMIDIInput]],
+
-
[[RPR_CreateMIDIOutput|CreateMIDIOutput]],
+
-
[[RPR_SetTrackMIDINoteName|SetTrackMIDINoteName]],
+
-
[[RPR_SetTrackMIDINoteNameEx|SetTrackMIDINoteNameEx]],
+
-
[[RPR_MIDIEditor_GetActive|MIDIEditor_GetActive]],
+
-
[[RPR_MIDIEditor_GetMode|MIDIEditor_GetMode]],
+
-
[[RPR_MIDIEditor_OnCommand|MIDIEditor_OnCommand]],
+
-
[[RPR_GetMIDIInputName|GetMIDIInputName]],
+
-
[[RPR_GetMIDIOutputName|GetMIDIOutputName]],
+
-
[[RPR_GetNumMIDIInputs|GetNumMIDIInputs]],
+
-
[[RPR_GetNumMIDIOutputs|GetNumMIDIOutputs]],
+
-
[[RPR_PCM_Sink_CreateMIDIFile|PCM_Sink_CreateMIDIFile]],
+
-
[[RPR_PCM_Sink_CreateMIDIFileEx|PCM_Sink_CreateMIDIFileEx]]
+
==Stuff==
==Stuff==
Line 44: Line 49:
[[Category:Perl]]
[[Category:Perl]]
[[Category:Python]]
[[Category:Python]]
 +
[[Category:ReaPerl]]
 +
[[Category:ReaPython]]

Latest revision as of 11:45, 28 January 2010

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

Personal tools