RPR CreateMIDIInput

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(See Also)
(C++)
 
(2 intermediate revisions not shown)
Line 16: Line 16:
==Examples==
==Examples==
===C++===
===C++===
-
<pre>
+
<source lang=cpp>
-
</pre>
+
//create midi hardware access
 +
m_midiin = m_midi_in_dev >= 0 ? CreateMIDIInput(m_midi_in_dev) : NULL;
 +
m_midiout = m_midi_out_dev >= 0 ? CreateThreadedMIDIOutput(CreateMIDIOutput(m_midi_out_dev,false,NULL)) : NULL;
 +
</source>
 +
 
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</pre>
+
</source>
 +
 
==See Also==
==See Also==
Line 36: Line 41:
[[Category:Perl]]
[[Category:Perl]]
[[Category:Python]]
[[Category:Python]]
 +
[[Category:ReaPerl]]
 +
[[Category:ReaPython]]

Latest revision as of 21:26, 29 January 2010

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

Contents

CreateMIDIInput()

midi_Input* CreateMIDIInput(int dev)

This function returns a pointer to a MIDI input 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.

There are no methods, currently, defined for midi_Input objects so whilst they can be created using ReaScript scripts it's not yet possible to manipulate them.

Parameters

dev, an integer, the MIDI input device number

Returns

midi_Input*, a pointer to a structure that controls a MIDI input device.

Examples

C++

//create midi hardware access
m_midiin = m_midi_in_dev >= 0 ? CreateMIDIInput(m_midi_in_dev) : NULL;
m_midiout = m_midi_out_dev >= 0 ? CreateThreadedMIDIOutput(CreateMIDIOutput(m_midi_out_dev,false,NULL)) : NULL;

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 CreateMIDIInput
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CreateMIDIInput

Personal tools