MidiInputDevice_v2 Op

MidiInputDevice

connect to MIDI device output port


This reworked midi device is the heart of all midi operations in cables.

In here you select the device of which you want to use to transmit midi data to cables.

It outputs MIDI events separated by type (e.g. Clock, CC, Note).

Press the panic button to send note-off or value-zero messages to all notes and CC indexes (Think of it as a kill switch).

Furthermore this device allows you to automatically create ops corresponding to the message you sent by pressing the "Learn" Button and, for example playing a note on your midi keyboard. This will automatically create a MidiNote op for you. Also works with CC and NRPN.`


Full Name
  • Ops.Devices.Midi.MidiInputDevice_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubCompatibilityTest Patches


Example Patch Midi ops example

This example file demonstrates how to use all the new midi ops.

Open In Editor

INPUT PORTS


Device Select

Device index (Number: integer)

Controls

Learn (Trigger)

press button and send midi signal to automatically create op

Panic (Trigger)

press if you panic

OUTPUT PORTS


Event (Object)

The out port for all MIDI events

Note (Object)

Only outputs midi events of type Note

CC (Object)

Only outputs midi events of type CC

NRPN (Object)

Only outputs midi events of type NRPN

Program Change (Object)
Clock (Object)

Only outputs midi events of type Clock


Patches using MidiInputDevice_v2

  • Examples
  • Public
  • My Patches

Changelog


Ops.Devices.Midi.MidiInputDevice2 renamed to Ops.Devices.Midi.MidiInputDevice_v2user avatarpandur - 2019-06-12 12:00
improvementWorkaround browser does not return midi access: try again many times user avatarpandur - 2024-08-05 09:14
improvementreduced loglevel when device connection errorsuser avatarstephan - 2024-11-18 12:07