RPR CreateMIDIOutput

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
()
(Examples)
 
(13 intermediate revisions not shown)
Line 1: Line 1:
{{API_Doc_Header}}
{{API_Doc_Header}}
-
=midi_Output* CreateMIDIOutput(int dev, bool streamMode, int* msoffset100)=
+
=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==
==Parameters==
-
  in dev,  
+
  int dev,  
  bool streamMode,  
  bool streamMode,  
  int* msoffset100
  int* msoffset100
==Returns==
==Returns==
-
  midi_Output*
+
  An array containing the following elements:
 +
  midi_Output*,
 +
  dev,
 +
  streamMode,
 +
  msoffset100
==Examples==
==Examples==
 +
===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_CreateMIDIOutput|CreateMIDIOutput]]
+
{{SeeAlso_midi}}
 +
 
 +
''(Section automatically generated, edits may be overwritten.)''
 +
 
==Stuff==
==Stuff==
{{API_Doc_Footer}}
{{API_Doc_Footer}}
Line 23: 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